Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Setting the Viewer classpath for JDBC Drivers(Setting the Viewer classpath for JDBC Drivers)
Setting the Viewer classpath for JDBC Drivers [message #527306] Wed, 14 April 2010 18:26 Go to next message
al kamarauskas is currently offline al kamarauskasFriend
Messages: 14
Registered: July 2009
Junior Member
Is there a way to configure the Viewer to specify a JDBC driver location so the drivers can reside in a location other than the "drivers" directory of the JDBC plugin? We have it working with the BIRT API by setting the OdaJDBCDriverClassPath, but can't get it to work for the Viewer.

Thanks.
Re: Setting the Viewer classpath for JDBC Drivers [message #527325 is a reply to message #527306] Wed, 14 April 2010 20:15 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

You could use something like:
http://wiki.eclipse.org/Adding_an_Object_to_the_Application_ Context_for_the_Viewer_%28BIRT%29
or in the beforeOpen of the dataset script in the report get and set
appcontext variables like
reportContext.getAppContext().put("var","val");

Jason

al kamarauskas wrote:
> Is there a way to configure the Viewer to specify a JDBC driver location
> so the drivers can reside in a location other than the "drivers"
> directory of the JDBC plugin? We have it working with the BIRT API by
> setting the OdaJDBCDriverClassPath, but can't get it to work for the
> Viewer.
>
> Thanks.
Re: Setting the Viewer classpath for JDBC Drivers [message #529941 is a reply to message #527325] Tue, 27 April 2010 18:51 Go to previous message
al kamarauskas is currently offline al kamarauskasFriend
Messages: 14
Registered: July 2009
Junior Member
Hi Jason,

Inserting the reportContext.getAppContext statement got it working.

Thanks for your help.
Previous Topic:How make multiple selection in parameter
Next Topic:Error bar charts.
Goto Forum:
  


Current Time: Fri Apr 19 06:59:15 GMT 2024

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

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

Back to the top