Hi Guys,
I have an advanced filter in iframe on a form. the below code works fine when accessing the iframe in normal crm environment.
function OnIFrameReadyState() { debugger; window.frameLoaded = true; var fetchXML = Xrm.Page.getAttribute("field_fetchxml"); if (fetchXML != null && fetchXML.getValue() != null) { debugger; //var advFind = document.getElementById('IFRAME_FilterCriteria').contentWindow.aFind; Xrm.Page.ui.controls.get('IFRAME_FilterCriteria').getObject().contentWindow if(Xrm.Page.ui.controls.get('IFRAME_FilterCriteria').getObject().contentWindow){ document.getElementById('IFRAME_FilterCriteria').contentWindow.advFind.parentElement.children.advFind.control.set_fetchXml(fetchXML.getValue()); } //if (aFind != null) { // debugger; //aFind.parentElement.children.aFind.control.set_fetchXml(fetchXML.getValue()); //} } }
but when I access it in UCI I am getting this error
what could be the solution to this problem.
Thanks.
*This post is locked for comments