The ON ACTION action-name blocks execute a sequence of instructions when the user triggers a specific action.
A typical action handler block looks like this:
ON ACTION action-name instruction ...
Action blocks will be bound by name to action views (like buttons) in the current form. Action views can be buttons in forms, toolbar buttons, topmenu options, and if no explicit action view is defined, actions are rendered with a default action view, depending on the type of front-end.
ON ACTION zoom CALL zoom_customers() RETURNING st, rec.cust_id, rec.cust_name
ON ACTION zoom INFIELD cust_city CALL zoom_cities() RETURN st, rec.cust_city
ON ACTION custinfo ATTRIBUTES(DISCLOSUREINDICATOR, IMAGE="info") CALL show_customer_info()
For more details about action handlers, and action configuration, see Dialog actions.