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

vftake5

Members
  • Posts

    2
  • 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 vftake5

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