Skip to main content



      Home
Home » Archived » 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 12:23 Go to next message
Eclipse UserFriend
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 05:29] by Moderator

Re: How to specify the properties folder to report [message #918721 is a reply to message #917992] Fri, 21 September 2012 05:28 Go to previous messageGo to next message
Eclipse UserFriend
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 12:27 Go to previous messageGo to next message
Eclipse UserFriend
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 12:28] by Moderator

Re: How to specify the properties folder to report [message #929222 is a reply to message #928439] Mon, 01 October 2012 05:52 Go to previous message
Eclipse UserFriend
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 05:52] by Moderator

Previous Topic:CrossTabs - problem/feature with aggregations (multiple totals)
Next Topic:react on pagebreak inside table via js
Goto Forum:
  


Current Time: Wed Jul 23 19:39:20 EDT 2025

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

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

Back to the top