Adding OAES Actions

When an OpenAjax Event Subscription (OAES) is stored against a Function Header, the function is in effect subscribing to that event. This means that when the OpenAjax Hub publishes an event and the function is running, the Open Client sends it to the function and the following steps occur:

  1. Assignment of the data from the OAES.

  2. The associated action (Local Logic, Global Logic or Function Key) is called. The data assigned from the OAES is made available and if the data sent is too long for the defined lengths, it is truncated silently.

All Event Subscriptions should have a PROIV action associated with it, either Logic, Global Logic or a Function Key. If none are entered, a user message appears.

To add to an action to an OpenAjax Event Subscription, follow these steps:

  1. Open the relevant function.

  2. Click on the Function Definition Properties icon and click on the OAES tab.
    The OpenAjax Event Subscriptions window appears.

  1. Click Add Button to display the Properties for OpenAjax Event Subscription window to add an OAES to the Function Header. Alternatively, select the OAES and click the Properties to display the OAES properties. Alternatively, you can double-click the property.

  2. Add the action (either Logic, Global Logic or a Function Key) in the Event Handler section.

  1. Click OK to save the action details and close the Properties for OpenAjax Event Subscription window.

  2. Click OK to close the OpenAjax Event Subscriptions window.

Comment on this topic

Topic ID: 500606