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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

Print SSRS dynamic query ranges on the report with simple query

(1) ShareShare
ReportReport
Posted on by 268
I want to print the query ranges which are entered by a user when running a query based report. As I understood from Martins explanations in https://dev.goshoom.net/2014/09/showing-dynamic-parameters/ this could be easily done in the DP class of the report. So I want to try to switch to the data source type "Report data Provider" instead of "Query":
 
Im just struggeling how I should add the two different DataSets to the DataProvider Class:
1. Tmp Table with query ranges as explained in the blog
2. My simple query called "...InventTransListQuery" which could be adjusted by the user in the report dialog
 
Do I have to create a second tmp table for the result of the simple query even when the data is copied 1:1?
I have the same question (0)
  • Layan Jwei Profile Picture
    8,266 Super User 2026 Season 1 on at
    Hi Basti,

    I'm not sure why you want two different datasets (can you please explain further)

    you just need a tmp table, query, controller class and RDP class (ui builder and contract are optional based on ur requirement)
    you just need to add [SRSReportQueryAttribute(queryStr(YourQueryName))] to your RDP class

    maybe check if this link helps
    https://medium.com/@RamzanLilla/how-to-create-ssrs-report-using-aot-query-in-dp-class-in-dynamics-365-fo-14f880b7e685
     
  • Basti Aurand Profile Picture
    268 on at
    Hi Layan,
     
    the report basis originally is only one dataset (-> Query with join: InventTrans and InventTransOrigin).
     
    Due to display the query range values, which are defined by the user on the query, the second dataset is needed (tmp table with query ranges as described in Martins blog post).
     
    Maybe you have a different solution?
  • Basti Aurand Profile Picture
    268 on at
    Any ideas on this?
  • Verified answer
    Martin Dráb Profile Picture
    239,992 Most Valuable Professional on at
    You'll indeed need a temporary table for the fields from InventTrans and InventTransOrigin that you're going to show in your report.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 426 Super User 2026 Season 1

#2
Subra Profile Picture

Subra 371

#3
Martin Dráb Profile Picture

Martin Dráb 279 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans