The Action object

Path: actions are accessed relatively thru Collection iteration

Snippet ID: Action or Dialog or MenuAction

Corresponding AUI Tree element: Action

The Action is a sub-object of Menu or Dialog object that represent the form embed in this window if any.

This object value is rendered thru the Action (if issue from or Dialog object) or MenuAction (if issue from or Menu object) snippet when invoked in a gwc:replace or gwc:content instruction.

Fields (Attributes) Type Description
CID Attribute (string) The corresponding component identifier.
type Attribute (string) Type name of the component, that is Action or MenuAction.
id Attribute (string) Object identifier.
DID Deprecated ! Attribute (string) Dialog identifier.

This path is deprecated use IDID or XDID instead.

IDID Attribute (string) Dialog identifier with inclusive format.
XDID Attribute (string) Dialog identifier with exclusive format.
name Attribute (string) Action identifier
text Attribute (string) Text displayed for this action.
image Attribute (string) Image associated to the action.
comment Attribute (string) Comment displayed for this action.
tabindex Attribute (number) Corresponds to the tab order of the form.
acceleratorName Attribute (string) First accelerator name.
acceleratorName2 Attribute (string) Second accelerator name.
acceleratorName3 Attribute (string) Third accelerator name.
acceleratorName4 Attribute (string) Fourth accelerator name.
isActive Attribute (boolean) True if the action is active.
hidden Attribute (number) Corresponds to the HIDDEN attribute in 4GL.
defaultView Attribute (string) The action defaulView value.
hasCustomView Attribute (boolean) True if the action has another view (for example in ToolBar or TopMenu)
hasFocus Attribute (boolean) True if the action has the focus.
contextMenu Attribute (string) Corresponds to the CONTEXTMENU attribute in 4GL.
islocal Attribute (boolean) True if the action is a front-end local action. False otherwise
decorationstyle[ attribute-name ] Collection of DecorationStyleItem objects This selectable path will return the given attribute value DecorationStyleItem object for this object. This object gives access to all pseudo-selector values for the given attribute.
decorationstyles Collection of DecorationStylesItem objects This path will return a DecorationStylesItem object for this window. This object gives access to all style attributes.

Example

<span gwc:repeat="a actions" gwc:omit-tag="true">
  <a gwc:condition="!a/hidden" gwc:content="a/text + '&nbsp;'" 
   gwc:attributes="href 'javascript:gwc.capi.Action(\'' + a/IDID + '\');'"/>
</span>

Display the list of action as links.