Report.EnabledDataSets, FastReport does not use the referenced TfrxDBDataset
I have an application with a generic TDataModule which contains a set of TDataset and TfrxDataset used by several TForm and Reports.
At runtime, each open Form use its own instance of the generic TDataModule (sometimes via another TDataModule). Similarly each Report use its own instance of the generic TDataModule.
Methods "Report.EngineOptions.UseGlobalDataSetList: = false;" and "Report.EnabledDataSets" are used to reference the instances of TfrxDBDataset used by the Report object.
But when report execute, the TfrxMasterData does not point to the TfrxDBDataset object reference by "Report.EnabledDataSets". It points to an instance of TDataModule generic used by another open window.
How is this possible ?
At runtime, each open Form use its own instance of the generic TDataModule (sometimes via another TDataModule). Similarly each Report use its own instance of the generic TDataModule.
Methods "Report.EngineOptions.UseGlobalDataSetList: = false;" and "Report.EnabledDataSets" are used to reference the instances of TfrxDBDataset used by the Report object.
But when report execute, the TfrxMasterData does not point to the TfrxDBDataset object reference by "Report.EnabledDataSets". It points to an instance of TDataModule generic used by another open window.
How is this possible ?