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 :
Small and medium business | Business Central, N...
Suggested Answer

Setting Filters on a Report Request Card

(0) ShareShare
ReportReport
Posted on by 54
Hello,
 
I'm trying to implement some custom code for Batch Draft Invoice previewing.
 
Currently, we're looping through the selected Sales Invoices and then calling DocumentPrint.PrintSalesHeader(Rec)
 
This works OK, but I'd like to remove some of the filters so that the previewer shows all invoices in the selected range. 
 
If I manually remove the Bill To Customer and the Invoice No. I get the correct behaviour. How can I remove these programatically?
 
////////
 
 
Any assistance would be very helpful.
 
Kind Regards,
D
 
 
 
 
I have the same question (0)
  • Suggested answer
    Kamal Khakhkhar Profile Picture
    1,276 on at
    Hii Every One,
     
    As per the Requirement you need to remove all the filter and need your custom filters only.
    For that you need to put the following code as per below example.
     
    DataItemTableView = sorting("Key Of DataItem"); RequestFilterFields = "Document Type";
     
    where you can write the Required Filter Fields as per your requirement.
     
    Thank You,
    Kamal Khakhkhar
  • Community member Profile Picture
    54 on at
    Does that mean I have to extend the request page to control the filters? Is there not a way of setting those when calling?
  • Suggested answer
    YUN ZHU Profile Picture
    95,597 Super User 2025 Season 2 on at
    Hi, hope the following can give you some hints.
    Dynamics 365 Business Central: Can we change default options/filters on the request page of Report???: https://yzhums.com/40072/
     
    Thanks.
    ZHU
  • ManishS Profile Picture
    86 on at
    The Draft invoice is mapped to be printed from sales invoice page only, if you look into the AL, there is no UsageCategory defined, if it would have been then you might get blank filters.
     
    Why this has been set ,if for accidently printing a bunch of invoice into the printer.
    As these are table filter and not on a request page filters, seems you cannot remove it 
     
    You can try to copy the report & its layout and create your own report with UsageCategory= ReportsAndAnalysis. 
     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,917

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,161 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,025 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans