Hi Team,
Please find the below code for refreshing the Webresource through UCI
var webResourceControl = Xrm.Page.getControl("WebResource_HTMLHubCalculations");
var src = webResourceControl.getSrc();
webResourceControl.setSrc("test"); // setting null won't work in UCI
setTimeout(function () {
var url = Xrm.Utility.getGlobalContext().getClientUrl();
webResourceControl.setSrc(url + "/%7b637153127100011730%7d/webresources/yourscript.html");
}, 100);
Please find the below code for refreshing the Webresource through UCI
var webResourceControl = Xrm.Page.getControl("WebResource_HTMLHubCalculations");
var src = webResourceControl.getSrc();
webResourceControl.setSrc("test"); // setting null won't work in UCI
setTimeout(function () {
var url = Xrm.Utility.getGlobalContext().getClientUrl();
webResourceControl.setSrc(url + "/%7b637153127100011730%7d/webresources/yourscript.html");
}, 100);
No comments:
Post a Comment