JNDI-datasource name as parameter to BirtViewer, possible? [message #667606] |
Fri, 29 April 2011 21:33 |
Eclipse User |
|
|
|
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 |
|
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 |
Eclipse User |
|
|
|
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 |
|
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.
>>>
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03429 seconds