Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

Add range to second dataset in query report

(0) ShareShare
ReportReport
Posted on by 14
Hello 
I created a report with two datasets based on query report, not RDP 
I added range to the first query through 
        SrsReportHelper::addParameterValueRangeToQuery(this.getFirstQuery(),            tableNum(RetailTransactionTableView),fieldNum(RetailTransactionTableView, receiptId),            SysQuery::value(dataTable.receiptId));
How to add range to the sencod query(second dataSet) , how to get the second query ?
 
 
  • Suggested answer
    Waed Ayyad Profile Picture
    Waed Ayyad 6,493 Super User 2024 Season 2 on at
    Add range to second dataset in query report
    Hi,
     
    I think it is the same Query some you should use the same code but changing the table to your second DataSource table. Give it a try and tell me if it's working or not.
     
     
    Thanks
    Waed Ayyad
    If this helped, please mark it as "Verified" for others facing the same issue
     
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    Mohamed Amine Mahmoudi 10,169 Super User 2024 Season 2 on at
    Add range to second dataset in query report
    Hi,
     
    I think you must add this : 
     
    SRSReportHelper::addParameterValueRangeToQuery(
    reportQuery,tablenum(<<YourSecondTable>>),
    fieldnum(<<YourSecondTable>>, <<Field>>),
    <<YourValue>>);
    Best Regards,
    Mohamed Amine MAHMOUDI

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! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans