Local actions
GDC defines an additional set of action objects, to complement the regular action options created by the Runtime System.
Regular action objects are created by the Runtime System. GDC defines an additional set of action
objects called local actions, such as editcopy
,
editcut
or editpaste
, or list navigation local actions like
firstrow
, prevrow
, and nextrow
. Local actions
follow the same rules as Runtime System actions, but they are created by the front-end instead of
the Runtime System.
Like regular actions, it is possible to customize the local actions with an accelerator, images, comments, and so on.
For a full list of local actions, see the topic List of local actions (GDC only) in the Genero Business Development Language User Guide.
Implement a local action
In form files, create action views for local actions:
BUTTON btn1: editcopy;
When this button is pressed, the currently selected text is copied into the clipboard.
Configure a local action
<ActionDefault name="editcopy"
text="Copy"
comment="Copy to clipboard"
accelerator="Control-C"
image="fa-bell-o"
contextMenu="yes"
/>