How do I refresh the list on the homepage view of an entity

纵饮孤独 提交于 2019-12-11 06:49:27

问题


I have a custom ribbon button on one of my CRM 2011 entities that will effectively disable that entity.

I then would like to refresh the current view on the homepage of that entity. I would like this triggered by JS.

Currently I'm able to refresh the whole parent window which will put me back at the dashboard and not the home page of that entity.

Thanks!


回答1:


Good question. Here are two ways you can do it:

//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();


来源:https://stackoverflow.com/questions/8271868/how-do-i-refresh-the-list-on-the-homepage-view-of-an-entity

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!