2002 JI Open Discussion Posted August 19, 2006 Share Posted August 19, 2006 By: brigand silvere - brsilve URGENT dynamique display of textelement 2003-11-04 07:26 Hello, I'm working in an industrial projet in which we will, perhaps, use Jasper Report. To be sure that the client accept Jasper Report as the solution for his project, we need to build quickly a prototype. In this way, I need to display a textElement in fonction of the value of a Field. For example, if $F{land} = "France" then display a text element with two price (Euro and Franc) else display only one price Thanks for your answer By: Fred Welland - fwelland RE: URGENT dynamique display of textelement 2003-11-04 08:48 how about something like this: <textFieldExpression class="java.lang.String"> ( $F{country}.equals("FRANCE") ) ? "put a french string expression here" : " put non-french string expression here" </textFieldExpression> As you can see this is only a if/else construct. And for each expression in the conditional operator (?:) you may put a string cat expression or whatever as long as it 'equals' a String. 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