Help! Child bands visibility for group footer bands never reset.

Hello,
I have a report that has the following structure:
reportbug.png

As you see I have several child bands interchained with the Group Footer and with the Footer Band.
The goal is to conditionally show only the child bands corresponding to fields (SUM aggregate values for fields columns) that have value, for each group footer and for the total of the report.

I use the following event handler for every Child Band, in order to show or hide respective child band based on the last memo from each row value (if 0 hide if not show band)
wrote:
procedure Child1OnAfterCalcHeight(Sender: TfrxComponent);
begin
if Trim(memGBrutE.Text) = '0' then begin
TfrxChild(Sender).Visible := False;
end else begin
TfrxChild(Sender).Visible := True;
end;
end;

Unfortunately, this works only on the Footer Child Bands.
For the Group Footer Child Bands, it is shown only one band and after that the rest remains hidden, even if they should be visible.

In the picture below you see one result:
reportbugresult.png

See below the way the child bands properties are chained:
reportbugchild.png

Is there a way to solve the Visible property of multiple Child bands for Groups?
We use FR 5.1.9 and Delphi XE

Any help would be appreciated!

Comments

  • edited 6:54PM
    Nobody has the same problem with multiple child band visibility?

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.