andrey87 Posted April 27, 2022 Share Posted April 27, 2022 Is it possible to assign a parameter value or a field value to the "backcolor" tag?I don't want to set a static color to my conditional style, but I receive the color from Java/database (I can pass it to the report as parameter or as field).Like this (see backcolor tag): <conditionalStyle> <conditionExpression><![CDATA[$P{valutazioneLibretto}.equals("CRITICA")]]></conditionExpression> <style mode="Opaque" backcolor=$F{myDTO}.getColor1()/> </conditionalStyle> Instead of: <style mode="Opaque" backcolor="FF00FF"/> 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