locked
HTML Web resource - Custom Dialog RRS feed

  • General discussion

  • Hi All,

    I want to open a HTML web resource as a pop up on Opportunity form.

    I want this pop up to be a dialog so that user will not be allowed to make any changes to the parent form unless he closes the pop up.

    Please advise.

    Regards,

    Naveen

    Tuesday, September 23, 2014 6:08 AM

All replies

  • You can use window.showModalDialog but in chrome and safari it will not open as Dialog. I suggest u to use this webresource as SubGrid. You make the validation from the plugin.

    Polat Aydın Crm Software Developer

    Tuesday, September 23, 2014 7:10 AM
  • use below code

    var src = <Relative_Url_of_the_Webresource>;
    var DialogOptions = new Xrm.DialogOptions(); 
    DialogOptions.width = 500;
    DialogOptions.height = 400;
    Xrm.Internal.openDialog(src, DialogOptions, null, null, CallbackFunction);
    
    function CallbackFunction(returnValue){ }


    Hope this helps. ----------------------------------------------------------------------- Santosh Bhagat If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

    Tuesday, September 23, 2014 7:59 AM
  • Hi Santhosh,

    Say the name of the HTML webresource is new_webresource.

    Var src = "/webresources/new_webresource" ;

    Is this correct ?

    Regards,

    Naveen

    Tuesday, September 23, 2014 9:21 AM