Skip to main content

Notifications

Announcements

No record found.

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

SSRS Report for Sales order filter Issuses

(1) ShareShare
ReportReport
Posted on by 4
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,
 
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 77,351 Super User 2025 Season 1 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

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,234 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,994 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans