我的 CRM 2011 实体之一上有一个自定义功能区按钮,可以有效禁用该实体。
然后我想刷新该实体主页上的当前视图。我希望这个由 JS 触发。
目前,我可以刷新整个父窗口,这将使我回到仪表板,而不是该实体的主页。
Thanks!
好问题。您可以通过以下两种方式进行操作:
//refreshes the entire element in the parent window that contains the view
window.parent.opener.location.reload();
//refreshes just the grid control that contains the view (probably what you're looking for)
window.parent.opener.document.getElementById("crmGrid").control.refresh();
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)