0
我在打開CRM模式的實體窗體上有一個按鈕。我需要從該模式內的IFrame獲取數據,我嘗試了很多方法。我包括在iframe HTML ClientGlobalContext.js.aspx參考,我也試圖與從彈出式CRM動態2015的父窗體中獲取數據
$.each(parent.window.frames, function (i, val) {
if (parent.window.frames[i].Xrm.Page.data.entity != null) {
});
window.parent.Xrm.Page ...
window.top.opener.frames[0].Xrm.Page... //here window top opener is null
window.parent.opener.crmForm.all.name.DataValue //window parent opener is null
是否還有其他選擇嗎?