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

vftake5

Members
  • Posts

    2
  • Joined

  • Last visited

vftake5'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. Hi, I have to use specific date formatting in my report. No problem, created a new variable, what contains a SimpleadteFormatter, and the format comes from resource file. At firs time I did it the on subriport and it works correctly. Ok, I did same variable in my main report and it gives back 'null' as result. The definition: <variable name="sdf" class="java.text.SimpleDateFormat"> <variableExpression><![CDATA[new SimpleDateFormat($R{date.format})]]></variableExpression> </variable>[/code]And the usage: <textFieldExpression><![CDATA[$V{sdf}.format($P{actDate})]]></textFieldExpression>[/code]After it I changed the definition, and I wrote direcly the format string. Then it was working correctly. Then I took the value of affected resource into a textfield, and I saw the value is correct. And then I have no idea. It looks like, the variable evaluation hapens earlier as the resource fill. Do you have any idea, how can solve this problem? Thank you! Feri
×
×
  • Create New...