web
You’re offline. This is a read only version of the page.
close
Skip to main content
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
    RE: what is the purpose of use PrePromptModifyContract and PreRunModifyContract

    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
    RE: what is the purpose of use PrePromptModifyContract and PreRunModifyContract

    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
    RE: what is the purpose of use PrePromptModifyContract and PreRunModifyContract

    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
    RE: what is the purpose of use PrePromptModifyContract and PreRunModifyContract

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 3

#3
Community Member Profile Picture

Community Member 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans