Default Action

Use default action for a consistent behavior across the application.

You can define a default action used in Expand, List and Tree views providing a consistent behavior across the application when a user does one of the following:

  • double-click on list or sub-list rows
  • click on a link in a header
  • click on a link in a record (in List, Expand, Minidetails view) and in the Parent Data area of Expand views
    Note: Click and hold on a link in a record or in the Parent Data area of Expand views opens the QuickView. For further details, see QuickView.
    Note: Clicking on a link in a Rep ID field always opens the QuickView.
  • double-click on calendar items
  • click on a link to a record in an email (Notify Rep functionality)

The listed actions actually call the action D_Default which executes the default action according to the context (info area, Search or Expand view etc.).

An info area's default action is defined in the InfoArea Default-Action field in the info area's default Expand configuration (i.e. the configuration with the same name as the info area ID, Example - MA for activities), see Expand Configuration. The menu action specified there is used for all actions listed above except double-click on list or sub-list rows (see below).

If you do not specify an InfoArea Default-Action (i.e. "default" selected) for an info area, the menu action defined in the Record.DefaultAction Web Configuration parameter is used, see Record.DefaultAction. If Record.DefaultAction is not defined, A_Expand is used, see A_Expand.

For double-clicks in lists or sub-list, D_Default calls the default action as defined in the respective Search&List configuration. If undefined, the info area default action as defined in the default Expand configuration is used with the same fallbacks as described above.

To use the default action in a context menu, configure the menu action A_ShowDefaultAction, see A_ShowDefaultAction.

Note: Do NOT specify A_ShowDefaultAction as an info area's default action or in the Record.DefaultAction Web Configuration parameter. This results in an infinite loop.

To automatically use the default action for single search hits, check the Search.AutoExpandOnSingleHit Web Configuration parameter or set autoExpandOnSingleHit=true as input argument for individual Search actions (Example - ID_COMPANY_SEARCH). For further details, see Search.AutoExpandOnSingleHit.

You can define a common default action used for all sub-lists using the List.SubList.DefaultAction Web Configuration parameter. For further details, see List.SubList.DefaultAction.

In Tree views double-clicking a record in the search results lists selects the node of the clicked record in the tree and loads the record without leaving the Tree view. Double-clicking a record in the tree actually calls the action A_TreeDefault executing the command "Tree/DefaultAction" that selects the tree node corresponding to the current list record. To globally change this default behavior use the Tree.ListDefaultAction Web Configuration parameter. For further details, see Tree.ListDefaultAction. A_TreeDefault is part of M_DefaultTree which you can use as context menu for records in Tree views (Search&List configuration or sub-list).

To use the default action for a recordListBox widget in a form, set the command property to Actions/Default. For further details, see Forms.

The uid of the selected record is automatically passed as command argument. Alternatively, you can define any onDblClick event.