Jump to content

printWhenExpression / "no data found" me


jbeausse

Recommended Posts

Hi all,

My objective is very simple : display a "no data found" message in a report when no data is available.

I use velocity to generate JRXML dynamically, and this message might be used in different contexts (subreports, etc.).

The solution I found :

 

Code:


Imagine that this detail is displayed in a subreport, and that I don't have enough space to display the first element (end of a page).

My problem is that even if I use the "Report" evaluationTime in my textField, it seems that the printWhenExpression is evaluated *at the end of each column*, so if there is not enough space to display an element, the message is displayed (see attachment).

PS : I'd prefer not to use a summary section/fake group since it complicates my work a lot !

Thn'x

Julien

JR version : 1.2.8
Post edited by: jbeausse, at: 2007/01/03 13:08

Link to comment
Share on other sites

  • Replies 1
  • 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...