sorted datas with frxuserdataset

edited 9:26AM in FastReport 4.0
hello together,

I put data from my application inside a frxuserdataset by using frxUserDataSet1GetValue.

To calculate something I save the data also in a ValueList:TStringList.

procedure MasterData1OnBeforePrint(Sender: TfrxComponent);
... not Engine.FinalPass then
ValueList.Add(<frxUserDataSet1."WallThick">) ;

and:

ReportTitle1OnBeforePrint(Sender: TfrxComponent);
....
Engine.FinalPass then...

Now, the Problem: I've to sort the data before using in the userdataset.

Are there some idea how I can manage it?
Using SQL-Query with userdataset? Possible?
Maybe, rewrite the data to the userdataset after the sorting?

Thanks for your help....

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 9:26AM
    fast report does not sort it only outputs the data passed to it
    grouping requires you to sort you queries using an order by clause to order the fields,
    in the order of the group(s) conditions.
    tables should be presorted.

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.