danielsb2 Posted June 4, 2010 Share Posted June 4, 2010 I have a table in my report and i need to change de color of a row depending of a field of the subdataset.I created a style, but the screen of expression of conditional style does not allow me to create an expression using a field of my subdataset.Is not possible to create a conditional style using my subdataset fields as expression?If not, how can I do to change the color of entire row of the table without having to put the same expression in every cell line and create another field with the background of another color?=========================================Site: http://www.danielsousa.com.brTwitter: @danielsbarros Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted June 4, 2010 Share Posted June 4, 2010 You can use fields from your subdataset. This can be lead to a problem only if you use this style with some elements filled with a different subdataset (i.e. a textfield out of your table).If iReport does not suggest fields for your dataset, this can be a bug, so you may log it on the bug tracker.Giulio Link to comment Share on other sites More sharing options...
danielsb2 Posted June 4, 2010 Author Share Posted June 4, 2010 Thanks for reply giulio. IReport suggests only fields from the main query. It does not suggest the fields of others subdatasets I created. This is a problem because you can not use a style conditional on the Table / List Component when it uses a subdataset different of principal query. I need to change the background color of the style "table_TD" based on a field of subdataset. I reported it as a bug in the bug tracker: http://jasperforge.org/projects/jasperreports/tracker/view.php?id=4736 I suggest that on the screen of expression of Conditional Style, you may choose one of subdataset made in the report, then the screen displays the fields, variables and parameters of it. What do you think? =========================================Site: http://www.danielsousa.com.brTwitter: @danielsbarrosPost Edited by danielsb2 at 04/06/2010 09:54 Link to comment Share on other sites More sharing options...
supriyadey77 Posted December 3, 2012 Share Posted December 3, 2012 Hie i think u can apply a style in a particular row of the table by editing the exsisting xml of the report that is by default generated by the ireport u can use a condtition style attribute under the style attribute of the particular component and modify the xm l 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