Refresh DataSet from Updated ClientDataset

Hello,
I have a report with a dataset derived from a ClientDataset. After adding some new fields to the CDS I am unale to refresh the Report Dataset. I have created an XML file (which includes the new fields) and set it to the CDS Filename property, set the CDS Active property to true and opened the frxReport component. The old dataset remains and I am unable to refresh it to display the new fields.

Am I missing a step? I'm using Delphi XE2 and FastReport 4.12.6. Many thanks!

Comments

  • edited 2:34PM
    It turns out I was skipping a step. After placing the path of the newly created XML file in the FileName property of the ClientDataSet and setting its Active property to True, I needed to clear the FieldAliases list from the frxDataSet object. Once I did that - when I opened the frxReport component the dataset displayed all of the fields in my query and I was able to use them.

Leave a Comment