Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Load Report Libraries Dinamically
Load Report Libraries Dinamically [message #659217] Fri, 11 March 2011 15:18 Go to next message
No real name is currently offline No real nameFriend
Messages: 4
Registered: March 2011
Junior Member
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 #659232 is a reply to message #659217] Fri, 11 March 2011 15:35 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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 #659240 is a reply to message #659232] Fri, 11 March 2011 15:54 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 4
Registered: March 2011
Junior Member
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 #659251 is a reply to message #659240] Fri, 11 March 2011 16:41 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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 #659257 is a reply to message #659251] Fri, 11 March 2011 17:03 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 4
Registered: March 2011
Junior Member
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 #659261 is a reply to message #659257] Fri, 11 March 2011 17:08 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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 #659279 is a reply to message #659261] Fri, 11 March 2011 19:39 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 4
Registered: March 2011
Junior Member
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
Re: Load Report Libraries Dinamically [message #659555 is a reply to message #659279] Mon, 14 March 2011 14:57 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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
Previous Topic:Data Set Computed columns: Percentage
Next Topic:ReportServiceException when trying to preview a report more than once
Goto Forum:
  


Current Time: Thu Apr 18 01:04:55 GMT 2024

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

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

Back to the top