Quantcast
Channel: Forum CRM Development
Viewing all articles
Browse latest Browse all 1000

CRM2011 Rollup12 - Call Dialog Workflow in JavaScript

$
0
0

Hello,

For CRM 2011 Rollup 12, is there a supported customization for calling a dialog workflow programmatically in JavaScript? The code snippet shown below is the method I have been using to call the dialog once business validation logic has been met. Upon return from ShowModalDialog I am reloading the window. ShowModalDialog is not supported by all browsers, and with HTML5 the third parameter containing style settings is no longer supported. The dialog comes up to the screen but only the bottom buttons on the dialog workflow are appearing.

      var recordId = window.parent.Xrm.Page.data.entity.getId();

      var serverUri = Mscrm.CrmUri.create('/cs/dialog/rundialog.aspx');

      window.showModalDialog(serverUri + "?DialogId=" + "{20c40382-463c-4bc7-ab27-1f9e7d1cba16}" + "&EntityName=" + "new_myentity" + "&ObjectId=" + recordId, null, "width=615,height=480,resizable=1,status=1,scrollbars=1");

Any ideas for a supported customization would be greatly appreciated.

WendellGman


Viewing all articles
Browse latest Browse all 1000

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>