Is it possible?? Drill-down group and row count in header
Hi all...
I'd like to say hello, because it's my first post on this forum.
I have a question about drill-down group feature. Is it possible to move row count from groupfooter to groupheader display it before without group expanding ?
this is an example below:
I've tried to use "Dialogs and script" demos but it doesn.t work for me [img]style_emoticons/<#EMO_DIR#>/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> procedure Memo24OnBeforePrint(Sender: TfrxComponent); begin if Engine.FinalPass then Memo24.Text := 'Row count : ' +Format('%',[Get(<Users."ID">)]); end; procedure GroupFooter1OnBeforePrint(Sender: TfrxComponent); begin Set(<Users."ID">, Count(<Users."ID">)); end; thanks for any help.. regards Michal[/img]
I'd like to say hello, because it's my first post on this forum.
I have a question about drill-down group feature. Is it possible to move row count from groupfooter to groupheader display it before without group expanding ?
this is an example below:
I've tried to use "Dialogs and script" demos but it doesn.t work for me [img]style_emoticons/<#EMO_DIR#>/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> procedure Memo24OnBeforePrint(Sender: TfrxComponent); begin if Engine.FinalPass then Memo24.Text := 'Row count : ' +Format('%',[Get(<Users."ID">)]); end; procedure GroupFooter1OnBeforePrint(Sender: TfrxComponent); begin Set(<Users."ID">, Count(<Users."ID">)); end; thanks for any help.. regards Michal[/img]
Comments
RowNumber: Integer;
procedure DetailData1OnBeforePrint(Sender: TfrxComponent);
begin
if Engine.FinalPass then
begin
RowNumber := RowNumber + 1;
end;
Memo24.Text := IntToStr(RowNumber);
end;
procedure GroupHeader2OnBeforePrint(Sender: TfrxComponent);
begin
RowNumber := 0;
end;
It looks like this on the report
I have drill-down groups on the report grouped by the date of occur:
I'll be very grateful if someone can help me solve this problem.
best regards
Michal
See attach
Thanks very much for the reply! [img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />) aggregate function with flag=1 works fine only for main group ... I have two groups in my report: Main group is by USER_NAME (for example SYSDBA, MICHALS etc.), and the subgroup is by the date of events occur. At this moment the report looks like below:[/img]
Aggregate functions shows row_count from the last USER group.
I need to group events by USER_NAME and then by DATE. Is it possible to use two grouping conditions?
Thanks again for the help !
best regards
Michal.
Does anyone would be so kind to tell me how can I count events as I wrote above?
best regards.
Michal
Ok,[img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> There is the test report based on Drill-Down groups 97.fr3 file in attachment:) thanks for any help.[/img]
Does anyone of you would be so kind and tell me how can I do this grouping in FastReport ?
best regards.
Michal