Jaspersoft Community 'Read-Only' as of July 8, 2022
Transition to New TIBCO Community Just Weeks Away
You can still search, review wiki content, and review discussions in read-only mode. Please email community@tibco.com with questions or issues requiring TIBCO review or response.
I'm assuming there is a quick fix for this one, and that I'm just looking at it the wrong way. I've created a bulb widget, which I'd like to have different shades based upon the value of data returned from my data source. I'm setup a color range, and assigned an integer value of 1 and say 99999 (Using variables I created) for the min and max value expression. However, upon execution of the report, I'll see the value printed below where the bulb should be, but their is no bulb. If I remove the color range, the bulb prints, but with a default gray color.
Did I miss something obvious here?
1 Answer:
<fw:colorRange color="#00CC00"> <fw:minValueExpression><![CDATA[-99999]]></fw:minValueExpression> <fw:maxValueExpression><![CDATA[1]]></fw:maxValueExpression> <fw:labelExpression><![CDATA[$F{DAYS_LATE}.toString()]]></fw:labelExpression> </fw:colorRange>
Per my comment above, the above code, directly entering the integer values in the source, versus the design, is working for my implementation.
For those that may run into a similar issue, I found the solution to be as simple as editing the JRXML manually, and place teh integer values desired directly, versus using the designer. The following settings worked for me: