Jump to content
We've recently updated our Privacy Statement, available here ×

Assign a variable value to the backcolor tag


andrey87

Recommended Posts

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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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...