About the When-Event-Raised Trigger About Trigger Definition Level and Scope
8.4.1 About the When-Event-Raised Trigger
Oracle Forms responds to or fires a trigger in response to a variety of events. For both Forms Developer and internal events, Forms provides entry points in terms of triggers so that an application developer can associate and execute some code in response to an event. For example, a defined trigger is attached to a specific object in a form. The object to which a trigger is attached defines the scope of the trigger. For example, the WHEN-BUTTON-PRESSED trigger corresponds to the Button Pressed event which occurs when an operator selects a button. The name of the trigger establishes the association between the event and the trigger code. When a user clicks on a button, Forms responds by executing the code in the WHEN-BUTTON-PRESSED trigger. This new event object has a corresponding trigger defined at the event object level. The WHEN-EVENT-RAISED trigger fires in response to the occurrence of a database event for which it has a subscription. The firing of the new trigger is similar to the internal processing of triggers. However, the source of the event is, in this case, an external event such as a database event firing as a result of an operation and not the result of any user interaction with forms or as a result of an internal form processing.8.4.2 About Trigger Definition Level and Scope
Oracle Forms triggers are usually attached to a specific object, such as an item, block, or Form. The object to which a trigger is attached determines the triggers definition level in the object hierarchy. A triggers definition level determines the triggers scope. The scope of a trigger is its domain within the Forms object hierarchy, and determines where an event must occur for the trigger to respond to it. Although the WHEN-EVENT-RAISED trigger is attached to an event object, it has an application level scope because of the nature of the server-centric events. When the event notification is invoked as a result of an asynchronous callback mechanism for registered database events, any number of forms running within that application and with a subscription Working with Server Events 8-5 for that event receive the notification. This alleviates the need for the application developer to code complex logic to deal with the event. There is also a Form-level scope so that the event will only be handled if the application is running the specific form from where the event is defined.8.5 Publishing Database Events
Parts
» Oracle Fusion Middleware Online Documentation Library
» Oracle Forms Developer Oracle Forms Services
» Oracle Database Oracle WebLogic Server Oracle Fusion Middleware
» Forms Listener Servlet Forms Runtime Process
» About Installing or Upgrading Oracle Forms Oracle Forms Services in Action
» default.env Oracle Forms Configuration Files
» Forms Java EE Application Deployment Descriptors Standard Fonts and Icons File baseHTML Files
» Deploying Your Application Application Deployment
» Default Behavior in the Current Release
» Accessing Forms Services with Fusion Middleware Control
» Common Tasks in the Web Configuration Page
» Managing Parameters Configuring Forms Services
» Basic Configuration Parameters Single Sign-On Configuration Parameters
» Trace Configuration Parameters Plug-in Configuration Parameters HTML Page Configuration Parameters
» Applet Configuration Parameters Forms Configuration Parameters
» Advanced Configuration Parameters Forms Configuration Parameters
» Managing Environment Configuration Files Configuring Environment Variables
» Managing User Sessions Oracle Fusion Middleware Online Documentation Library
» Securing the Oracle Forms Test Form
» Managing Registry.dat with Fusion Middleware Control Managing Application Fonts
» Creating a Jar File for Images Using Files Within the Jar File
» DocumentBase codebase Search Path for Icons and Images
» Example change: Swapping Enter and Execute Mappings Exceptions Special Key Mappings
» About the Oracle WebLogic Managed Server
» Prerequisite Steps Custom Deployment of Forms Java EE Application
» Override the Default Servlet Alias and the Context Root
» Expanding Forms Managed Server Clusters Registering Forms Java EE Applications
» Modification of Forms J2EE Application Deployment Descriptors
» Load Balancing Oracle WebLogic Server
» Enabling SSL with a Load Balancing Router
» Integrating JavaScript and Oracle Forms Configuration of formsweb.cfg
» Configuration of Environment Variables About Oracle Forms and Server Events
» About the When-Event-Raised Trigger About Trigger Definition Level and Scope
» Creating Events Subscribing to Events Publishing Database Events
» About Synchronous Communication About Asynchronous Communication
» ssoErrorURL ssoCancelUrl Enabling OracleAS Single Sign-On for an Application
» Proxy User Overview Enabling and Configuring Proxy Users
» Enabling Proxy User Connections
» Enabling SSO in formsweb.cfg Accessing the Forms Application Changes in Forms Built-ins
» OracleAS Single Sign-On Components Used By Oracle Forms Configuring Oracle Internet Directory
» About Multiple JVM Controllers JVM Pooling Usage Examples
» Re-importing Your Java Code About Sharing Static Variables Across Multiple JVMs
» JVM Controller Command Examples
» Click Delete. Deleting a Named Configuration
» Common Tasks in the JVM Configuration Page Managing Parameters
» Forms Configuration File Settings Startup Example
» Overview of JVM Configuration Integrating Forms and Reports JVM Pooling Error Messages
» Configuring Forms Trace Specifying URL Parameter Options
» Starting and Stopping Forms Trace
» Specifying Logging Specifying Logging Levels Using Fusion Middleware Control
» none session sessionperf perf
» debug Example Output for Each Level of Servlet Logging
» Upgrading Common Gateway Interface CGI to the Oracle Forms Servlet
» Upgrading the Forms 6i Listener to the Forms Listener Servlet
» Upgrading the Forms Listener Servlet Architecture to Oracle Forms Services
» Creating Forms Listener Servlet Alias Names Accessing the Listener Servlet Administration Page
» Configuring Prestart Parameters Forms Services Web Runtime Pooling
» Using Java Files Using Oracles Java Plug-in Using Caching
Show more