Skip to main content



      Home
Home » Archived » BIRT » birt with pojo
birt with pojo [message #61784] Mon, 25 July 2005 22:08 Go to next message
Eclipse UserFriend
Hi,

I've been trying to get a start on using POJO with BIRT and have been
unsuccessful!

It's printing "org.mozilla.javascript.NativeJavaObject@154f4c7" instead of
"Hello World!"


This is the script I have on dataset.
on open:
s = Packages.HelloWorld.hello();
count = 1;

on fetch:
if (count > 0) {
row["columnString"] = s;
count--;
return true;
}
return false;

hello() method returns a String.

Any help would be appreciated. Any pointer to tutorial on POJO would also
be great. :)

Thanks,
-lt.
Re: birt with pojo [message #62023 is a reply to message #61784] Wed, 27 July 2005 04:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: onefolder.sjtu.edu.cn

Hi,

This is a bug and will be solved. Here I give you a work around way to it,
that you change
row["columnString"] = s;
to row["columnString"] = "" + s;

If you still have problem, please let me know.

Thanks,
Jianqiang

"lillian" <lillian.tan@gmail.com> wrote in message
news:a898c7e62fe576246d25d8f72307307e$1@www.eclipse.org...
> Hi,
>
> I've been trying to get a start on using POJO with BIRT and have been
> unsuccessful!
>
> It's printing "org.mozilla.javascript.NativeJavaObject@154f4c7" instead of
> "Hello World!"
>
>
> This is the script I have on dataset.
> on open:
> s = Packages.HelloWorld.hello();
> count = 1;
>
> on fetch:
> if (count > 0) {
> row["columnString"] = s;
> count--;
> return true;
> }
> return false;
>
> hello() method returns a String.
>
> Any help would be appreciated. Any pointer to tutorial on POJO would also
> be great. :)
>
> Thanks,
> -lt.
>
Re: birt with pojo [message #62113 is a reply to message #62023] Wed, 27 July 2005 12:28 Go to previous message
Eclipse UserFriend
Thanks for the workaround, Jianqiang. It does print a String now.

Thanks,
-lillian
Previous Topic:selecting a break dynamically
Next Topic:What version should i start with, 1.0 or 1.0.1?
Goto Forum:
  


Current Time: Thu Jul 17 01:51:38 EDT 2025

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

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

Back to the top