Asked by:
How do I refresh a web resource on a form after save? (CRM 2013)

Question
-
How do I refresh a web resource on a form after save for 2013?
Thanks in advance,
JonTuesday, January 7, 2014 6:43 PM
All replies
-
How do I refresh a web resource on a form after save for 2013?
Thanks in advance,
Jon- Merged by Andrii ButenkoMVP, Moderator Tuesday, January 7, 2014 9:06 PM The same thread
Tuesday, January 7, 2014 12:56 AM -
Hi,
What kind of web resource? And in what way are you refreshing the web resource? Something like this?
Ronald
- Edited by Ronald Liu Tuesday, January 7, 2014 8:13 PM
Tuesday, January 7, 2014 8:10 PM -
I want to refresh the web resource on the form after I save the record.Tuesday, January 7, 2014 8:43 PM
-
Give the proposed answer in my link a try.
Ronald
Tuesday, January 7, 2014 8:59 PM -
Hi
I want to refresh HTML web resource on the form after save, can you please let me know the way.
Friday, July 17, 2015 1:26 PM -
Hi,
use the following code in the onSave event
function
refreshWebResArea() {
var
webResArea = Xrm.Page.ui.controls.get(
"WebResource_Name"
);
webResArea.setSrc(webResArea.getSrc());
}
Hope this helps,
Regards,
Darrel
Please mark as answer or helpful, so that others could be benefitted from this reply,
Monday, July 20, 2015 6:26 AM -
Hi,
i am currently working on CRM 2015 (Carina), in that we have scenario reload the web resource on save of form. i have tried above and not worked so followed the below one it's working fine.
function setRecordDetails() {
//get record id
var recordId = Xrm.Page.data.entity.getId();
//validate recordid
if (recordId != null && recordId != undefined && recordId != "") {
//get the querystring from the control
var querystring = Xrm.Page.getControl("WebResource_AutoEmailNotification").getSrc();
//set the new querystring
Xrm.Page.getControl("WebResource_AutoEmailNotification").setSrc(querystring + "&data=" + recordId);
}
}
Thanks for your Reply
Monday, July 20, 2015 11:04 AM