Report Dataset from other form
Hi,
I have found that whenever I load multiple form which have each own instance of frxReport and frxDBDataset, then when I open the report designer Datasets, it will show not only frxDBDataset from the current form, but also form all other loaded form. So I think it is related with frx component being a globally avaialble object.
Is there an option or a way to make report component not globally available object?
Here is the example, I loaded 3 form which has the same frxDBDataset alias, the list load all frxDBDataset from all form, if I close the other form, the list will be updated into only 2 frxDBDataset. And this is not the only thing that loaded as many as the form instance, also happen to export filter from the save button of default preview page
Thank you
Comments
I once tried to change the code to prevent loading the same export filter component, but i think it's not efficience as it will also prevent the loading of the same components when I load the report again without recreating the form that hold the report instance, thus making the export filter not available
Set TfrxReport.EngineOptions.UseGlobalDataSetList to False, and fill TfrxReport.Datasets and TfrxReport.EnabledDatasets lists by the code.