Hi hope you guys are fine.
I have one html web resource and I have JAVASCRIPT in this html web resource plus I have IFrame in this html web resource as well. I have inserted this html web resource on custom entity form using web resource icon menu on main form of entity.
On Page load when i try to access IFrame like this document.getElementById("iframeid") I get IFrame control but when I try to get IFrame using Xrm.Page.ui.controls.get("iframeid") or Xrm.Page.getControl("iframeid") i always get null.
In IFrame I am loading my Canvas app, my canvas app is embeded in model driven app via iframe.
just to let you know , I have html iframe in html web resource like this
<iframe id="myid"></iframe>
I have 3 tabs on form and iframe is on first tab which opens bydefault on page load.
I do not want to use document.getElementById because MS does not recommend it when when try to publish our app to MS app source.
Any idea what i am doing wrong using XRM api ?