我有一个称为问题的父母表格。此问题表格在打开自定义HTML页面的功能区上有一个名为IG的按钮。

现在,单击“提交”按钮后,自定义表单执行一些插入到CRM并直接关闭。现在,我想在关闭孩子html页面时刷新父级问题以反映我的插入。

这是我用来调用儿童表格的代码,点击“问题”表单上的IG按钮:

function popup()
{
    var url = './WebResources/irpc_/planner.html';

    var data =
    {
        issueGuid: Xrm.Page.data.entity.getId(),
        causeCodeGuid: Xrm.Page.data.entity.attributes.get("irpc_causecode").getValue()[0].id,
        riskClassificationId: Xrm.Page.data.entity.attributes.get("irpc_riskclassification").getValue()
    };

    window.showModalDialog(url , data, 'dialogHeight:480px;dialogWidth:1200px;');

}

感谢你的帮助。

谢谢

有帮助吗?

解决方案

您可以尝试:

window.location.href = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search

这将输入相同的URL减去哈希/片段。我假设CRM 5仍使用片段,如果您只是做窗口,则可以防止页面刷新。

警告:

  1. 如果表格上有脏数据,您将收到肮脏的数据警告。

其他提示

 well, you can use the following line of code.

 window.location.reload(true);
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top