Tuesday, 23 February 2016

Opening up the HTML Web Resource from a Javascript

Hi All,

many times we are customizing CRM where we need to create a HTML web resource for some special UI/requirement and need to open using a modal popup.

Now here I am going to show, how can we open HTML Web Resource from a Javascript Function instead (triggered by the click of the Ribbon Button).


This function uses the Xrm.Utility.openWebResource() method introduced in Roll-Up 8  of CRM 2011.


The Function call allows you to specify the web resource URL, and the size of the pop-up window.

Xrm.Utility.openWebResource("new_webResource.htm?typename=account&userlcid=1033", null, 300, 300);


Some extra knowledge with this :)



Cheers,
Jitendra Sahu