mangsule15 Posted June 11, 2021 Share Posted June 11, 2021 Hi,I have fceing issue in table element for applying styling for perticular data inside the field!!!!i want to add styling for perticulat data like BOLD so here i am using Conditional style but it was not affecting on preview please see below code which i am writting inside my jrxml source<style name="Style1" markup="styled"> <conditionalStyle> <conditionExpression><![CDATA[$F{seqno2}==999 && $F{Description}!==null ]]></conditionExpression> <style isBold="true"/> </conditionalStyle> </style>in abvoe code i want apply style for perticular data and i am writing a condition for that if $F{seqno2}==999 && $F{Description}!==null then it will show ing as a bold but it will not work please provide any other solution for this issue !!!! Link to comment Share on other sites More sharing options...
yama818 Posted June 12, 2021 Share Posted June 12, 2021 It may work if you rewrite the condition as followsconditionExpression><![CDATA[($F{seqno2}.equals( "999") ) && ($F{Description} != null)]]></conditionExpression>[/code] Link to comment Share on other sites More sharing options...
mangsule15 Posted June 14, 2021 Author Share Posted June 14, 2021 Thanks For Reply! i have used above solution but it will not worked in my case In my case I have field in table element in that one of the field having multiple record i want show perticulat record in that field as BOLD so which conditional style i have to set or is there any other solution ? please provide any other solution !!!!!!!! Link to comment Share on other sites More sharing options...
yama818 Posted June 14, 2021 Share Posted June 14, 2021 It seems I did not understand your requirements.Here is what I tried for your reference.- Preview Image- style design- table degign* Changed seqno2 to Integer type, so some of the expressions have been changed.* I have added a modifier in red to make the style change easier to understand.I hope this is helpful. Link to comment Share on other sites More sharing options...
mangsule15 Posted June 15, 2021 Author Share Posted June 15, 2021 Thanks For Reply !!!! I am explain in detail with my case and attachment as following :-Table Design:*in above image description field contains multiple data or record in that data I want to make perticular data as a BOLDPreview Image:*In above image i want to make perticular data as a Bold for TOTAL EQUITIES and i dont want to make all data as a boldSo ,for this issue i am doing as you mention in your reply but it's not working please provide any other solution !!! Link to comment Share on other sites More sharing options...
yama818 Posted June 15, 2021 Share Posted June 15, 2021 This is just a guess.The three numeric items that exist in the table item, in your screenshot it looks like they are set to Bold.If you set them here, they would take precedence over Style, so I guess all the rows are set to Bold.If your guess is correct, then remove the setting from the 'Inheritance' tab.Hover your mouse over the item and click on the red mark. ↓ Link to comment Share on other sites More sharing options...
mangsule15 Posted June 16, 2021 Author Share Posted June 16, 2021 Thanks For Reply!!!! This solution i am trying before this but it wont be worked i am sharing images with you what i want to exactly...Table preview: *Inside $F{Desription} field i have multiple data and i want to make bold perticular data,below is image of my current report previewTable Preview:*In above image which i am highlighted data that row i want to make BoldAnd i am tryied as you can mention in your reply please provide any other solution !!! Link to comment Share on other sites More sharing options...
yama818 Posted June 16, 2021 Share Posted June 16, 2021 If you can, can you attach the jrxml file?I might notice something else in it. 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