ewatts Posted November 8, 2011 Share Posted November 8, 2011 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 - Company Level State CodeThe 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 More sharing options...
lknueve Posted November 10, 2011 Share Posted November 10, 2011 check what you have the field's "Evaluation Time" property set to - should be "Group" and "Evalutation Group" should be "Level" Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now