|
Re: Load Report Libraries Dinamically [message #659232 is a reply to message #659217] |
Fri, 11 March 2011 15:35 |
|
I assume you mean the Viewer resource folder. You can set it on the url
like &__resourceFolder=locationofresourcefolder
Jason
On 3/11/2011 10:18 AM, ms@mstn.com wrote:
> I have an application that's used by several companies but have the same
> reports, I have a library with all data sets and another with a the
> master pages for each company (logo, address and so on)
>
> right now i have a directory for each customer, with all the reports on
> each directory, loading the customer library and the shared library.
>
> This works but is a pain to mantain, is there a way to dynamically load
> a library, or specify the directory on a parameter or something of the
> sort, so I could have a single report, for every customer.
>
> thanks in advance
>
> Jose Suero
|
|
|
|
Re: Load Report Libraries Dinamically [message #659251 is a reply to message #659240] |
Fri, 11 March 2011 16:41 |
|
I was thinking you would create rptlib called something like
client.rptlibrary and you would put it in the resource folder
under client1. Same for client2 and then the parameter would point to
the proper resource folder for the specific client.
Jason
On 3/11/2011 10:54 AM, ms@mstn.com wrote:
> Thanks for your reply, this is what I have on the XML
>
> <list-property name="libraries">
> <structure>
> <property name="fileName">../GLOBAL.rptlibrary</property>
> <property name="namespace">GLOBAL</property>
> </structure>
> <structure>
> <property name="fileName">./CLIENT1.rptlibrary</property>
> <property name="namespace">CLIENT1</property>
> </structure>
> </list-property>
>
> They have relative or absolute paths, where do I use the resource folder
> paramter?? or what is loaded from it???
|
|
|
|
Re: Load Report Libraries Dinamically [message #659261 is a reply to message #659257] |
Fri, 11 March 2011 17:08 |
|
In the designer set the resource folder (windows preferences) to one of
the clients and the library reference should only be the name of the
library with no pathing (except for the global which should be like
.../global..)
Jason
On 3/11/2011 12:03 PM, ms@mstn.com wrote:
> That's exacly what I want, but when I select a library it places an
> absolute path, how would I specify that the library is being loaded from
> the resource folder??
|
|
|
|
Re: Load Report Libraries Dinamically [message #659555 is a reply to message #659279] |
Mon, 14 March 2011 14:57 |
|
Jose,
It looks like the viewer parameter requires a full path for the resource
folder. Can you log a bug to fix this? The only work around I could
think of was to write a driver report that gets the local path of the
deployed app and then forwards to the report using the local path as a
resource folder parameter.
Jason
On 3/11/2011 2:39 PM, ms@mstn.com wrote:
> I tested the resource folder and it works if I put a absolute path:
>
> /u01/app/glassfishv3/glassfish/domains/domain1/applications/
> birt/REPORTS/CLIENT1
>
> but I haven't been able to figure out how to use a relative path
>
> thanks again
>
> Jose
|
|
|
Powered by
FUDForum. Page generated in 0.03510 seconds