Skip to main content



      Home
Home » Archived » BIRT » set Data Source from your java code
set Data Source from your java code [message #819262] Mon, 12 March 2012 13:38 Go to next message
Eclipse UserFriend
Hi,

I have rptdesign, and I generate report in different format through my java code.
I have set the dataSource while designing the report design, and java code just run's that design.
When I am testing same code with rptdesign on different LAN, it can not able to find dataSource which I set in design. To run this code I need to edit datasource for database. Which is very tedious for different LAN

Is it possible to set datasource through java code?

Thanks,
Deepali.
Re: set Data Source from your java code [message #819398 is a reply to message #819262] Mon, 12 March 2012 17:47 Go to previous messageGo to next message
Eclipse UserFriend
Using the de api from the java code that runs the report you should be
able to open the report and modify any properties. What do you want to
change in the data source?

Jason

On 3/12/2012 1:38 PM, Deepali Patil wrote:
> Hi,
>
> I have rptdesign, and I generate report in different format through my
> java code. I have set the dataSource while designing the report design,
> and java code just run's that design.
> When I am testing same code with rptdesign on different LAN, it can not
> able to find dataSource which I set in design. To run this code I need
> to edit datasource for database. Which is very tedious for different LAN
>
> Is it possible to set datasource through java code?
> Thanks,
> Deepali.
>
Re: set Data Source from your java code [message #819925 is a reply to message #819398] Tue, 13 March 2012 09:57 Go to previous messageGo to next message
Eclipse UserFriend
from java you can use the below line

task.getAppContext().put("OdaJDBCDriverPassInConnection", connObject);

Thanks

Re: set Data Source from your java code [message #830131 is a reply to message #819925] Tue, 27 March 2012 04:31 Go to previous message
Eclipse UserFriend
Hi,

Thank you so much for reply.

task.getAppContext().put("OdaJDBCDriverPassInConnection", connObject); works for me.




Thanks,
Deepali.
Previous Topic:Aggregation problem
Next Topic:Image tutorial please!!
Goto Forum:
  


Current Time: Tue Apr 29 17:15:59 EDT 2025

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

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

Back to the top