SysInfoAction_MenuFunction::newMenuItemFormRun Method [AX 2012]
Creates an instance of SysInfoAction_MenuFunction class from a form menu item.
Syntax
client server public static SysInfoAction_MenuFunction newMenuItemFormRun(
MenuItemName _menuItemName,
MenuItemType _menuItemType,
[IdentifierName _controlName,
Description _description])
Run On
Called
Parameters
- _menuItemName
Type: MenuItemName Extended Data Type
The name of the menu item.
- _menuItemType
Type: MenuItemType Enumeration
The type of the menu item.
- _controlName
Type: IdentifierName Extended Data Type
The name of the form control to give focus to.
- _description
Type: Description Extended Data Type
The description of the action.
Return Value
Type: SysInfoAction_MenuFunction Class
An instance of SysInfoAction_MenuFunction class initialized from a form menu item.
Remarks
If the control specified by the _controlName parameter exists on the form, it will be given focus after running the form.