xMenuFunction.new Method [AX 2012]

Creates a new xMenuFunction object by passing xMenuFunction's name and MenuItemType to the xMenuFunction constructor.

public void new(str Name, MenuItemType type)

Run On

Called

Parameters

Name
Type: str
A string expression that evaluates to the name of the object..
type
Type: MenuItemType Enumeration
A constant in the MenuItemType system enumeration: MenuItemType::Display, MenuItemType::Output, or MenuItemType::Action.

When creating a xMenuFunction object, the parameters must uniquely identify an existing xMenuFunction. If not, Exception::Internal is thrown.

Community Additions

ADD
Show: