ian.waterman Posted August 15, 2018 Share Posted August 15, 2018 Working only with the Studio I have added a Style using instructions I found on a previous post1) Right click on styles >> Add >> Style2) give it a forecolor3) right click on style >> Add Conditional Style >> give a condition like below; $P{GroupField}="text"For the field you want to apply the style, click on the field and in the property select the style.In my case Colour is Red, existing field colour is black. Condtion = $F{CRDR}.equals("Credit")Condition works as I am using it in another expression to change Text shownWhen I look in Source it has created style which I assume is OK</style> <style name="Style1" forecolor="#FC052A" markup="none" fontName="DejaVu Sans" fontSize="11"> <conditionalStyle> <conditionExpression><![CDATA[$F{CRDR}.equals("Credit")]]></conditionExpression> <style/> </conditionalStyle> </style>When I apply the Style to my text field it appears to disappear from the Designer screen, and when I run report it is blank. If I remove style from text field text returns and when report runs the correct Black text is there.Any suggestions as to what I am doing wrong or is there a step I have missedThank youIan Link to comment Share on other sites More sharing options...
riodavid Posted August 16, 2018 Share Posted August 16, 2018 Don't know why. Can you give it a back color as well and see what happens? 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