Refresh HTML WebResource in Ms CRM JS

Refresh HTML WebResource in Ms CRM JS  :

Normally, When form loads, it will stores the data in cache and the data will be displayed in HTML Page. Based on Change Event or ON SAVE Event, it cannot refreshes the html.

Below is the code to refresh the html page Forcefully after save or on change event.

//Force Refresh WebResource
function refreshWebResArea()
{
 debugger;
 var webResourceControl = Xrm.Page.getControl("WebResource_balu");
 var src = webResourceControl.getSrc();
 webResourceControl.setSrc(null);
 webResourceControl.setSrc(src);
 debugger;
}

That’s It. Enjoy 🙂

Advertisements

Custom HTML Grid

Custom HTML Grid:

Recently we had a requirement from client to show the Active Policies for a customer on Incident Entity. OutofBox Crm grids are used to show only the child records, so inbuilt crm grids are not applicable for this scenario.

One Customer can have Multiple policies and each policy has many no of cases.

I have done the requirement with custom Html grids as follows:

 

While pasting the code, some is missing, use the bellow screenshots of cod

Screenshot (13)

screenshot-14-e1504961314218.png

screenshot-15.png

 

That’s it Enjoy 🙂