Skip to main content



      Home
Home » Archived » BIRT » scripted data source and column types - weirdness
scripted data source and column types - weirdness [message #134483] Wed, 22 February 2006 12:16 Go to next message
Eclipse UserFriend
Originally posted by: cknight.mail.arc.nasa.gov

Using BIRT 2.0 and Eclipse 3.1.2...

Ok, so I have a test class that returns a Float object from a function
(the function adds .1 to a local variable at each call and returns the
value of that variable for each iteration). If I define the column type
to also be Float, I get no data. If I define it as a String and I see
the data. And, JavaScript being loosely-typed, allows me to do
arithmetic on the Float in my script.

I would be happy to send source for those interested. I just hope this
saves someone else the 2+ hours it took me to trace down why I wasn't
seeing the values I was expecting in BIRT. I also assume that this is a bug?
Re: scripted data source and column types - weirdness [message #134547 is a reply to message #134483] Wed, 22 February 2006 12:57 Go to previous message
Eclipse UserFriend
You can leave it as Float, but as part of your loading of the field in the
row, you need to append an empty String to end up w/a String:

row["aField"] = aFloat + "";

This type of scripting would for your data set's "fetch" event.

HTH, Mark
Previous Topic:Parameters for an "in" statement
Next Topic:result numerotation
Goto Forum:
  


Current Time: Wed Jul 23 19:37:27 EDT 2025

Powered by FUDForum. Page generated in 0.36667 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top