In previous post I wrote unclear example :D
I need to create report with two data items (for example Sales Header and Sales Line) and I need to pass both two tables to this report.
Situation: User choose Sales Headers. In next step User choose Sales Lines from above Sales Headers. So we have two records with User selection filter.
In report I have two dataitems - connected by DataItemLink (Sales Header.No) - and I pass SalesHeader by report .SetTableView property. But how can I also pass second table (SalesLine which contains records selected by User)?
For each selected Sales Header I only want to print Sales Lines selected by User. If I only use DataItemLink I get all sales Lines related to selected Sales Header. I want to print only part od them - based on User selection.
(this is only example - generally I need to 'filter' two dataitems inside report based on User selection on two records. After user selection I have two tables with only selected records. I want to pass both to dataitems of one report - first is clear - by Report.SetTableView.But what with second table/dataitem?)