Skip to main content



      Home
Home » Archived » BIRT » Use multiple schema in a birt report
Use multiple schema in a birt report [message #820613] Wed, 14 March 2012 06:43 Go to next message
Eclipse UserFriend
I want change at runtime schema connection dynamically in a stored procedure call, like:

{call SCHEMA_NAME.SPNAME( ?) }

Where SCHEMA_NAME is definited at runtime


PS:
I'm using this code to set database connection:

 
IRunAndRenderTask task = engine.createRunAndRenderTask(design); 	 					  
		
task.getAppContext().put("OdaJDBCDriverPassInConnection", connection);

Re: Use multiple schema in a birt report [message #821032 is a reply to message #820613] Wed, 14 March 2012 17:30 Go to previous messageGo to next message
Eclipse UserFriend
Do you have the schema name in a parameter?
If so you could change it with property binding or a data set beforeOpen
script like:

this.queryText =
this.queryText.replaceAll("SCHEMA_NAME",params["myschema"].value"))

Jason

On 3/14/2012 6:43 AM, Frizz K wrote:
> I want change at runtime schema connection dynamically in a stored
> procedure call, like:
>
> {call SCHEMA_NAME.SPNAME( ?) }
> Where SCHEMA_NAME is definited at runtime
>
>
> PS: I'm using this code to set database connection:
>
>
> IRunAndRenderTask task = engine.createRunAndRenderTask(design);
> task.getAppContext().put("OdaJDBCDriverPassInConnection", connection);
>
>
Re: Use multiple schema in a birt report [message #824102 is a reply to message #821032] Mon, 19 March 2012 05:04 Go to previous message
Eclipse UserFriend
Ok, thank you very much!!
Previous Topic:WebViewer.display(String, Browser, Map)
Next Topic:Is it possible to create "n" GUI tables for "n" records within the database
Goto Forum:
  


Current Time: Wed Jul 23 05:13:31 EDT 2025

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

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

Back to the top