Details about the error when using a new output menu:
I have created a duplicate of output menu ProdRouteCard and renamed it along with new label.
I have also added this new menu point to ProdRouteCardGenerate privilage.
There are two places where this menu is being used.
First the the above privilage and second is class\ProdUpdRelease where I am calling this new menu.
If I double click the erorr then it takes me to Classes\MenuFunction\Run
Error: Insufficient rights to execute FTM 2 PER_ProdCheckList.
if (isCLRSession || specialCaseSRS)
{
// Check security.
if(appl.isRunningMode())
{
hasAccess = hasMenuItemSecurityAccess(this);
if(!hasAccess)
{
throw error(strfmt("@SYS339383", this.AOTtypeStr(), this.AOTname()));
}
}
I forced the cursor to bypass this and it worked. I restarted my session after that and it worked as well.
New menu item option is working for me.
I have tried below options which didn't work.
controller.parmReportContract().parmReportCaption(“@SYS323601”);
Changing the label worked itself but report still displayed the same old labvl.
TreeNode node;
node = TreeNode::findNode("\\Menu Items\\Display\\AccountingDistributions");
if (node != null)
{
info(strFmt("Old value: %1", node.AOTgetProperty("Label")));
node.AOTsetProperty("Label", "Your value");
info(strFmt("New value: %1", node.AOTgetProperty("Label")));
}
Thanks Martin for the input.