Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

Getting error when accessing a advanced find filter in iframe on UCI

$
0
0

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.


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>