简体   繁体   English

在Dynamics CRM 2013表单中添加相关记录时不会弄脏

[英]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. 在MS Dynamics CRM中,我想在添加新的相关记录时调用发布/更新前插件。 I think it can be done by using JS by refreshing the page but will look for other solution without page flicker. 我认为可以通过刷新页面使用JS来完成,但是会寻找其他解决方案而不会导致页面闪烁。

It sounds like you may have to periodically query CRM with JavaScript and update the sub-grid when a new record has been added. 听起来您可能必须定期使用JavaScript查询CRM,并在添加新记录时更新子网格。 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. 添加相关记录后,无法将更新推送到表单,您将不得不使用JavaScript将其拉出。

Here is the JavaScript to refresh a sub-grid: 这是刷新子网格的JavaScript:

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

This question may be relevant. 这个问题可能是相关的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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