简体   繁体   English

导航工具栏上的 Dynamics Crm 365 自定义按钮

[英]Dynamics Crm 365 custom button on navigation tool bar

在 Dynamics Crm 365(在线)中,是否可以在导航栏中创建和显示自定义按钮/图标?

There is no possibility to use XrmToolBox SiteMap Editor in Dynamics 365, but there is new feature.无法在 Dynamics 365 中使用 XrmToolBox 站点地图编辑器,但有新功能。 Built in SiteMap Editor.内置站点地图编辑器。 Go to Default Solution -> Apps -> and click Sales转到默认解决方案 -> 应用程序 -> 并单击销售

Then you can see the AppDesigner window然后就可以看到 AppDesigner 窗口了

Click Arrow away SiteMap button and thats all, you can use new SiteMap Editor单击箭头离开 SiteMap 按钮,仅此而已,您可以使用新的 SiteMap 编辑器在此处输入图片说明

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最近,在功能区工作台中可以自定义全局导航栏,并且可以在 Mscrm.GlobalTab 下以支持的方式添加按钮阅读更多

——————————————————— ————————————————————

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]添加/使用现有的功能区/命令栏按钮,它的启用规则作为快捷方式从javascript web 资源执行以下脚本作为函数:[只需复制此脚本,更改org_url并在浏览器开发人员工具栏控制台中运行它以查看它的实际效果]

    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.注意:此 DOM 元素操作不受支持,但这是唯一的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM