frxReport not pointing to the correct frxDBDataset

edited 3:02AM 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 3:02AM
    Try to disable GlobalDatasetList:

    TfrxReport.EngineOptions.UseGlobalDatasetList := False;

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.