在 Dynamics Crm 365(在线)中,是否可以在导航栏中创建和显示自定义按钮/图标?
Update:
In recent times, the global navigation bar is customizable in Ribbon workbench and buttons can be added in supported way under Mscrm.GlobalTab Read more
———————————————————
We achieved by doing this.
Add/Use an existing ribbon/command bar button & it's Enable rule as shortcut to execute the below script as a Function from javascript web resource : [Simply copy this script, change org_url & run it in browser developer toolbar console to see it in action]
var element = window.parent.document.getElementById("navTabGroupDiv");
var url = "http://<org_url>/_imgs/AboutBox.gif";
var para = document.createElement("img");
para.id = "myimg"
para.alt = "OhMyGod";
para.src = url;
para.style.float = "right";
para.style.height = "30px";
para.style.marginTop = "10px";
para.onclick = function () {
var webResource = 'test.html';
Xrm.Utility.openWebResource(webResource, null);
};
element.appendChild(para);
var Relement = window.parent.document.getElementsByClassName("navTabFiller");
if (Relement!=undefined && Relement.length > 0)
Relement[0].remove();
Note: This DOM element manipulation is unsupported but this is the only way.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.