Skip to main content



      Home
Home » Archived » BIRT » Scripted Data Sources
Scripted Data Sources [message #70528] Wed, 31 August 2005 18:05 Go to next message
Eclipse UserFriend
Originally posted by: sai.yelamanchili.gmail.com

Hi, I'm relatively new to BIRT. I'm trying to work with scripted data
sources. I need this to create reports using some existing java objects.
Does someone have any working example that shows working with Scripted
data source involving above scenario.
Help really appreciated.
Thanks
Sai
Re: Scripted Data Sources [message #70548 is a reply to message #70528] Wed, 31 August 2005 19:04 Go to previous messageGo to next message
Eclipse UserFriend
Hi Sai! Have a look at this page, it might be of some help:
http://tools.osmosis.gr/blog/archives/2005/06/birt_and_objec t.html

/Petter

"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
news:df59il$cte$1@news.eclipse.org...
> Hi, I'm relatively new to BIRT. I'm trying to work with scripted data
> sources. I need this to create reports using some existing java objects.
> Does someone have any working example that shows working with Scripted
> data source involving above scenario.
> Help really appreciated.
> Thanks
> Sai
Thanks! [message #70566 is a reply to message #70548] Wed, 31 August 2005 19:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sai.yelamanchili.gmail.com

Hi Petter!
Thanks much. Looks like it might solve my problem.
Sai
Re: Scripted Data Sources [message #70586 is a reply to message #70548] Wed, 31 August 2005 19:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sai.yelamanchili.gmail.com

Hi Petter!

I get this error when I try to run the exact code. Could You please help
me.
Error is :

Error0 : data.engine.JSScriptInvalid(1 time)detail: Invalid Javascript
expression. Source: DataSet:Scripted Data Set.open, line: 0,
Expression:function_prefix_1125517139598();function
function_prefix_1125517139598(){count = 0;cf = new
Packages.com.rpc.core.accounting.model.ContactListFactory(); c =
cf.createContactList();}Script engine error: TypeError: [JavaPackage
com.rpc.core.accounting.model.ContactListFactory] is not a function.
(DataSet:Scripted Data Set.open#1)

Thanks in advance for everything.
Sai
Re: Scripted Data Sources [message #70605 is a reply to message #70586] Wed, 31 August 2005 19:31 Go to previous messageGo to next message
Eclipse UserFriend
I haven't actually tried this myself, I just knew the article existed. I'm
afraid I don't think I can debug the problem any better than you can
yourself, I am also pretty new to BIRT.
/Petter

"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
news:df5e0u$hk0$1@news.eclipse.org...
> Hi Petter!
>
> I get this error when I try to run the exact code. Could You please help
> me.
> Error is :
>
> Error0 : data.engine.JSScriptInvalid(1 time)detail: Invalid Javascript
> expression. Source: DataSet:Scripted Data Set.open, line: 0,
> Expression:function_prefix_1125517139598();function
> function_prefix_1125517139598(){count = 0;cf = new
> Packages.com.rpc.core.accounting.model.ContactListFactory(); c =
> cf.createContactList();}Script engine error: TypeError: [JavaPackage
> com.rpc.core.accounting.model.ContactListFactory] is not a function.
> (DataSet:Scripted Data Set.open#1)
>
> Thanks in advance for everything.
> Sai
No pb. Thanks! [message #70621 is a reply to message #70605] Wed, 31 August 2005 19:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sai.yelamanchili.gmail.com

Hi Petter!
No pb. Thanks.
Sai
Re: No pb. Thanks! [message #70685 is a reply to message #70621] Thu, 01 September 2005 09:30 Go to previous message
Eclipse UserFriend
Sai

Do you have your jar files under the viewer in WEB-INF/lib? The error you
are getting is typically a classpath error.

Jason Weathersby
BIRT PMC

"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
news:df5eul$ihn$1@news.eclipse.org...
> Hi Petter!
> No pb. Thanks.
> Sai
Previous Topic:test
Next Topic:Add body as string into script file
Goto Forum:
  


Current Time: Fri May 09 18:36:45 EDT 2025

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

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

Back to the top