Jump to content
We've recently updated our Privacy Statement, available here ×

g.dagostino

Members
  • Posts

    4
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by g.dagostino

  1. Thank you sanbez your solution works fine...I had to check also the null value! Thank you augarte for your time!
  2. The value of the second filed when it doesn't work is a numeric string (es 5). Both fields are string type. I attach the .jrxml file. The involved static text is the first "N°" in the right side of the report. Thank you for your help! Regards, Giuseppe
  3. First of all...thank you for your reply! I tried the second solution ($F{riepilogo_totaleDichiarazioni}.equals( "" ) && $F{riepilogo_totaleDistinte}.equals( "" ) ? Boolean.FALSE : Boolean.TRUE) and it works fine if both fileds are empty first field (riepilogo_totaleDichiarazioni) is set and the second (riepilogo_totaleDistinte) is emptybut doesn't work fine if the first field is empty and the secondo in set. It seems not evaluate the second condition after the && operator. Any suggestion?
  4. Good morning to all, I'm creating an IReport PDF template using the IReport designer version 3.5.0 I have to print a static text if at least one of two variables are not blank: so in the "Print when expression" field of my static text I wrote this condition new Boolean( !$F{riepilogo_totaleDichiarazioni}.equals( "" ) || !$F{riepilogo_totaleDistinte}.equals( "" ) ) It works only if the first operator is true, but if the first is false and the second is true the condition doesn't work. If Itry to reverse the two operators new Boolean( !$F{riepilogo_totaleDistinte}.equals( "" ) || !$F{riepilogo_totaleDichiarazioni}.equals( "" ) ) it works just if the variable "riepilogo_totaleDistinte is valued. So it seems that the expression evaluate only the first operator and ignores the second. Is there something wrong in my code? Thanks in advance for your replies, regards Giuseppe
×
×
  • Create New...