|
The following are some simple WebPublisher Studio Macro examples that deliver active server page content over HTTP.
Each example is illustrated with the source code for the Code Resource used to generate the <body> section of the page. The examples demonstrate the use of the active server page delimiters <% and %> that permit Omnis Studio code to be embedded and executed. WebPublisher Studio Macros can contain multiple code resources that can be sequentially ordered for execution.
In most of the following examples, only one Code Resource is assigned to each Macro.
Date and Time |
Returns the system date and time.
This example shows the use of embedded variables using the [=Variable] notation. The Omnis Studio system variables #D (system date) and #T (system time) are used. |
Submission Form |
A simple POST method submits some text.
This simple Active Server Page inputs a string into a variable defined in the WebPublisher Studio Macro and returns the string when the form is submitted. |
Multiplication |
Multiplies two numbers and returns result.
The Active Server Page result is derived from an embedded variable calculation. |
Multiplication using Omnis Studio method |
Multiplies two numbers and returns result using an Omnis Studio code method.
The result is derived from a method "$multiply" created in a WebPublisher Studio Plugin that performs the calculation. |
Static Files |
Loads a static HTML and .gif file from the Public folder on the WebPublisher Studio server.
The "Public" folder on the WebPublisher Studio Server is used to service requests for Static files (eg. .gif, .html, .pdf etc) that do not contain dynamic content. |
|
 |
Static & Dynamic |
Loads a static .gif file from the "Public" folder on the WebPublisher Studio server into an active page. |
Kamus |
A complete Indonesian-English dictionary - use it to find out what "Kamus" means. |
Post Codes |
Australian Post Code Database Query.
This example submits a form to retrieve matching records from a database of Australian Post Codes.
|
| Indotender |
Indotender is a subscriber based tender notification system operating in Jakarta, Indonesia.
This system manages subscriptions to tender categories and regions and supplies extracts of matching tenders to subscribers by email. The service objective of this project was to deliver published tenders in the fastest way possible - batches are published twice daily and published tenders can be reviewed from the web site. All of the active server pages, email batches, logging, plus the Jakarta based data-entry Thick Client were written in WebPublisher Studio. Oh yeah - and it's hosted in Australia...
|
|