Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

SSRS Report for Sales order filter Issuses

Posted on by
Hi,
On the Sales Order page, I have added a custom button to create a new report. The report uses the following tables:
Sales Header (default table)
Sales Line (default table)
Lot Data (new table)
Scheduling Window Line (new table)
 
 
The tables are linked to generate the new report, which is currently functional. I need to preview the report and apply filters for the following fields:
If no filter is added, the report should display all records.
Sales Header: Document Date (filter is working for this field)
Lot Data: Ask Ship Date (filter is Not working )
Scheduling Window Line: Fabrication Date (filter is Not working )
 
The filters should allow manual entry of date ranges in the report window. For example:
Single date format: 11/18/2024
Date range format: 06/01/2023..11/20/2024
 
Currently, the filter works only for the Sales Header table field (Document Date).
 For the other fields (Ask Ship Date from Lot Data and Fabrication Date from Scheduling Window Line), the filter is not working—it shows all records instead of filtering.
How can I add filtering for these fields to work as expected?
 
Thank you,
 
Categories:
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 72,583 Super User 2024 Season 2 on at
    SSRS Report for Sales order filter Issuses
    I don't know your report design, generally you can put the filter into the OnPreReport (Report) trigger or OnPreDataItem (Report Data Item) trigger.
    If you are getting the value in code, just the filters in the code.
     
    Hope this can give you some hints.
    Thanks.
    ZHU

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,658 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans