Jump to content

navi79

Members
  • Posts

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

Everything posted by navi79

  1. I have problems with the Conditional operator in iReports 3.7.2. The conditional operator was written as follows on a field to display in a report. ($F{EXTERNALCOMMENTS}.equals("*"))?$V{Vnumericres}+"*":$V{Vnumericres} where $V{Vnumericres} = ($F{NUMERICRESULT}.toString().length()==1)?"0"+$F{NUMERICRESULT}.toString():($F{NUMERICRESULT}.toString()) The Problem here is the validation has been written in loop and the results are displayed according to the number of records returned by the query. If I use the above conditional operator, only the first value is displaying where as rest of the rows are not displaying any values. If I remove the conditional operator and just write $V{Vnumericres} it is displaying as expected. Why If I use the conditional operator it is vanishing rest of the results? Thanks & Regards, Naveen Kumar G.
×
×
  • Create New...