Hi All,
Could anyone please tell me how to use date filter in Business Central in a report request page ?
I have to create a report to display Birthdays falling between a specified range.
Following is the Report code :
report 50101 EmployeeBirthdayReport
{
Caption = 'Employee Birthday';
UsageCategory = ReportsAndAnalysis;
ApplicationArea = All;
DefaultLayout = RDLC;
RDLCLayout = 'EmployeeBirthdayReport.rdl';
dataset
{
dataitem("Employee"; Employee)
{
RequestFilterHeading = ' ';
RequestFilterFields = "Office Location", "status", "Date Filter";
column(No_; "No.")
{
}
column(First_Name; "First Name")
{
}
column(Last_Name; "Last Name")
{
}
column(Birth_Date; "Birth Date")
{
}
}
}
The required filters are 'From Date' and 'To Date'/ Please modify the code accordingly.
Thanks !