Jump to content

Variable in Group Header - iReport 3.7.6


ewatts

Recommended Posts

I am creating a report using iReport version 3.7.6 and having an issue with the value a variable is returning in a Group Header. 

I have 4 groups set up in the report - 

  1. Company
  2. Level
  3. State
  4. Code

The variable is for the LEVEL group.  The group LEVEL, is a field that is a single code of one letter.  In the variable I created (named Level_Word), I am translating that single letter into the word it represents - 

$F{LEVEL} == "A" ? "Senior" :

($F{LEVEL} == "B" ? "Middle" :

($F{LEVEL} == "Z" ? "Daily" : "xx" ))

 

I added the variable into the group header and group footer for level to see if I was getting the correct results.  In the Group Footer the results are accurate -- but in the Group Header the results just show as Null. 

Any ideas why the results are different and how I can correct this?  I need to use the group header to display information and truly divide the results of the report up into 3 separate areas. 

 

Any help is appreciated!

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...