一、问题点:

问题点日期:2022/02/08

记录保存后刷新 Web 资源/表单

 

二:解决方法

只有account LookUp File 发生改变的时候,保存后才刷新页面

思路:

① Modified On 字段改变来实现 ,绑定OnChange的Js事件

②  在fnOnload获取保存之前和保存后的account的值,来判断account LookUp 的值是否发生的改变。

代码实现:


var perAccount;
function fnOnLoad() {

  perAccount = Xrm.Page.getAttribute("crms_account").getValue();
}



function onAfterSave() { Xrm.Page.data.save();
var currentAccount=Xrm.Page.getAttribute("crms_account").getValue(); if (perAccount != currentAccount) { Xrm.Utility.openEntityForm(Xrm.Page.data.entity.getEntityName(), Xrm.Page.data.entity.getId()); } }

在From绑定事件:

Dynamics CRM  Refresh web resource/form AFTER record save (记录保存后刷新 Web 资源/表单)

 

 

三、参考资料

https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/206972/refresh-web-resource-form-after-record-save

 

相关文章:

  • 2021-08-14
  • 2022-12-23
  • 2021-11-11
  • 2022-01-05
  • 2022-02-02
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-19
  • 2021-08-19
  • 2021-10-01
  • 2021-07-31
  • 2022-12-23
相关资源
相似解决方案