ireport - Error using Print When Expression

Asked

Viewed 137 times

0

I have a problem generating the report, the function does not work print when expression, always the report shows that line with the value null

I’m doing so in line

<printWhenExpression><![CDATA[new Boolean($F{codProduto} != null)]]></printWhenExpression>

but always the report appears this line in cinza written null: inserir a descrição da imagem aqui

How can I resolve this situation?

1 answer

0

Try writing the expression like this:

<printWhenExpression><![CDATA[$F{codProduto} != null]]></printWhenExpression>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.