Add to New Menu

From MobileX for SageCRM
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The menu is the in object

 cApp.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("menuitemname", "menu title");
   menuitemx.pr_onclick = "cApp.doSomething();";
 }