1 / 12

OECGI For Dummies:

OECGI For Dummies:. Bringing OpenInsight to the Web. Web Server Software. Apache Free Download www.apache.org Confhttpd.conf ScriptAlias /OI/ “C:/development/WebPresentation/” IIS Comes with Windows Server software Configurations vary Permissions Revelation discussion board.

abby
Télécharger la présentation

OECGI For Dummies:

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. OECGI For Dummies: Bringing OpenInsight to the Web

  2. Web Server Software • Apache • Free Download www.apache.org • Conf\httpd.conf • ScriptAlias /OI/ “C:/development/WebPresentation/” • IIS • Comes with Windows Server software • Configurations vary • Permissions • Revelation discussion board

  3. Web Server Software • Key Information • oecgi.exe, rcl4.dll, revcap32.dll, utf8.dll • http://127.0.0.1/OI/oecgi.exe/inet_trace

  4. OECGI Options • Dynamic Engine • New engine each call • Handles multiple requests • Recompiled code is recognized • No debugging • Static Engine • Calls existing engine • Stacks multiple requests • Recompiled code requires an engine restart • Debugging possible

  5. OECGI Options • OECGI2 • Runs as a service. Similar to Dynamic Engine

  6. OECGI/HTML Basics • INET_Trace (Trace) • Verifies OECGI configuration • Returns HTTP header information • INET Routines • Must start with Inet_ • Use Request variable fields • Returns the HTML • Static HTML • HTML that does not change • Use OSRead with OECGI

  7. OECGI/HTML Basics • Dynamic HTML • Changing HTML depending on data requests • Display only (no data interaction) • FORM type • Preparing • Submitting • Parsing • Data Only • Pure data string • EDI, Tab delimited, XML, etc • Can return non-HTML

  8. Keys to Using OECGI • Coding Tips • Separate static data from the dynamic • Use CSS • Externalize HTML paths • HTML Lists • Build the lists from a single line of HTML • Use placeholders to swap data • Data Entry/Display forms • Use placeholders to swap data • Assign SeqKeys during the writing of the record • Separate business logic from the INET routine

  9. Keys to Using OECGI • Speed Tips • Only allow selection against indexed columns • Use lookups/direct reads • Loop/Remove/While for large loops • Concatenate instead of <> • Generalize • Split common HTML and recombine when served • Reuse HTML forms for similar tables • Merge similar INET subroutines

  10. Keys to Using OECGI • JavaScript • Data validation/conversion • Simple HTML event structures • Form validation • AJAX • Asynchronous JavaScript XML • Communicates with web server during an event • Changes the HTML without loading another window

  11. Beyond HTML • OECGI is a communication layer. Use it as such • Can transmit PDF, JPG, XML, EDI, etc. • Can receive requests from any language • XMLHTTP Posting process (Msxml2.XMLHTTP.3.0) • XML SOAP • OpenInsight can communicate with web servers • XML SOAP • OLE Calls to the Msxml2.XMLHTTP.3.0 • Receive XML response within OpenInsight code

  12. Thank You Any Questions?

More Related