Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » JNDI-datasource name as parameter to BirtViewer, possible?
JNDI-datasource name as parameter to BirtViewer, possible? [message #667606] Fri, 29 April 2011 21:33 Go to next message
Eclipse UserFriend
Originally posted by: donkey.fredriksson.dy.fi

I'm considering use of BIRT in a SaaS-application, where we have to
configure separate DataSources for each client.

Is it possible to pass the DS name as a parameter to the report, and in
Reportdesing use that datasource? (That would be some random looking 128
char "password", of course to prevent hacking).

Can some JavaScript in rptdesign set the datasource?

I would very much like not to modify the BIRT reportviewer war.

--

Tonight you will pay the wages of sin; Don't forget to leave a tip.
Re: JNDI-datasource name as parameter to BirtViewer, possible? [message #667611 is a reply to message #667606] Fri, 29 April 2011 22:01 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Yes you can modify the datasource in the beforeFactory script or the
beforeOpen of the datasource. It can also be done with a property
binding expression in the datasource. I assume you mean modify the
dburl? You can also use connection profiles.

In the beforeOpen just put
this.setExtensionProperty("URL", params["myclienturl"].value);

The above example assumes you have a report parameter named myclienturl.
You could also retrieve it from the http request or session if it is
available there.

Jason

On 4/29/2011 5:33 PM, Donkey Hottie wrote:
>
> I'm considering use of BIRT in a SaaS-application, where we have to
> configure separate DataSources for each client.
>
> Is it possible to pass the DS name as a parameter to the report, and in
> Reportdesing use that datasource? (That would be some random looking 128
> char "password", of course to prevent hacking).
>
> Can some JavaScript in rptdesign set the datasource?
>
> I would very much like not to modify the BIRT reportviewer war.
>
Re: JNDI-datasource name as parameter to BirtViewer, possible? [message #667616 is a reply to message #667611] Fri, 29 April 2011 22:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: donkey.fredriksson.dy.fi

30.4.2011 1:01, Jason Weathersby kirjoitti:
> Yes you can modify the datasource in the beforeFactory script or the
> beforeOpen of the datasource. It can also be done with a property
> binding expression in the datasource. I assume you mean modify the
> dburl? You can also use connection profiles.
>
> In the beforeOpen just put
> this.setExtensionProperty("URL", params["myclienturl"].value);
>
> The above example assumes you have a report parameter named myclienturl.
> You could also retrieve it from the http request or session if it is
> available there.
>

OK. But not really URL, but the JNDI-name for the DataSource.

>
> On 4/29/2011 5:33 PM, Donkey Hottie wrote:
>>
>> I'm considering use of BIRT in a SaaS-application, where we have to
>> configure separate DataSources for each client.
>>
>> Is it possible to pass the DS name as a parameter to the report, and in
>> Reportdesing use that datasource? (That would be some random looking 128
>> char "password", of course to prevent hacking).
>>
>> Can some JavaScript in rptdesign set the datasource?
>>
>> I would very much like not to modify the BIRT reportviewer war.
>>
>


--

Q: What do you call a half-dozen Indians with Asian flu?
A: Six sick Sikhs (sic).
Re: JNDI-datasource name as parameter to BirtViewer, possible? [message #667913 is a reply to message #667616] Mon, 02 May 2011 18:32 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

then use"

this.setExtensionProprety("odaJndiName", ..

Jason

On 4/29/2011 6:24 PM, Donkey Hottie wrote:
> 30.4.2011 1:01, Jason Weathersby kirjoitti:
>> Yes you can modify the datasource in the beforeFactory script or the
>> beforeOpen of the datasource. It can also be done with a property
>> binding expression in the datasource. I assume you mean modify the
>> dburl? You can also use connection profiles.
>>
>> In the beforeOpen just put
>> this.setExtensionProperty("URL", params["myclienturl"].value);
>>
>> The above example assumes you have a report parameter named myclienturl.
>> You could also retrieve it from the http request or session if it is
>> available there.
>>
>
> OK. But not really URL, but the JNDI-name for the DataSource.
>
>>
>> On 4/29/2011 5:33 PM, Donkey Hottie wrote:
>>>
>>> I'm considering use of BIRT in a SaaS-application, where we have to
>>> configure separate DataSources for each client.
>>>
>>> Is it possible to pass the DS name as a parameter to the report, and in
>>> Reportdesing use that datasource? (That would be some random looking 128
>>> char "password", of course to prevent hacking).
>>>
>>> Can some JavaScript in rptdesign set the datasource?
>>>
>>> I would very much like not to modify the BIRT reportviewer war.
>>>
>>
>
>
Previous Topic:Multiple selection in a cascaded report parameter
Next Topic:Tips for printing to a dot matrix computer?
Goto Forum:
  


Current Time: Thu Apr 25 00:29:33 GMT 2024

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

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

Back to the top