Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

How to get selected record id in query in print layout report in SSRS

(0) ShareShare
ReportReport
Posted on by 171
Hi Team,
 
I am developing new print layout SSRS report.
 
Here if i select Particular record and click on report menu item, same selected record id should we set in dialog box.
 
 
Please let me know how to achieve this.
  • Hana Xue Profile Picture
    Hana Xue Microsoft Employee on at
    How to get selected record id in query in print layout report in SSRS
  • Martin Dráb Profile Picture
    Martin Dráb 230,962 Most Valuable Professional on at
    How to get selected record id in query in print layout report in SSRS in D365FO
    It's not clear which part you're struggling with, so here is a brief overview.
    1. Use a menu item button to call your report controller.
    2. In controller's main(), you should see the active record in _args.caller(). But don't do anything with it there, simply pass it to the controller through parmArgs().
    3. In prePromptModifyContract(), modify the query. The safest way is removing all existing filters for the given field and then adding one for the value from args.record().
  • CU21091228-0 Profile Picture
    CU21091228-0 171 on at
    How to get selected record id in query in print layout report in SSRS in D365FO
    Using RDP class.
  • Martin Dráb Profile Picture
    Martin Dráb 230,962 Most Valuable Professional on at
    How to get selected record id in query in print layout report in SSRS in D365FO
    Is it a query-based report or a reporting using an RDP class?

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,162 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans