frxReport not pointing to the correct frxDBDataset

edited 7:37AM in FastReport 4.0
I'm working on a MDIform with 1 frxreport and 1 frxdbdataset on it. I use this form with a grid to open and print multiple searches. The problem is that if i open 2 searches (2 instances of the same form) the second report shows the data from the first. With the 2 forms open, if I open the report for edition it shows 2 frxdbdataset with the same name (they are visible for whole application). How can i identify which dataset must be used by the report?
The use of multiple frxDBDatasets is not the solution because I have hundreds of reports and in this case would have to add one dataset for each report and would have to change all reports to point to the respective dataset.

How can I work around this problem?

Thanks
Joao

Comments

  • gpigpi
    edited 7:37AM
    Try to disable GlobalDatasetList:

    TfrxReport.EngineOptions.UseGlobalDatasetList := False;

Leave a Comment