Detail key in master-detail?
I have a report with one master data and several detail data. The data for each band is a preset dataset. How do I tell FastReport which column/key in each dataset, I want to group/sort by?
e.g.
That is, when the columns of the same name in both master and detail have the same value. I know I have seen a demo example of it before, but I cannot for the life of me find it again.
For the record, the datasets are TClientDataSet.
e.g.
Master
[id] [text]
Detail on id=id
[info]
...
That is, when the columns of the same name in both master and detail have the same value. I know I have seen a demo example of it before, but I cannot for the life of me find it again.
For the record, the datasets are TClientDataSet.
Comments
Could give some more examples using any data instead of column names?
Using the FRDemo as my base, I figured out how to work with DataSources and MasterFields, MasterSource and IndexFieldNames.
It's a little confusing at first, but once you understand it, it makes sense.