Workbench User Guide : 6. Creating and Using Basic Fields : Common Field Properties : Events and Scripts
 
Share this page                  
Events and Scripts
Events are associated with most active fields, and end user actions cause most of these events. For example, events are generated when an end user clicks a button field, enters data in an entry field, or selects a row in a table field. For every event, you can provide an event block that contains 4GL code to handle that event. The code in the event block is executed each time the event occurs.
You can put the event blocks for an individual field in its own field script, or you can put the event blocks for all the fields on the form in the frame script.
For general information about using field scripts, see the chapter Writing Scripts and Procedures. For a complete list of the events associated with a specific field type, see the Language Reference Guide.