Pentaho 5.3 - 如何读取 PRPT 文件中的属性 [英] Pentaho 5.3 - How to read a property in PRPT files

查看:51
本文介绍了Pentaho 5.3 - 如何读取 PRPT 文件中的属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在属性文件中设置一个值,然后在 Pentaho 5.3 的 PRPT 中读取这个值.如果我理解它,添加我的属性的文件是 design-tools/report-designer/resources/classic-engine.properties(报表设计器)和 server/biserver-ee/tomcat/webapps/pentaho/WEB-INF/classes/classic-engine.properties(BI 服务器,一旦发布).对吗?如果是这样,你能告诉我如何在我的 PRPT 文件中读取这个值(例如,pentaho.images.path=c:/myProject/images/)?如果没有,你能告诉我怎么做吗?谢谢!

I need to set a value in a properties file and then read this value in a PRPT in Pentaho 5.3.If I understand it, the file where to add my property is design-tools/report-designer/resources/classic-engine.properties (Report Designer) and server/biserver-ee/tomcat/webapps/pentaho/WEB-INF/classes/classic-engine.properties (BI server, once published).That's right? If so, could you tell me how I can read this value (example, pentaho.images.path=c:/myProject/images/) in my PRPT file? If not, could you explain to me how to do? Thank you!

推荐答案

我找到了一个解决方案...如果对某人有用,我会写下来.有问题的文件是正确的.我们需要在 classic-engine.properties 中写入:

I found a solution... I write it if that can be useful to someone. Files listed in question are correct. We need write in classic-engine.properties:

org.pentaho.reporting.engine.classic.core.environment.pentahoImgPath=c:/myProject/images/
org.pentaho.reporting.engine.classic.core.env-mapping.pentahoImgPath=env\:\:pentahoImgPath

重新启动报表设计器.现在,我们在用报表设计器打开后在 PRPT 文件中有一个新的环境变量 env::pentahoImgPath该值包含在org.pentaho.reporting.engine.classic.core.environment.pentahoImgPath"键(c:/myProject/images/)中.再见.

Restart the Report Designer. Now, we have a new environment variable in PRPT file once opened with the Report Designer, env::pentahoImgPath The value is contained in "org.pentaho.reporting.engine.classic.core.environment.pentahoImgPath" key (c:/myProject/images/). Bye.

安德里亚

这篇关于Pentaho 5.3 - 如何读取 PRPT 文件中的属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆