Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Share one single rptlibrary for a tree of Reports
Share one single rptlibrary for a tree of Reports [message #781653] Sat, 21 January 2012 23:06 Go to next message
Alessio Pollero is currently offline Alessio PolleroFriend
Messages: 66
Registered: August 2011
Member
I want to deploy my Reports in a tree of hierarchical folder, all reports have some items that are imported from a library(rptlibrary), i can share one unique library file in the root of the folder tree with all my reports in the subfolder ? How ?

For exmaple i have :

-Root
commonObjects.rptlibrary
      --SubFolder1
         AReport.rptdesign
      --SubFolder2
         Report.rptdesign
         --SubFolder
             Report.rptdesign
Re: Share one single rptlibrary for a tree of Reports [message #782401 is a reply to message #781653] Mon, 23 January 2012 16:50 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Do you mean in the designer or deployed? In the deployed you should be
able to just set the resource folder in the web.xml to the Root
directory. In the designer set the resource folder in the
window->preferences->Report Design->Resource preference.

Jason

On 1/21/2012 6:06 PM, Alessio Pollero wrote:
> I want to deploy my Reports in a tree of hierarchical folder, all
> reports have some items that are imported from a library(rptlibrary), i
> can share one unique library file in the root of the folder tree with
> all my reports in the subfolder ? How ?
> For exmaple i have :
>
> -Root
> commonObjects.rptlibrary
> --SubFolder1
> AReport.rptdesign
> --SubFolder2
> Report.rptdesign
> --SubFolder
> Report.rptdesign
Re: Share one single rptlibrary for a tree of Reports [message #782486 is a reply to message #782401] Mon, 23 January 2012 20:13 Go to previous messageGo to next message
Alessio Pollero is currently offline Alessio PolleroFriend
Messages: 66
Registered: August 2011
Member
No, i mean deployed but not using web application but using a standalone application(that implements Runtime API), i have to set the resource folder also in the runtime engine ?

[Updated on: Mon, 23 January 2012 20:13]

Report message to a moderator

Re: Share one single rptlibrary for a tree of Reports [message #782833 is a reply to message #782486] Tue, 24 January 2012 14:43 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

If you are using the Engine api just set the resource path on the
EngineConfig instance:

config.setResourcePath(resourcePath)

Jason

On 1/23/2012 3:13 PM, Alessio Pollero wrote:
> No, i mean using deployed but not using web application but using a
> standalone application(that implements Runtime API) that execute the
> reports, i have to set the resource folder also in the runtime engine ?
Re: Share one single rptlibrary for a tree of Reports [message #782918 is a reply to message #782833] Tue, 24 January 2012 18:14 Go to previous messageGo to next message
Alessio Pollero is currently offline Alessio PolleroFriend
Messages: 66
Registered: August 2011
Member
Yes, i have tried but it doesn't work ...
I mean i have a library(rptlibrary) where i have put inside some embedded images, then i have loaded these images in several reports(rptdesign), if the rptlibrary is in the same folder of the report definition (rptdesign) when i load the report i have no problem(images are displayed), if i move the library into another folder (resources folder) and then i set the resource path with :

config.setResourcePath(resourcePath)


when i run the reports the images are not displayed ... Why ? Is it a bug ?
Re: Share one single rptlibrary for a tree of Reports [message #783025 is a reply to message #782918] Tue, 24 January 2012 23:00 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

That should work. Is the resourcePath a fully qualified path?

Jason

On 1/24/2012 1:14 PM, Alessio Pollero wrote:
> Yes, i have tried but it doesn't work ... I mean i have a
> library(rptlibrary) where i have put inside some embedded images, then i
> have loaded these images in several reports(rptdesign), if the
> rptlibrary is in the same folder of the report definition (rptdesign)
> when i load the report i have no problem(images are displayed), if i
> move the library into another folder (resources folder) and then i set
> the resource path with :
> config.setResourcePath(resourcePath)
>
> when i run the reports the images are not displayed ... Why ? Is it a bug ?
>
Re: Share one single rptlibrary for a tree of Reports [message #783163 is a reply to message #783025] Wed, 25 January 2012 07:44 Go to previous messageGo to next message
Alessio Pollero is currently offline Alessio PolleroFriend
Messages: 66
Registered: August 2011
Member
Yes, a fully qualified path, for example : C:\Temp.
Re: Share one single rptlibrary for a tree of Reports [message #783397 is a reply to message #783163] Wed, 25 January 2012 16:32 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

What version of BIRT are you using and are the images embedded in the
library?

Jason

On 1/25/2012 2:44 AM, Alessio Pollero wrote:
> Yes, a fully qualified path, for example : C:\Temp.
Re: Share one single rptlibrary for a tree of Reports [message #783435 is a reply to message #783397] Wed, 25 January 2012 17:57 Go to previous messageGo to next message
Alessio Pollero is currently offline Alessio PolleroFriend
Messages: 66
Registered: August 2011
Member
Yes, the image are embedded in the library and i'm using BIRT 3.7.1 .
Re: Share one single rptlibrary for a tree of Reports [message #783871 is a reply to message #783435] Thu, 26 January 2012 16:11 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

I just tried this with 3.7.1 and it worked for me. Are you setting the
full resource path like: c:\\temp or c:/temp?

Jason

On 1/25/2012 12:57 PM, Alessio Pollero wrote:
> Yes, the image are embedded in the library and i'm using BIRT 3.7.1 .
Re: Share one single rptlibrary for a tree of Reports [message #784679 is a reply to message #783871] Fri, 27 January 2012 21:40 Go to previous messageGo to next message
Alessio Pollero is currently offline Alessio PolleroFriend
Messages: 66
Registered: August 2011
Member
I'm setting the path with backslash
(c:\temp)
...

I have tried even on MAC OS X setting an absolute path like :

/tmp 


but it doesn't work, the image are not loaded ... Instead of the report image i get : "The resource of this report item is not reachable."

[Updated on: Sat, 28 January 2012 20:02]

Report message to a moderator

Re: Share one single rptlibrary for a tree of Reports [message #786590 is a reply to message #784679] Mon, 30 January 2012 15:57 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Use a double backslash ie c:\\temp.

Jason

On 1/27/2012 4:40 PM, Alessio Pollero wrote:
> I'm setting the path with backslash(c:\temp) ..
Re: Share one single rptlibrary for a tree of Reports [message #787375 is a reply to message #786590] Tue, 31 January 2012 14:09 Go to previous message
Alessio Pollero is currently offline Alessio PolleroFriend
Messages: 66
Registered: August 2011
Member
It doesn't work neither ...
Previous Topic:Stored Procedure without owner
Next Topic:IGetParameterDefinitionTask getSelectionList get too time during evaluation
Goto Forum:
  


Current Time: Fri Nov 21 20:50:08 GMT 2014

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

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