Problem with LookAhead Variable in GroupHeader
Hello,
I use RB10.03 with D2006.
I have defined in GroupHeader a Variable with LookAhead property (in my test
VStat11). The computation of the value is OK. I want use the value of the
variable in GroupHeaderBandBeforePrint event, but I get always 0 as the
value. Is it possible to get right value of the variable?
Regards
Marek
I use RB10.03 with D2006.
I have defined in GroupHeader a Variable with LookAhead property (in my test
VStat11). The computation of the value is OK. I want use the value of the
variable in GroupHeaderBandBeforePrint event, but I get always 0 as the
value. Is it possible to get right value of the variable?
Regards
Marek
This discussion has been closed.
Comments
For future reference, please send all attachments to
support@digital-metaphors.com.
A lookahead variable calculates during the first pass of the report then
retrieves this value and displays it if necessary during the second pass,.
The first pass is also when all report pagination is calculated. This means
that there is no way to change the visibility of a band based on a lookahead
variable's value because the value has not been calculated yet.
If you would like to conditionally hide a band based on a total (sum) value,
you will need to find a way to calculate this value before the report is
generated.
One option would be to create a summary query that calculates the sums of
each group before the report is generated. Then, using this information,
toggle the visibility of the GroupHeaderBand.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com