I set the following variables in order and set each variable (see below) Name = Discounts_Total Variable Class = java.lang.float Calculation = Sum Reset Type = Group Reset Group = Group ID Increment Type = None Increment Group = Variable Expression = Float.parseFloat($F{Discounts})
Name = Dsct_TotalGrp Variable Class = java.lang.float Calculation = Highest Reset Type = Group Reset Group = Group ID Increment Type = Group Increment Group = Group ID Variable Expression = $V{Discounts_Total} On the text field properties:
Text Field Expression: $V{Dsct_TotalGrp}
Change Evaluation Time and Group
Evaluation Time = Group Evaluation Group = Group ID
After I made the following changes, report works!!!!!
Enter the following expression directly to the Text Field Expression (somehow using style doesn't work) $F{ot}.equals("1")?"<style forecolor='red'>"+$F{Shift}+"</style>":"<style forecolor='black'>"+$F{Shift}+"</style>"[/code]