|
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 basic input form posts a string into a variable defined in the WebPublisher Studio Macro then returns the string in the submission result page. |
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 Plug-in 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. |
|
 |
Post Codes |
Australian Post Code Database Query.
This example submits a form to retrieve matching records from a database of Australian Post Codes. |
Thick Client Demo
(Demo.zip - New!) |
Click here to download the Demonstration Thick Client that is configured to talk to our servers.
This Omnis Studio library installs one menu (Demo) with several examples of the Thick Client API. This demonstration application is fully documented in the WebPublisher Studio Manual |
Kamus |
A complete Indonesian-English dictionary - use it to find out what "Kamus" means. |
Indotender |
Indotender is a subscriber based tender notification system located 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 deployed in a Multi-Instance Cluster. Oh yeah - and it's hosted in Australia... |
|