Add to New Menu

From MobileX for SageCRM
Revision as of 13:42, 18 January 2017 by Crmtogether (talk | contribs) (Created page with "The menu is the in object ddNew "ddNew" is a cTSDropDown object. and you call "addItem" on that to add it. addItem = function (ItemName, Caption) In a plugin you wo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The menu is the in object

 ddNew

"ddNew" is a cTSDropDown object.

and you call "addItem" on that to add it.

 addItem = function (ItemName, Caption)

In a plugin you would use the "onDocumentReady" method and add in the code.

Example below

 var onDocumentReady = function () {
   var menuitemx = cApp.ddNew.addItem("menuitemx", "menu title","cApp.doSomething();");
   menuitemx.pr_onclick = "cApp.doSomething();";
 }