jjg1576
asked on
Jasper Ireport version 5.1, resetting a sum or count based on a record (result)
Hi,
I'm trying to figure out a problem I'm having in a Jasper Ireport and can't seem to get it. I have an integer variable that I want to increment by 1 if a certain condition is met. The condition is:
$V{Current Result} > $V{Last Result} ? 1
and if the condition isn't met, I want it to reset to zero.
I realize that there is a sum function that you can set that resets on a group change, but I don't want it to reset on the group, only if the above condition isn't met- hope this makes sense. Thanks in advance.
I'm trying to figure out a problem I'm having in a Jasper Ireport and can't seem to get it. I have an integer variable that I want to increment by 1 if a certain condition is met. The condition is:
$V{Current Result} > $V{Last Result} ? 1
and if the condition isn't met, I want it to reset to zero.
I realize that there is a sum function that you can set that resets on a group change, but I don't want it to reset on the group, only if the above condition isn't met- hope this makes sense. Thanks in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER