jaapandre Posted September 4, 2012 Share Posted September 4, 2012 I have a subreport with a crosstab. Each row shows the average on a topic. I want to color the background of the cells based on the average of al scores (low average: red, high average: green, in between: yellow) The range of the scores can vary (so on one topic 3 is good, on another it is bad)At this moment I have a subreport parameter containing a json string to determin the range of the score per topic (eg: (topic1:scale5, topic2: scale6, topic3: scale3))I have another subreport parameter which contains a hashmap with per range of the scores (eg scale5) the bottom-value, the top-value and each colorHow can I get the range of a specific topic?I tried a scriplet, but they don't work in a crosstabI tried to use: org.json.simple.JSONValue.parse($P{SCALE_QUESTION_INFO}").get($F{topic}), but that gives a error the method get{String) is undefined for the type ObjectAny help would be appreciated. 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