我的一个 CRM 2011 实体上有一个自定义功能区按钮,可以有效地禁用该实体。
然后我想刷新该实体主页上的当前 View 。我希望它由 JS 触发。
目前我能够刷新整个父窗口,这将使我回到仪表板而不是该实体的主页。
谢谢!
最佳答案
好问题。您可以通过以下两种方式完成此操作:
//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();
关于c# - 如何刷新实体主页 View 上的列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8271868/