Local actions
GDC defines an additional set of action objects, to complement the regular action options created by the Runtime System.
Important: This feature is deprecated, and may be removed in a future version. It is
recommended that you avoid binding action views with a local action, and that you avoid changing the
action defaults attributes (such as accelerators) for these actions. A motivation for deprecating
local actions is to ensure application consistency across the Genero front-ends, and local actions
were only available on the GDC. They remain supported by the GDC front-end for backward
compatibility.
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
, nextrow
.
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
Local actions can be configured with action defaults (.4ad
file):
<ActionDefault name="editcopy"
text="Copy"
comment="Copy to clipboard"
accelerator="Control-C"
image="fa-bell-o"
contextMenu="yes"
/>