Share via


SysContextMenu.runMenu Method [AX 2012]

Runs the specified context menu.

Syntax

public boolean runMenu(
    int popupMenuChoice, 
    SysContextMenu _sysContextMenu, 
   [Object _caller, 
    Common _record])

Run On

Client

Parameters

  • popupMenuChoice
    Type: int
    The item to select in the context menu.
  • _caller
    Type: Object Class
    An object that is used to set the caller of the command; optional.
  • _record
    Type: Common Table
    A buffer to a record; optional.

Return Value

Type: boolean
true, if the menu function is run; otherwise false.

Remarks

false is returned if the specified popupMenuChoice is less than one, or it is not in the menu.

See Also

Reference

SysContextMenu Class