BIRT Exchange Forum: Problems working with Timestamps in custom Data Source - BIRT Exchange Forum

Jump to content


 

No Latest Open Poll.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Problems working with Timestamps in custom Data Source Rate Topic: -----

#1 User is offline   chrisdutz Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 14
  • Joined: 08-November 11


Posted 01 May 2012 - 11:17 PM

Hi,

I am having a strange problem here. When using a custom Data Source and Data Set and using fields of type java.sql.Timestamp, my driver returns the correct value, unfortunately the reports show all timestamps with correct date, but the time is allways set to "0:00 AM"/"00:00". The values returned by my ResultSet contain the correct values ... am I doing something wrong?

Chris
Experience is what you get when you don't get what you want
0

#2 User is offline   chrisdutz Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 14
  • Joined: 08-November 11


Posted 02 May 2012 - 12:25 AM

As another Google session did not help, I started following my Timestamp objects back into the Birt code and found something interesting.

In the class OdiAdapter I can see that my timestamp field is listed in the "columnIndexListForTypeConvert" property. This causes Birt to convert my Timestamp into a Date which stripps of the time-information.
(OdiAdapter lines 180-192)

How can I prevent Birt from doing this?

Chris
Experience is what you get when you don't get what you want
0

#3 User is offline   cbrell Icon

  • Member
  • Group: Members
  • Posts: 523
  • Joined: 17-March 09


Posted 02 May 2012 - 12:29 AM

hi Chris,

what's your BIRT version? Can you try to disable Data Set Caching for this data set? (i think it only works in 3.7.2).
You can deactivate data set caching by clicking the data set in the designer, going to property editor advanced and set needs data set cache property to false.
Just give it a try to see if that class causes the issue.
(is your code available somewhere?)

Christian
Interested to join BIRT User Group Mannheim (Germany)?
Have a look at: http://www.xing.com/...-group-mannheim or write me an email
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users