locked
launchOnDemandWorkflow RRS feed

  • Question

  • I am trying to start a dialog process when a user clicks on a ribbon button. For that I used the function launchOnDemandWorkflow in /_static/_common/scripts/RibbonActions.js. However, this function tries to start my dialog process as a workflow. Is there an equivalent to this function to start a dialog process? Also is there any documentation from MS about this function of the content of RibbonActions.js. I couldn't find anything except some people posting questions about this function.
    Tuesday, March 25, 2014 7:20 PM

Answers

  • You could try this:

    function OpenDialog() {
        OpenDialog("95c0e04c-b3cd-4684-9877-38f01c03f198", "account", Xrm.Page.data.entity.getId());
    }
    
    function OpenDialog(dialogID, typeName, recordId) {
        window.showModalDialog(Xrm.Page.context.getClientUrl() + "/cs/dialog/rundialog.aspx" + "?DialogId=" + dialogID + "&EntityName=" + typeName + "&ObjectId=" + recordId, null, "dialogHeight:600px;dialogWidth:800px;center:yes; resizable:1;maximize:1;minimize:1;status:no;scroll:no");
    }
    


    Jason Lattimer
    My Blog -  Follow me on Twitter -  LinkedIn

    Tuesday, March 25, 2014 9:33 PM
    Moderator