Hi, everyone.
We have several custom buttons which open custom html webresources.
They work properly in Web. But now we need to configure Dynamics 365 for Mobile application. But when im using the latest Xrm.Navigation.openWebResource function like this:
Xrm.Navigation.openWebResource("{myresource}.html");
or
Xrm.Navigation.openWebResource("{myresource}.html", { height: 120, width: 260 });
After publication it shows correctly just first time. With the next calls it shows only empty page with text "No data available". When I`m trying the navigate back it shows error:
null is not an object (evaluating 'document.getElementById("FullPageWebResource").contentWindow')
I tried previous:
Xrm.Utility.openWebResource("{myresource}.html", null, 300, 300);
But result is the same.
Does anybody know how to resolve this?
*This post is locked for comments