Hi,
Have 2 Groups and details. Would like to Hide and Display the Group1 header if the rows in the details are greater than 0. The report brings in all the records and then filters in the Section Expert of the Details.
Right now using the following formulas in the report (CR9)but the variable noRows shows always 0 in the group2 header even though there are rows in the details. Any suggestions appreciated.
Details: @Calc (incrementing)
-----------
WhilePrintingRecords;
global numbervar noRows;
If {table.colum1}=1 and {table.column2}=-1 Then
noRows := noRows + 1;
Group2 Header: (displaying) but shows 0. In Section Expert would like to make group header hide and dsplay. if noRows=0 (suppress).
@Disp
--------------------
WhilePrintingRecords;
global numbervar noRows;
noRows
Group2 Footer: & in Group1 Header: (Initializing)
@Init
----------------------------------------------------
WhilePrintingRecords;
global numbervar noRows;
noRows := 0;
thanks
Saj
Have 2 Groups and details. Would like to Hide and Display the Group1 header if the rows in the details are greater than 0. The report brings in all the records and then filters in the Section Expert of the Details.
Right now using the following formulas in the report (CR9)but the variable noRows shows always 0 in the group2 header even though there are rows in the details. Any suggestions appreciated.
Details: @Calc (incrementing)
-----------
WhilePrintingRecords;
global numbervar noRows;
If {table.colum1}=1 and {table.column2}=-1 Then
noRows := noRows + 1;
Group2 Header: (displaying) but shows 0. In Section Expert would like to make group header hide and dsplay. if noRows=0 (suppress).
@Disp
--------------------
WhilePrintingRecords;
global numbervar noRows;
noRows
Group2 Footer: & in Group1 Header: (Initializing)
@Init
----------------------------------------------------
WhilePrintingRecords;
global numbervar noRows;
noRows := 0;
thanks
Saj