Skip to main content
 首页 » 编程设计

c#之如何刷新实体主页 View 上的列表

2024年02月23日15thcjp

我的一个 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();