实现方式,在明细表的新增按钮,设置为可自定义,绑定函数:
//授权记录显示“未保存的更改”时不可添加授权产品 function IsSavedAuthorize(selectedEntityTypeName, primaryEntityTypeName, firstPrimaryItemId, primaryControl, selectedControl) { if (Xrm.Page.data.getIsDirty()) { alert("请先保存单据。"); return; } XrmCore.Commands.Open.addNewFromSubGridStandard(selectedEntityTypeName, primaryEntityTypeName, firstPrimaryItemId, primaryControl, selectedControl); }
标签:更改,selectedEntityTypeName,保存,添加,selectedControl,Dynamics,主表 From: https://www.cnblogs.com/parkerchen/p/17516479.html