如何在CRM子网格上异步显示“创建新按钮”? [英] How to Asynchronously Show a Create New Button On a CRM Sub Grid?

查看:145
本文介绍了如何在CRM子网格上异步显示“创建新按钮”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要隐藏子网格上的添加新按钮,直到满足某些条件为止。调用 Xrm.Page.ui.refreshRibbon 会触发我的启用规则中定义的JS函数,但是我无法获得 + 按钮显示。

I need to hide the "Add New" button on a sub grid until certain criteria are met. Calling Xrm.Page.ui.refreshRibbon will trigger my JS function defined in my Enable Rule, but I can't get the + button to show up.

这是不受支持的,还是有某种方法可以使它起作用?

Is this unsupported, or is there some methodology to get this to work?

推荐答案

Arun Vinoth确实找到了一篇很好的文章来描述此问题,但实际上我发现仅需要在网格本身上调用refresh。

Arun Vinoth did find a great article to describe the issue, but actually I've found that just calling refresh on the grid itself was all that was actually required.

需要注意的是,这不会重新运行启用规则,只会在状态发生变化时显示按钮。

It's important to note, that this does not re-run the enable rules, just shows the button if the state has changed.

这篇关于如何在CRM子网格上异步显示“创建新按钮”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆