Skip to main content



      Home
Home » Archived » BIRT » Scripted DataSource & Unique ID
Scripted DataSource & Unique ID [message #202705] Thu, 23 November 2006 05:42 Go to next message
Eclipse UserFriend
I am creating a report using a scripted datasource. The datasource talks
directly to a JAVA object which is working fine, I am able to pass
parameters into the JAVA object but I cannont find anything available to
me in the scripting which provides a unique id for the report.

Is it possible to get the reports configuration filename or something
similar in the scripting framework?
Re: Scripted DataSource & Unique ID [message #202715 is a reply to message #202705] Thu, 23 November 2006 05:55 Go to previous messageGo to next message
Eclipse UserFriend
I have found a way of getting hold of the report config's id, i thought i
would post in case anyone else is interested.

reportId = report.getDesign().getDisplayNameKey();

cheers,

Rob.
Re: Scripted DataSource & Unique ID [message #202739 is a reply to message #202715] Thu, 23 November 2006 08:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: first.last.remainSPAM.nl

In article <b52dcec84fd0a88e91f28b3c84bde19f$1@www.eclipse.org>,
Rob.hingston@andrew.com says...
> I have found a way of getting hold of the report config's id, i thought i
> would post in case anyone else is interested.
>
> reportId = report.getDesign().getDisplayNameKey();
>
> cheers,
>
> Rob.
>
>
Hello Rob,

How did you solve the classpath issue for calling a POJO from report
scripting. Did you store all of your classes in web-inf?

Thanks,

Wim Jongman
Re: Scripted DataSource & Unique ID [message #202753 is a reply to message #202739] Thu, 23 November 2006 09:46 Go to previous message
Eclipse UserFriend
I have created the POJO in a package called com.ui.reports and added this
to a jar file,

i use the following in the script to access the POJO

/** Get an instance of the class */
sourceClass = new Packages.com.ui.reports.MyPOJO();

In an eclipse deployment i place the jar file in the following directory
%eclipse_home%\plugins\org.eclipse.birt.report.viewer_2.0.1\ birt\WEB-INF\lib

In my Tomcat deployed deployment i place it in the following directory

%tomcat_home%\webapps\"mywebapp"\WEB-INF\lib

home this helps.
Previous Topic:color in pie chart
Next Topic:Is there a calendar picker for a date report parameter?
Goto Forum:
  


Current Time: Sat May 03 13:25:28 EDT 2025

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

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

Back to the top