Jump to content

g.dagostino

Members
  • Posts

    4
  • Joined

  • Last visited

 Content Type 

Forum

Downloads

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Events

Profiles

Posts posted by g.dagostino

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

    1. both fileds are empty
    2. first field (riepilogo_totaleDichiarazioni) is set and the second (riepilogo_totaleDistinte) is empty

    but 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?

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