slow Posted February 17, 2010 Share Posted February 17, 2010 is there a way to make generic styles?currently one style, when you define a rule, can be applied to a single field with the respective state.if applied to another field, this field would inherit the rule of the defined style.normally the rule is defined using values derived from datasource,is there a way to capture the contents of the field itself in the definition?something likenew Boolean (FIELD_VALUE.equals ( "something"))where FIELD_VALUE would be something like the operator "this" in Java referred to the textfield it is applied to.In this way the style will become generic and is applicable to all fields of a report, with no need to createmany rules on a styles, one for each field that must apply to.thanks in advance(slow)Post Edited by slow at 05/12/2010 09:43 Link to comment Share on other sites More sharing options...
slow Posted April 14, 2010 Author Share Posted April 14, 2010 up... Link to comment Share on other sites More sharing options...
slow Posted May 12, 2010 Author Share Posted May 12, 2010 up Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted May 12, 2010 Share Posted May 12, 2010 In the JasperReports roadmap we have the idea to create parametrized styles.So you can set what you call FIELD_VALUE as a parameter for the condition.This would simplify conditions like: show in RED negative numbers...There is not yet a date for this feature, but I consider it really important.Giulio Link to comment Share on other sites More sharing options...
slow Posted May 12, 2010 Author Share Posted May 12, 2010 "...but I consider it really important."yes... It's REALLY important. :)thanks ( o grazie). slow. 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