web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

what is the purpose of use PrePromptModifyContract and PreRunModifyContract

(0) ShareShare
ReportReport
Posted on by 30

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

I have the same question (0)
  • Verified answer
    dasdasd Profile Picture
    841 on at

    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

  • Verified answer
    toayyappa Profile Picture
    115 on at

    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

  • Verified answer
    Chaitanya Golla Profile Picture
    17,225 on at

    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)

    community.dynamics.com/.../using-controller-class-in-developing-ssrs-reports-in-microsoft-dynamics-ax-2012

  • @rp@n Profile Picture
    30 on at

    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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Sagar Suman Profile Picture

Sagar Suman 2 Super User 2026 Season 1

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans