Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Library items on MasterPage and relative resource path setting
Library items on MasterPage and relative resource path setting [message #263870] Wed, 02 January 2008 16:30 Go to next message
Eclipse UserFriend
Originally posted by: xpanto00-birt.yahoo.com

I have a report getting some items from a library (grid, label, and data
items), to be shown in a master page.
i set the web.xml BIRT_RESOURCE_PATH to point to a folder like this
<context-param>
<param-name>BIRT_RESOURCE_PATH</param-name>
<param-value>/resources</param-value>
</context-param>
and put the library file on that folder.
when i click the Preview button everything renders, even if some items are
from the library, but deployed they won't: they will only render when i
set a full path for param __resourceFolder and pointing to my workspace,
not deploy path.
tried to put library anywhere, project root, root/resources, even in the
same folder report is, and nothing happens...

i definitely do not want to use just birt_home to put my resources into,
neither use a fixed path (i'm working on a web project)
and also i'd like to separate them (resources/libraries, resources/js,
resources/whatever...).
So, can library items be rendered using a relative path? or is there a
workaround for re-using items on different reports?
Thanks in advice for your help.

PD: using BIRT 2.2.1 and birt-viewer webproject for deploy
Re: Library items on MasterPage and relative resource path setting [message #263952 is a reply to message #263870] Fri, 04 January 2008 17:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Jonathan,

If you are using the BIRT web project make sure your have the resources
folder created under WebContent. If you are developing in the same
workspace change your resource folder for the designer to point to this
same location ( it is in the options).

In the report check the libraries setting:
<list-property name="libraries">
<structure>
<property name="fileName">testlib.rptlibrary</property>
<property name="namespace">testlib</property>
</structure>
the filename property should be relative to your resources folder.

Jason

Jonathan Ostorga wrote:
> I have a report getting some items from a library (grid, label, and data
> items), to be shown in a master page.
> i set the web.xml BIRT_RESOURCE_PATH to point to a folder like this
> <context-param>
> <param-name>BIRT_RESOURCE_PATH</param-name>
> <param-value>/resources</param-value>
> </context-param>
> and put the library file on that folder.
> when i click the Preview button everything renders, even if some items
> are from the library, but deployed they won't: they will only render
> when i set a full path for param __resourceFolder and pointing to my
> workspace, not deploy path.
> tried to put library anywhere, project root, root/resources, even in the
> same folder report is, and nothing happens...
>
> i definitely do not want to use just birt_home to put my resources into,
> neither use a fixed path (i'm working on a web project)
> and also i'd like to separate them (resources/libraries, resources/js,
> resources/whatever...).
> So, can library items be rendered using a relative path? or is there a
> workaround for re-using items on different reports?
> Thanks in advice for your help.
>
> PD: using BIRT 2.2.1 and birt-viewer webproject for deploy
>
Re: Library items on MasterPage and relative resource path setting [message #263972 is a reply to message #263952] Mon, 07 January 2008 16:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: xpanto00-birt.yahoo.com

Thanks Jason for your reply. Now i'm working fine with it, resources are
all linked correctly.
But my other projects are now _only_ poiting to those resources that i set
in the Eclipse Preferences.
Suppose that i have project 1 and project 2, both running different birt's
and in any way related one to another.
I set the Resources Setting to point to my resource folder in project 1.
It works fine, i see all resources.
But now, project 2 allows me to select only the resources from project 1!!
Can this Setting be project-dependent?
Re: Library items on MasterPage and relative resource path setting [message #264067 is a reply to message #263972] Mon, 07 January 2008 23:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Jonathan,

Can't you set the resource folder and then create sub directories for
each project?

Jason

Jonathan Ostorga wrote:
> Thanks Jason for your reply. Now i'm working fine with it, resources are
> all linked correctly.
> But my other projects are now _only_ poiting to those resources that i
> set in the Eclipse Preferences.
> Suppose that i have project 1 and project 2, both running different
> birt's and in any way related one to another.
> I set the Resources Setting to point to my resource folder in project 1.
> It works fine, i see all resources.
> But now, project 2 allows me to select only the resources from project 1!!
> Can this Setting be project-dependent?
>
Re: Library items on MasterPage and relative resource path setting [message #264144 is a reply to message #264067] Tue, 08 January 2008 16:37 Go to previous message
Eclipse UserFriend
Originally posted by: xpanto00-birt.yahoo.com

That would be a nice workaround, but some resources cannot be included in
the deploy package for, let's say, a specific client, don't you think?.
Since i have just started working with birt i canĊ½t give you a right
answer, but i'll give a try on your project sub directory alternative and
see how it works.
Thanks!
Previous Topic:Strange behaviour with mysql and BIRT data types
Next Topic:Expand/Collapse Report Group
Goto Forum:
  


Current Time: Fri Dec 19 00:05:10 GMT 2014

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

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