Jump to content
We've recently updated our Privacy Statement, available here ×

alfie1109

Members
  • Posts

    18
  • Joined

  • Last visited

Community Answers

  1. alfie1109's post in Variable returns null/blank at first row in report was marked as the answer   
    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!!!!!
     
  2. alfie1109's post in How to call an attribute from XML file and use it in Condition Expression was marked as the answer   
    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]
×
×
  • Create New...