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, ...
Suggested Answer

how to populate the fields from class Data Provider

(0) ShareShare
ReportReport
Posted on by

how we can populate the fields from Class DP and Class Controller to get the fields displayed on report .I need to display Sales Order Customer report through this.

Kindly help me anyone.

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    237,976 Most Valuable Professional on at

    Are you saying thatr you have no idea how RDP classes work and you're looking for an introduction, or do you have any particular problem?

    In short, you write records to a table (usually a temporary one) in processReport() (or a method called from processReport()) and return a reference to this table buffer in a method decorated with SRSReportDataSetAttribute. Check out How to: Use a Report Data Provider Class in a Report, for instance. You can also look into any existing RDP class to see it in practice.

  • Community Member Profile Picture
    on at

    What about methods which populate the data in Class DP and .what code to write in controller.

  • Martin Dráb Profile Picture
    237,976 Most Valuable Professional on at

    I'm sorry, but it's not clear to me what you want to say by your first sentence.

    Code "to populate the fields from class Data Provider" is in the data provider class, not in a controller.

  • Community Member Profile Picture
    on at

    In Class Controller, which code we have to write then for sales order purchase my project.

  • huijij Profile Picture
    19,811 on at

    Hi Jasir,

    The method processReport() is used to populate the data.

    The SSRS reporting framework uses this class to modify the report dialogs,calling the SQL Server reporting services,

    as well preprocessing parameters for the report.

    Please check the following link to learn more about creating SSRS RDP report:

    Hope it help you.

    regards

  • Community Member Profile Picture
    on at

    for Salesorder Confirmation ,where can we popluate the fields which does not exists in the temp table.Even if there is requirement of contract class here or not?

  • Suggested answer
    Martin Dráb Profile Picture
    237,976 Most Valuable Professional on at

    If you want extra fields, extend the temporary table and add them. Then extend the data provider class and populate their values.

  • Community Member Profile Picture
    on at

    Hi Martin,

    I added a new field to the temp table, added code in report data provider class to populate the new field, all seems to work fine.

    But when I tried to add that new field from temp table to the report, it is complaining that temp table doesn't have that new field. 

    Am I missing some steps to have the temp table refreshed? So that the report can see the new field?

    thank you for your help!

    Helen

  • Martin Dráb Profile Picture
    237,976 Most Valuable Professional on at

    Try restoring the data source of in the report definition.

  • Community Member Profile Picture
    on at

    Thank you Martin,

    I did a recompile of the model, restarted the SSRS reporting services, and I can see the new table that I added to the Data provider class. Next time I will try using restoring the data source.

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
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 422 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans