I am trying to add a new line in the right click menu on PRDDOC with JS. I used the example from BB page 279
function ON_CREATE() {
var vBrowserMenu = X.EXEC('CODE:ModuleIntf.FindXStrings', X.MODULE, 'BRMENU');
X.EXEC('CODE:PiLib.TStringsAdd', vBrowserMenu, '201910011=Customer Financial');
X.EXEC('CODE:PiLib.TStringsAdd', vBrowserMenu, '201910012=1;Custom ReUpdate');
X.EXEC('CODE:PiLib.TStringsAdd', vBrowserMenu, '201910021=1;SubJob1?MySubMenu');
X.EXEC('CODE:PiLib.TStringsAdd', vBrowserMenu, '201910022=1;SubJob2?MySubMenu');
X.EXEC('CODE:PiLib.TStringsAdd', vBrowserMenu, '201910023=3;Displayed on Lines Analysis Browser');
X.EXEC('CODE:SysRequest.RefreshPopupMenu', X.MODULE, 'BRMENU', 1);
}
There is an problem on the ITEDOC and ITEITEDOC where the browser menu is called ITEBRMENU. So if you use this instead BRMENU it si working
However, in Production documents (PRDDOC) i cannot find how this menu is named, to add a string on it.