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

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.