Groups aren't grouping
Hi Fast Reports team and fellow forum members.
I'm trying to create a function which generates a Fast Report report programmatically. I've got it to work for the most part, but I am having trouble getting the grouping to work. What happens is that the group header band displays as expected, but the data doesn't actually get grouped (see attached image and text file containing the code).
I suspect the issue is somewhere in the section where I am creating the group header, but I could be wrong.
Any help would be appreciated, I am stuck for ideas at the moment.
Thanks.
I'm trying to create a function which generates a Fast Report report programmatically. I've got it to work for the most part, but I am having trouble getting the grouping to work. What happens is that the group header band displays as expected, but the data doesn't actually get grouped (see attached image and text file containing the code).
I suspect the issue is somewhere in the section where I am creating the group header, but I could be wrong.
Any help would be appreciated, I am stuck for ideas at the moment.
Thanks.
Comments
Try
GroupHeaderBand.Condition := DMGenericFastReport.frxDBDataset.Name+'."'+AReportParameters.Fields.Name+'"';
too
Hi gpi, yes your suggestion was right, the QuotedStr was causing the problem