You are here: Configuration > Configuration Panes > Events Pane

 

Events Pane

Action Events provide the ability to perform actions on a field when an event occurs on the screen. Configuration is done by establishing user events and linking them to Action Sets via ID attributes. So when the user selects something in OIPA an event invokes a set of Action Sets that change fields or displays messages. 

 

There are various types of Action Events that can be configured.

 

Configuration is performed through the Events pane located on the menu bar across the top of the Configuration Area.  

 

IMPORTANT: Please see the XML Configuration Guide, which can be accessed from the Help menu, for a list of all elements, attributes and values needed for configuration. View Transaction Rules | Transaction Elements | ActionEvents

 

Events tab on Configuration Area Menu bar

Events Pane

 

 

High Level Steps to Configure Action Events

  1. Configure the fields that the actions can be applied to.

  2. Configure the event that needs to occur to invoke the actions. This is done using XML. 

  3. Identify the set of actions, ScreenMath, QuerySets and/or ActionSet, that are configured in the event.

 

Configure an Event

The events section identifies the type of event that needs to occur to invoke a set of actions. It also identifies the field that is connected to the event. 

 

The available event types that can invoke an action are:

 

Steps to Configure an Event

  1. Check-out the transaction, segment or business rule's XML file.

  2. Click the Events tab. The Event Navigator window will open.  

  3. Double-click the Events node. The XML data will open on the Configuration Area. 

  4. Configure the event. Identify the event TYPE and, if applicable, the FIELD that the event applies to.

  5. Configure any combination of Math, ActionSets and/or QuerySets. Each action ID attribute must have a matching action. 

  6. Check-in the file to save the changes to the database.

 

Events and Actions XML sample

Events XML

 

Event XML Sample

Event TYPE, FIELD and IDs

 

 

 

 

Define Action

There are three types of actions: (Use any combination of the options listed below.) 

 

 

 

ScreenMath

Configure the <ScreenMath> section in order to perform field math to support actions. In <ScreenMath> configure <Math> sub-elements that are each identified with an ID so that events may locate it for use. This is different from the <Math> section, because it provides the ability to perform calculations for the Fields section. ScreenMath is not available for use in the main transaction <Math> section.     

 

The <ScreenMath> is identified through a configurable ID and can include two types of <Math>:

 

There can only be one GLOBAL ScreenMath section. The GLOBAL attribute with a value of Yes indicates to the system that the math is global. Without the GLOBAL attribute the system identities the <Math> as local. The global ScreenMath is available in the local ScreenMath section. Local ScreenMath is not available in global ScreenMath. When naming ScreenMath do not name global and local math the same. If the names are the same, the local math will take precedence.     

 

Screen Math XML Sample

Screen Math XML

 

Steps to Configure Screen Math

  1. Check-out the transaction, segment or business rule's XML file.

  2. Click the Events tab. The Event Navigator window will open.  

  3. Right-click the Screen Math node and select New Math Section.

  4. Enter the Section ID, which is the name of the ScreenMath.

  5. Check the Global box if the math being configuring is global math.

  6. Select Finish.

  7. Configure the math section by dragging and dropping math variables from the Palette window.  

  8. Check-in the XML file to save the changes to the database.

 

ScreenMath

Global Screen Math on Events Pane

 

 

Note: View the ScreenMath XML from the XML Source pane. See image below.  

 

Screen Math Viewed from XML Source Pane

Screen Math XML from XML Source Pane

 

 

 

 

QuerySets

QuerySets allow combo boxes to load with a SQL statement, as well as define a set of hard coded combo box options. <QuerySet> is a sub-element of <Actions> and each <QuerySet> is identified with an ID attribute that the <Event> section uses to locate the correct configuration.   

 

When configuring the change of combo box data, make sure to use the FIELD attribute in the corresponding <Event> section for the trigger field. In the <QuerySet> sub-element use the FIELD attribute for the field that will have its data changed.   

 

Conditional logic can also be written in this section.

 

QuerySet XML Sample

QuerySet XML

 

 

Steps to Configure Action with QuerySets

  1. Check-out the transaction, segment or business rule's XML file.

  2. Click the Events tab. The Event Navigator window will open.  

  3. Double-click the Actions node. The XML data will open on the Configuration Area. 

  4. Configure the action by defining the QuerySets needed for the event. A sample is shown above.  

  5. Check-in the file to save the changes to the database.

 

 

 

ActionSets

ActionSets allow for the configuration of errors and warnings, enabling fields, disabling fields, hiding fields, displaying fields and assigning a value to a field. <ActionSet> is a sub-element of the <Actions> and each <ActionSet> is identified with an ID attribute that the <Event> section uses to locate the correct configuration.  

 

There is also the ability to write conditional logic in the section. Available logic includes:  

 

Available actions are:

 

Steps to Configure Action with ActionSet

  1. Check-out the transaction, segment or business rule's XML file.

  2. Click the Events tab. The Event Navigator window will open.  

  3. Double-click the Actions node. The XML data will open on the Configuration Area. 

  4. Configure the action by defining the ActionSets needed for the event.   

  5. Check-in the file to save the changes to the database.

 

 

Copyright © 2009, 2011, Oracle and/or its affiliates. All rights reserved. Legal Notices