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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

change the value of the report parameter

(0) ShareShare
ReportReport
Posted on by 58

Hello friends,,
Is it possible to change the value of the report parameter from within the processReport() function?
Or from within the DC class?

I have the same question (0)
  • Komi Siabi Profile Picture
    13,093 Most Valuable Professional on at

    Hi XPRES,

    When you say change, do you want to add a new parameter or disable an existing parameter on the contract ?

  • XPRESS Profile Picture
    58 on at

    I have a parameter in the report and I want to send a value to it

  • Komi Siabi Profile Picture
    13,093 Most Valuable Professional on at

    As far as you have the parameter defined in the contract class, you can assign value in the processReport().

  • XPRESS Profile Picture
    58 on at

    Yes, this is what I want.. I want to send the user name as an example to show the bottom of the report via a parameter found in the report

  • Suggested answer
    Komi Siabi Profile Picture
    13,093 Most Valuable Professional on at

    Okay, if I get you right, you can to display the value of the parameter on the report design itself.

    You can add a text box on the design. Right click to insert an extension. There's a tab that contains the parameter(s). You can insert.

  • XPRESS Profile Picture
    58 on at

    How do I assign the value to a variable from within the class?

  • Suggested answer
    Komi Siabi Profile Picture
    13,093 Most Valuable Professional on at

    Hi,

    You can declare the contact class and call the parameter Method.

    dataContract.parmAccountNum()

    Check this from MS learn.

    learn.microsoft.com/.../how-to-use-a-report-data-provider-class-in-a-report

  • XPRESS Profile Picture
    58 on at

    Here the variables are called,

    I want the opposite to give the variable a value

    For example:-

    dataContract.parmAccountNum()="NewValue";

  • Komi Siabi Profile Picture
    13,093 Most Valuable Professional on at

    Where will this value come from ?

    The user, or you want this value hard coded?

  • XPRESS Profile Picture
    58 on at

    Any value, for example, the username

    in coded

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 549 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans