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

I want to add Conditional Styling in the Table Element


mangsule15

Recommended Posts

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

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

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

It seems I did not understand your requirements.
Here is what I tried for your reference.

- Preview Image

sample_table_preview.png.d228368d7faddb86c355ab5e001e5b36.png
- style design
sample_style.png.76895b71f3beb6074987d68047b1a6c2.png
sample_conditional_style1.png.3f7e8aba0435189c0cd0de5b79761c9e.png
sample_conditional_style2.png.149218ae8571fa9d1f16aec3b7f1a1dc.png

- table degign

sample_table_design.png.a9da6efed308c1a178f4f98088b0519e.png
sample_table_value_design.png.ff9054aaa6fbaff4496ae8a8a0d666f5.png


* 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

Thanks For Reply !!!!

 

I am  explain in detail  with my case and attachment as following  :-

Table Design:

table_design.png.102ee42ff2d822e954262e8d16490e8c.png

*in above image description field contains multiple data or record in that data I want  to make perticular data as a BOLD

Preview Image:

inkedpreview_li.jpg.bcf8dcbbb16b7f82c4d750b867ec94ae.jpg

*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 bold

So ,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

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.


value1.png.2d1fc8e9b4861e485d98a41b59290184.png

 ↓

value2.png.0524b3cec90813693c721f6db0b8f300.png

 

Link to comment
Share on other sites

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:

table_element.png.a5a93ced78cd7382c9f5e1cbc657b150.png 

*Inside $F{Desription} field i have multiple data and i want to make bold perticular data,below is image of my current report preview

Table Preview:

balance_sheet1_1png_0.png.520eed24b502b13be9a5a938c4b42153.png

*In above image which i am highlighted data  that row i want to make Bold

And i am tryied as you can mention in your reply 

please provide any other solution !!! 

 

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