Dynamics 365 隐藏实体列表界面的显示图表和打开仪表板按钮

     有的客户会要求系统上线前把不需要的按钮全部隐藏,因为他们不想用户去随便乱点,比如停用和禁用按钮,如果功能上没用到就需要隐藏,这两个是能通过Ribbon工具操作的,但有些按钮是无法用Ribbon来实现的。比如这里提到的显示图表和打开仪表板的按钮。

     因为这两个按钮在每个实体列表的list上都有,所以我们可以在应用功能区实现

    在应用功能区加一个按钮,默认隐藏

    每次加载时执行如下代码,当执行完成以后会清除不会继续执行    

HideListChartEnable: function () { 
var hideButtonInter = setInterval(function () {

                var showChartPaneButton = window.parent.document.getElementById("ShowChartPane");
                var openEntityDashboard = window.parent.document.getElementById("OpenEntityDashboard");

                if (showChartPaneButton != null && openEntityDashboard != null) {
                    showChartPaneButton.style.display = "none";
                    openEntityDashboard.style.display = "none";
                    clearInterval(hideButtonInter);
                } else if (showChartPaneButton != null) {
                    showChartPaneButton.style.display = "none";
                    clearInterval(hideButtonInter);
                }


            }, 100);
            return false;
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值