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

navi79

Members
  • Posts

    1
  • Joined

  • Last visited

navi79's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

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