Dear All,
Can you please let me know what is the purpose of use PrePromptModifyContract and PreRunModifyContract?
Please give me more shed on this.
Thanks!
*This post is locked for comments
Dear All,
Can you please let me know what is the purpose of use PrePromptModifyContract and PreRunModifyContract?
Please give me more shed on this.
Thanks!
*This post is locked for comments
Thanks all
Hi,
You can check below link which stands as an example for implementation of the methods prePromptModifyContract and preRunModifyContract.
(Using Controller Class in Developing SSRS Reports in Microsoft Dynamics AX 2012)
1) prePromptModifyContract is called by report controller before the parameter dialog is shown to the User.
2) preRunModifyContract is called by report controller before the report is run.
--
Regards
Ayyappa K
Hi,
1)prePromptModifyContract()
Use this method to change the report contract, common use case is to add/change a Query. This method is invoked for interactive scenarios. This method is not invoked for batch scenarios. This means any member variables instantiated in this method will not be available for the lifetime of the controller in batch scenarios.
msdn.microsoft.com/.../srsreportruncontroller.prepromptmodifycontract.aspx
2) preRunModifyContract()
This method is commonly use for Modifying the query. Setting the contract values that are hidden from the user on the dialog.subscribing to rendering Complete event.
msdn.microsoft.com/.../srsreportruncontroller.preRunModifyContract.aspx
Regards,
Tabsheer
André Arnaud de Cal... 291,820 Super User 2024 Season 2
Martin Dráb 230,514 Most Valuable Professional
nmaenpaa 101,156