Today we got a requirement to get the address from some external system and show them as popup to the user. User selects one of the addresses and we need to do some business operation based on the selection.
The challenge is to show the UI like CRM windows so that the user will not see any difference in the UI.
Create a HTML webresource and design it as per your requirement.
Make sure you include the reference of ClientGlobalContext.js.aspx in the webresource.
Call the web resource using the following code.
// Set height and width of the window
vDialogOption.width = 100; DialogOption.height = 100;
Xrm.Internal.openDialog(“Relative_Url_of_the_Webresource”, DialogOption, null, null, CallbackFunction);
On the button click, you can also return values from Popup.
Hope this helps