I have a variable (Global by default) in my subreport which basically increments based on a condition:
numberVar connectionsCtr:= 0;
if {HISTORY.TYPE} = some value
connectionsCtr := connectionsCtr + 1
else
connectionsCtr
The problem is that the variable only goes to 1 and doesn't really count the true occurances of the condition. If I change the scpe to Shared, the variable works perfectly...but I don't know of a way to reset it upon group change.
In theory, I could use a Running Total Field, but I don't know how to filter using my condition, and also how to use that field value in a normal variable (RT fields don't show up as selectable choices in the formula builder).
Thanks
numberVar connectionsCtr:= 0;
if {HISTORY.TYPE} = some value
connectionsCtr := connectionsCtr + 1
else
connectionsCtr
The problem is that the variable only goes to 1 and doesn't really count the true occurances of the condition. If I change the scpe to Shared, the variable works perfectly...but I don't know of a way to reset it upon group change.
In theory, I could use a Running Total Field, but I don't know how to filter using my condition, and also how to use that field value in a normal variable (RT fields don't show up as selectable choices in the formula builder).
Thanks