Share via


SysContextMenu::startedFrom Method [AX 2012]

Appends a SysContextMenu object to the input _menuFunctionArgs parameter, unless one is already present.

Syntax

client public static boolean startedFrom(Args _menuFunctionArgs)

Run On

Client

Parameters

  • _menuFunctionArgs
    Type: Args Class
    An instance of the Args class.

Return Value

Type: boolean
true, if the context menu is started from a SysContextMenu (or a descendant class); otherwise false.

Remarks

This method inquires whether the input _menuFunctionArgs has an argument named parmObject.

If it does have a parmObject, true is returned if the object referenced by parmObject is of type SysContextMenu (or a descendant class).

If it does not have a parmObject, this method appends parmObject with a SysContextMenu object, and true is returned.

See Also

Reference

SysContextMenu Class