You can create a function in your report, which you call before you start your report. The parameters of the function contain your values with which you want to filter in your report. And in the function you can set with these values your filter or you can use the values later in your report.
i want to open a ledger entry report starting from the item card (form).
how can i transfer the filters from form to report.
Is there any idea ?
Thank's in advance
Steve
For Example in the report the function would look like this:
FilterReport(DateVal : Date, ItemFilter2 : Code)
"Item Ledger Entry".SETFILTER("Posting Date",DateVal);
"Item Ledger Entry".SETFILTER("Item No.",ItemFilter2);
From the form the code could look like this:
ItemReport.FilterReport(Today,"No.");
ItemReport.RUN;
Comments
Hope this helps.
Regards,
Frank
For Example in the report the function would look like this:
FilterReport(DateVal : Date, ItemFilter2 : Code)
"Item Ledger Entry".SETFILTER("Posting Date",DateVal);
"Item Ledger Entry".SETFILTER("Item No.",ItemFilter2);
From the form the code could look like this:
ItemReport.FilterReport(Today,"No.");
ItemReport.RUN;
Report.SETTABLEVIEW(Record);
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯