Jump to content

Print When expression doesnt work


Congor

Recommended Posts

Hi,

 

ive got a subreport which has a repeating detail band

for table data. Ive put a print when expression

to that detail band that says

 

Code:
(($F{Remark} != null && ${Remark} != ""«») ?
Boolean.TRUE : Boolean.FALSE

 

If there is no remark and it is not an

empty string print this row of the table, right?

 

But this doesnt work, the empty row got always printed.

 

Does anybody know whats wrong? Or how to say:

Dont print a table row if it is empty!

 

 

Thank in advance

 

Yves

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

First, there is an error in that code, you write ${Remark}, but it has to be a field or variable or parameter like the first one $F{Remark}.

 

there exists another property, removeLineWhenBlank. If you use IReport, you can check that property.

i didn't use subreports so far, so i don't know, if that works in that combination.

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