Hi,
I'm using component LazReport and simple reports everything is OK.
Simple, that is not used as a "detail data" or "sub-detail data", only "master data".
However, the reports using data master-detail data is wrong provided the source for "detail data".
Just band of "detail data" print data from the first record table2 (if inadvertently).
This error can be seen in this simple example.
..
Table1 (id, name, id_of_place)
Table2 (id, name_of_place)
...
Query1: select id, name, id_of_place from Table1
Query2: select name_of_place from Table2 where id=:id_of_place
..
On LazReport:
band of master data - all OK, but detail band of data - random records, just always the first record.
I use two methods to provide data source for the "detail data":
1. By component DataSource,
2. By Query2.Params
With the same effect as describing erroneous.
Has anyone used LazReport? Or noticed this error? How to do it correctly?
Regards.