Filter on multiple dataitems in report

Hi On a report I use two dataitems (Invoice and Invoice2) that both contain records from the same table (Invoice). When I call the report with something like this Invoicetest.SETFILTER(“Country Code”,‘IT’); REPORT.RUNMODAL(5201, TRUE, FALSE, Invoicetest); then the first dataitem of the report (Invoice) is correctly filtered. But I also want to use the same filter on the second dataitem (Invoice2) of the report. How can I do this ? Thanks in advance R

Hi, try this: Invoice2.COPYFILTERS(Invoice); in the OnPreDataItem() of Invoice2 br Josef Metz

Thanks Josef, works nicely ! R