Jump to content
Changes to the Jaspersoft community edition download ×

URGENT dynamique display of textelement


Recommended Posts

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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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