Sunday, 3 August 2014

Call menu item name in ax 2012

Calling the manu item name in form initiation

Form init method()
element.args().menuItemName() == menuitemDisplayStr(GPI_CopyProduct)

validate check with winapi:-
boolean validate()
{
boolean ret;

ret = super();

if(!winapi::fileExists(filenameOpen))
ret = checkFailed(strfmt("@SYS18678",filenameOpen));

return ret;
}

No comments:

Post a Comment