Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

what is the purpose of use PrePromptModifyContract and PreRunModifyContract

(0) ShareShare
ReportReport
Posted on by

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

  • @rp@n Profile Picture
    @rp@n on at
    RE: what is the purpose of use PrePromptModifyContract and PreRunModifyContract

    Thanks all

  • Verified answer
    Chaitanya Golla Profile Picture
    Chaitanya Golla 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

  • Verified answer
    toayyappa Profile Picture
    toayyappa 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
    dasdasd Profile Picture
    dasdasd 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

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,820 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,514 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans