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
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
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
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)
community.dynamics.com/.../using-controller-class-in-developing-ssrs-reports-in-microsoft-dynamics-ax-2012
Thanks all
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Tocauer 4
Alexey Lekanov 3
Community Member 2