Default action views
A default action view is created to render an action handler, when no explicit action view exists for it.
If no explicit action view is defined, such as a toolbar button, a topmenu item or a simple
button in the form layout, the front-end creates a default action view for each
COMMAND
or ON ACTION
action handler, or automatic actions such as
insert/delete in INPUT ARRAY
, in the current interactive instruction.
- On a desktop front-end, the default action views appear as buttons in the action panel in the right-hand side of the current window.
- On a mobile device, the default action views and toolbar buttons will appear in the front-end chromebar.
When creating action handlers with ON KEY
(or COMMAND KEY
without a command name in a
MENU
), the default
action view is invisible. If you define a text
attribute in the action defaults,
the default action view is made visible.
Control the default action view visibility by using the DEFAULTVIEW
action attribute.
If one or more action views are defined explicitly for a given action, the front-end considers
that the default view is not needed. Typically, if you define in the form a
BUTTONEDIT
field, a BUTTON
, or a TOOLBAR
item
that triggers the action, you do not need an additional button in the action panel.
The presentation of default action views can be controlled with presentations style attributes
for the Window
AUI tree nodes.
Action views for the actions that are rendered as default action views can also be show in
topmenus and toolbars with AUTOITEMS
and AUTOCOMMANDS
placeholders. See Defining action views in forms for more details.