Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumsrelative address to profiles
https://www.eclipse.org/forums/index.php/mv/msg/120889/368939/#msg_368939
We would like to use relative address for profiles in reports. Currently
absolute address is used, and this is not working for us when moving
files from development machine to test or production.
Currently, we have number of reports that we would like to move to
production, but in order to do so, sys admin must change location for
each report.
Can someone point me to right direction how to change location of profiles?
Thanks a lot for your help,
Mira]]>Mira2009-07-07T21:35:53-00:00Re: relative address to profiles
https://www.eclipse.org/forums/index.php/mv/msg/120889/368940/#msg_368940
I presume you are referring to connection profiles?
You can use a variable to adjust the root path of a connection profile store
file via its Property Binding.
To do this, in BIRT "Edit Data Source" dialog, select the "Property Binding"
node page, and enter a JavaScript expression in the "Connection Profile
Store URL" property.
The JavaScript expression can include a variable to specify the root path.
The variable will then be resolved at runtime according to the configuration
of your deployment environment. Thus no need to change the Property Binding
expression in your report designs when they are deployed in different
environments.
There are multiple alternate variables that can be used to specify the root
path.
1) The JavaScript expression can refer to any BIRT config[] variable. For
example,
3) Yet another option, the JavaScript expression can also refer to a BIRT
registered resource locator to look up a resource URL. For example,
reportContext.getResource( "myProfiles.dat" )
Hope this helps.
Linda]]>Linda Chan2009-07-08T00:21:55-00:00Re: relative address to profiles
https://www.eclipse.org/forums/index.php/mv/msg/120889/368949/#msg_368949
> Mira,
> I presume you are referring to connection profiles?
> You can use a variable to adjust the root path of a connection profile store
> file via its Property Binding.
> To do this, in BIRT "Edit Data Source" dialog, select the "Property Binding"
> node page, and enter a JavaScript expression in the "Connection Profile
> Store URL" property.
> The JavaScript expression can include a variable to specify the root path.
> The variable will then be resolved at runtime according to the configuration
> of your deployment environment. Thus no need to change the Property Binding
> expression in your report designs when they are deployed in different
> environments.
> There are multiple alternate variables that can be used to specify the root
> path.
> 1) The JavaScript expression can refer to any BIRT config[] variable. For
> example,
> 3) Yet another option, the JavaScript expression can also refer to a BIRT
> registered resource locator to look up a resource URL. For example,
> reportContext.getResource( "myProfiles.dat" )
> Hope this helps.
> Linda
Thanks a lot for quick reply. That's exactly what I need.
Mira]]>Mira2009-07-08T22:48:27-00:00Re: relative address to profiles
https://www.eclipse.org/forums/index.php/mv/msg/120889/736029/#msg_736029
I had created the Template using BIRT and Connection Profile (datasoure).
The template works fine for me.
But when I send the report to user he need to change the connection profile path of his location...which is not good.
What I want is that when the template used by user the profile path it should find himself. I thik here we need to use the relative path.
I dnt know how to use this.
can anyone help me in this. My connection profile name is xsProfile and I am using BIRT 3.7
Thanks]]>Ronak 2011-10-13T11:57:46-00:00Re: relative address to profiles
https://www.eclipse.org/forums/index.php/mv/msg/120889/736103/#msg_736103
You could always put the connection profile in the resource folder and
in the beforeOpen script of the data source use a script like:
On 10/13/2011 7:57 AM, Ronak wrote:
> Hi,
>
> I had created the Template using BIRT and Connection Profile (datasoure).
> The template works fine for me.
>
> But when I send the report to user he need to change the connection
> profile path of his location...which is not good.
>
> What I want is that when the template used by user the profile path it
> should find himself. I thik here we need to use the relative path.
>
> I dnt know how to use this.
>
> can anyone help me in this. My connection profile name is xsProfile and
> I am using BIRT 3.7
>
> Thanks]]>Jason Weathersby2011-10-13T15:21:01-00:00