Updating DBDataset Dynamically
I am running fast reports on Delphi 7.
I have a customer table that has very many columns so select * from customer is not a viable option. I want report designer who do not have the source code to decide the columns to pick then dynamically update Dataset Alias to enable the fields selected to be available in the report attached to the DBDataset.
Is there any way of doing this? Do we have a function like DBDataset.refresh that updates aliases with what has been picked in the query?
All responses will be highly appreciated.
Comments
Try to set TfrxDBDataset.Dataset to nil, clear TfrxDBDataset.FieldAliases, set TfrxDBDataset.Dataset = YourDatasetName