|
The idea here is to add a CRM Form Button to the entity and have it execute a script, i.e. call a custom report in SSRS (one that isn't available using the contextual reports menu) or a custom webservice that was written. Window.dialogArguments to redirect the page is widely known, however this handy JavaScript file will allow you to easily use the Request.QueryString method when referenced (courtesy of Andrew Urquhart). Download the source code for the JavaScript file needed to complete the Request.QueryString here.
Learn how to create a button using the ISV.Config file.
An HTML redirect page is called in the above ISV.Config example. The code for the redirect page that the button will call to pass parameters from a CRM 4.0 button can be viewed here.
The JavaScript source file is referenced in the redirect page. It is as simple as knowing the names of the parameters that can be accessed using this method. The complete list of methods that can be accessed in CRM 4.0 using the Request.QueryString function in JavaScript can be viewed here.
|