FastReport report - Master - Detail links are not applied
Hi,
It worked for me. Changes I made:
Win10 -> Win11
FireDAC -> IBDAC. DevArt for Firebird
FR v 6 -> frvcl_2022_2_10_all_pro
Testing: All components are on the DataModule, which is not part of the project. OK
At runtime: I create all components dynamically and the owner is DataModule
.
In the case that I have a TDataSource, with which I create Master - Detail links between TQueries.
The problem is that these bindings do not apply. I can't figure out why. I suspect FR. I certainly don't want to have components stored on a DataModule.
FqrFocOwner := TFDFunction.NewQry(dtmdBasic);
FqrFocOwner.MasterSource := FdsFocFlat;
FqrFocOwner.IndexFieldNames := IDOwF;
FqrFocOwner.MasterFields := IDOwF;
.
FfrdsFocOwner := TfrxDBDataset.Create(dtmdBasic);
FfrdsFocOwner.UserName := 'FocOwner';
FfrdsFocOwner.DataSet := FqrFocOwner;
FdsFocOwner := TDataSource.Create(dtmdBasic);
FdsFocOwner.DataSet := FqrFocOwner;