Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » [SOLVED] How to specify the properties folder to report
[SOLVED] How to specify the properties folder to report [message #917992] Thu, 20 September 2012 16:23 Go to next message
Blaine Mising name is currently offline Blaine Mising nameFriend
Messages: 25
Registered: December 2010
Junior Member
I saw that properties files can be added to the report. In preview mode it works, but deployin application in tomcat it doesn't read it.

My application starts the viewer in a jps file.

Here is the code:

<birt:viewer id="birtViewer"
pattern="frameset"
reportDesign="${pathReportAttribute}.rptdesign"
format="html"
rtl="${rtl}"
locale="${locale}"
frameborder="No"
scrolling="No"
showParameterPage="true"
>
</birt:viewer>

Is it possible to specify the properties folder when viewer starts? How?

[Updated on: Fri, 21 September 2012 09:29]

Report message to a moderator

Re: How to specify the properties folder to report [message #918721 is a reply to message #917992] Fri, 21 September 2012 09:28 Go to previous messageGo to next message
Blaine Mising name is currently offline Blaine Mising nameFriend
Messages: 25
Registered: December 2010
Junior Member
I Solved it.

The poperty resourceFolder specifies the report properties folder.
Re: How to specify the properties folder to report [message #928439 is a reply to message #918721] Sun, 30 September 2012 16:27 Go to previous messageGo to next message
Long Nguyen is currently offline Long NguyenFriend
Messages: 1
Registered: September 2012
Junior Member
I have the same problem, but still cannot solve it.
What is resourceFolder? Is it BIRT_RESOURCE_PATH param in web.xml? I set this value to /resource and put properties files to "resource" folder, but it did not work. The values in properties files ware not loaded.
Could you tell me more detail how to solve it?
Thank you so much!

[Updated on: Sun, 30 September 2012 16:28]

Report message to a moderator

Re: How to specify the properties folder to report [message #929222 is a reply to message #928439] Mon, 01 October 2012 09:52 Go to previous message
Blaine Mising name is currently offline Blaine Mising nameFriend
Messages: 25
Registered: December 2010
Junior Member
Here you are the jsp code:

<birt:viewer id="birtViewer"
pattern="frameset"
reportDesign="${pathReportAttribute}.rptdesign"
resourceFolder="<%=resPath%>"
format="html"
rtl="${rtl}"
locale="${locale}"
frameborder="No"
scrolling="No"
showParameterPage="true">
</birt:viewer>


resPath is the full path but you should take in to account the folder specified in your reports.
For example, if you've configured in your report that resources path is "properties\i18n" folder, and your properties are in "C:\reports\properties\i18n" respPath value should be "C:\reports" and not "C:\reports\properties\i18n".


[Updated on: Mon, 01 October 2012 09:52]

Report message to a moderator

Previous Topic:Missing parameter exception
Next Topic:react on pagebreak inside table via js
Goto Forum:
  


Current Time: Thu Nov 27 11:00:20 GMT 2014

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

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