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. When the user selects something in OICE an event invokes a set of Action Sets that change fields or display 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.  

 

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 can also be configured in Multifields. Refer to the Multifield Events section of the help for information.

 

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 must be done in the XML Source pane as no visual configuration is available at this time. If events are configured within the <Multifield> tags, then some additional consideration is required. Refer to Multifield Events for additional information.

  3. Configure the ScreenMath to define the math that is available for use when an event is invoked. Either global or local math can be used by fields. 

  4. 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

Events can be configured directly in the XML using the XML Source pane or they can be configured in the Events pane with the help of visual configuration tools. The Events pane also provides a way to see the individual parts of Events and Actions configuration without the additional transaction XML. Click an Action from the Event Navigator window to the left of the Configuration Area to add the opening tag to the configuration. If configuration already exists for the Action or Event, that configuration will display in the Event pane.

  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 opening tag for Events will display in 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

 

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.    

Refer to the Screen Math Considerations page for additional configuration guidelines.

 

ScreenMath XML Example

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

 

 

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

 

 

 

Define Actions

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

 

Actions and Currency Considerations

Actions can be configured to compare currency values and assign new ones to fields. Some common operations include comparing money to money fields using the less than expression, comparing currency math variables, assigning a currency code to a math variable or field and assigning a value from a money field to another with like currency codes.

 

Keep in mind the following points when using currency in Actions.

 

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:

 

Within the Actions tags for <Action ACTIONTYPE="ERROR"> or <Action ACTIONTYPE="WARNING> , a validation message can be added. Within this element, a screen math variable or activity field name may be substituted in the validation message to display an actual value from the activity. In the example below, a field or screen math variable is named “Amount”. The validation verifies that the amount is greater than 100.00. In the Error message $$$Amount$$$ would be used in the configuration validation message to display the value in the Amount field or screen math variable. If using an activity field name or math variable in the Actions/Events validation, a prefix is not required. The validation would then read, “Payment Amount of 40000.00 must be less than 100.00.” The configuration in the <Actions> sections would be similar to the example below:

 

<Action ACTIONTYPE="ERROR">Payment Amount of $$$Amount$$$$ must be less than 100.00.</Action>

 

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, 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices