Jump to content
Changes to the Jaspersoft community edition download ×

difference between "expressions"


mhbashar1

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Hi --

 

<textFieldExpression> contains the data that you actually what to print for your text field. This is usually a field from your query result, or perhaps a calculation based on a field. Example: <textFieldExpression><![CDATA[$F{first_name}]]></textFieldExpression>

 

printWhenExpression is very useful in controlling whether a text field should be printed or not, depended upon some condition. For example, maybe you don't want to print any first names that start with 'x':

 

<reportElement x= .....>

<printWhenExpression><![CDATA[!($F{first_name}.startsWith("x"))]]></printWhenExpression>

</reportElement>

 

Betty

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