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

Change color of the input control text


kavita.negi

Recommended Posts

I have a parameter type java.lang.string  . I have used  this parameter to show some static text as note.

It works fine.

But now I want to change the color of that static text to highlight that .

But there is not such property for a parameter  to apply style .

Will any one specify me how to apply style to a input parameter .

Kind regards,

Kavita

 

 

 

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hello,

You will want to use Sytles, this is locatd in the "Report Inspector"

Then you will se a "Style Properties" window here is where you can specify a font color. You will then want to attach it to your paramater.

Click Add, then you will right click on the new style and choose "Add Conditional Style" this will open up a "Condition Properties window" where you will want to set the "Condition Expression" use the little box to open up the expression wizzard and choose your paramater and a condition to trigger on.

The final result should look something like this in the XML.

<style name="style_yourStyle">
        <conditionalStyle>
            <conditionExpression><![CDATA[$P{YOUR_PRAM}.equals(YOUR_CONDITION)]></conditionExpression>
            <style mode="SOME STYLE" textcolor="#FFFF00"/>
        </conditionalStyle>
</style>

Hope this helps Enjoy!

Link to comment
Share on other sites

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