简体   繁体   中英

In dynamics crm 2013 Form not get dirty when add related records

In MS Dynamics CRM I want to call post/pre update plugin when new related record is added. I think it can be done by using JS by refreshing the page but will look for other solution without page flicker.

It sounds like you may have to periodically query CRM with JavaScript and update the sub-grid when a new record has been added. There is no way to push the update to the form when the related record has been added, you will have to pull it with JavaScript.

Here is the JavaScript to refresh a sub-grid:

Xrm.Page.ui.controls.get("sub_grid_name").refresh();

This question may be relevant.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM