menuItemActionStr Function [AX 2012]

Updated: May 26, 2010

Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

Validates that the specified menu item action is in the Application Object Tree (AOT); if not, a compiler error occurs.


str menuItemActionStr(class menuitem)

Parameter

Description

codename

The name of the menu item action to validate.

The name of the menu item action if valid.

This function is an intrinsic function, which is a metadata assertion function. Intrinsic functions take arguments that represent entities in the AOT and validate these arguments at compile time. They have no effect at run time.

{
    str s1, s2, s3, s4;
    ;
 
    s1 = menuItemActionStr(AssetCopy);
    s2 = menuItemDisplayStr(Address);
    s3 = menuItemOutputStr(AssetBarcode);
    s4 = menuStr(Administration);
 
    print "menuItemActionStr for AssetCopy is " + s1;
    print "menuItemDisplayStr for Address is " + s2;
    print "menuItemOutputStr for AssetBarcode is " + s3;
    print "menuStr for Administration is " + s4;
 
    pause;
}

Announcements: To see known issues and recent fixes, use Issue search in Microsoft Dynamics Lifecycle Services (LCS).

Community Additions

ADD
Show: