Friday, July 22, 2016

Open HTML page when button click in CRM

In the web resource there is a html file new_IntialExemption.html.

//If you need to pass any parameters use following code instead:
var webresourceurl = "/webresources/new_IntialExemption?Data=" + encodeURIComponent(addParams);


//First parameter - prepared url of dialog
//Second parameter - control from which you open dialog
//Third and Fourth - width and height
var dialogwindow = new Mscrm.CrmDialog(Mscrm.CrmUri.create(webresourceurl), window, 350, 200);

//use setCallbackReference method to call some handler once dialog is closed
//to result variable would be returned result of dialog call
dialogwindow.setCallbackReference(function (result) {
    callAvaEmailCertCapture()
});

//call this method to show dialog
dialogwindow.show();

function callAvaEmailCertCapture() {

}

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.