• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
finally figured out Joda localdate in JasperReports
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

finally figured out Joda localdate in JasperReports


  • Subject: finally figured out Joda localdate in JasperReports
  • From: Theodore Petrosky <email@hidden>
  • Date: Thu, 16 May 2013 07:06:20 -0700 (PDT)

Finally,
my solution:
materialsClose is a date in my Postgresql backend. it is modeled to a jodaLocalDate.

My problem was passing it to iReport as a Field ($F{materialClose}) and apply a formatter.

solution.

materialsClose property/Field Class is set to java.lang.String

then in the textField Property => Text Field Expression:

new org.joda.time.LocalDate($F{materialsClose}).toDate()

the add a Pattern for the formatter.

seems simple now!!!

Ted
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Validation and d2wcontext?
  • Next by Date: Re: Validation and d2wcontext?
  • Previous by thread: Re: Validation and d2wcontext?
  • Next by thread: Help with Configuring WebObjects to connect to WebLogic Server DataSource
  • Index(es):
    • Date
    • Thread