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

Call query based SSRS report one by one for selected records

(0) ShareShare
ReportReport
Posted on by 2,015

Hi Techies,

We are looking for a quick/urgent solution on one issue we are facing in work report.

Navigation to open a report ->All work->Work tab(Action pane)->Work report

pastedimage1653287946889v2.png

This is a query based report and we have customized it. In case of multiple records selected- report is opening once and showing each record report one after other in single document. Body section is grouped.

Challenge we are facing here is with footer section. This is not added in body grouping so footer data is not in sync with body.

We're thinking to call this report from class for each record one by one, can anyone share any links/ code if done already like this please, we are looking more into it.

Or, is there any alternate way to get footer details in sync with body in single report. Please advise. Please let me know if I can share more details.

Thanks in advance.

Regards,

Sangram

  • Suggested answer
    Reliable Profile Picture
    2,015 on at
    RE: Call query based SSRS report one by one for selected records

    So this is achieved with below set of customization-

    Created a new class, opened a new dialogue(custom form) with multiple selected records and print settings from this class.

    Given an option to select print setting on this dialogue.

    Using these selected records and print setting, called report controller class(new) for each work order.

    Also a new controller class is written to remove the ranges and add only selected in setRanges() method. Because standard controller class has logic inside this method to filter all records that are selected, so even when you are calling a report for single work via code it takes all selected records.

    So cleared the work id range in separate controller class and added single work order for which a report is called for.

    Hide the original report dialogue.

    Now the reports are opening one document after another in cascading manner, which resolves the footer issue.

    Thank you.

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

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

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

Product updates

Dynamics 365 release plans