Jump to content

generic styles (a question for Giulio...)


slow

Recommended Posts

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 like
new 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 create
many 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

  • 1 month later...
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

  • 4 weeks later...

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

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