去除Pentaho biserver-ce-4.5.0版本OLAP报表下面的deprecatedWarning

来源:互联网 发布:linux fstab 挂载参数 编辑:程序博客网 时间:2024/06/04 17:52
最新的Pentaho版本界面比原来的漂亮,但是真正用起来有一点非常不爽,就是在每次展示OLAP灬灬时,报表最下方总是出现很显著的警告框:
       JPivot has been replaced by Pentaho Analyzer. It is provided as a convenience but will no longer be enhanced or offically supported by Pentaho.
但是Pentaho Analyser其实只是EE版提供的功能,在CE版本强加这样的警告无异于对用户说“快来买企业版吧”,Pentaho论坛中还有一篇分析Pentaho Analyser为什么不开源及其对PAT(JPivot社区后继者)影响的文章:http://forums.pentaho.com/showthread.php?72691-Pentaho-Analyzer
 无论怎样,我们中国的公司一般都是能用免费的绝对不会去买付费的,必须想办法将这个警告去掉。开始以为会比较复杂,后来发觉还是比较容易的。查看OLAP报表的链接,是/Pivot?solution=YinYueTaiBI&path=&action=MobileVideoSearch.analysisview.xaction,源代码最后有一段:
<div id="deprecatedWarning" style="margin: auto; width: 100%">
  <table width="580px" align="center" style="background-color: #fffdd5; border-style: solid; border-color: #dcb114; border-width= 1px; font: normal .85em Tahoma, 'Trebuchet MS', Arial">
    <tr>
      <td>
        <img src="./jpivot/navi/warning.png"/>
      </td>
      <td>
        JPivot has been replaced by Pentaho Analyzer.<br/>
        It is provided as a convenience but will no longer be enhanced or offically supported by Pentaho.
      </td>
    </tr>
这说明OLAP报表可能是由Pivot.jsp文件产生,查看Tomcat目录下webapps/pentaho/jsp目录下真有Pivot.jsp文件,文件下面赫然有以上一段代码!看来罪魁祸首就在这里。 好了,
cp Pivot.jsp Pivot.jsp.bak
vi Pivot.jsp
找到相应地方,ddddddd
wq
OK!
原创粉丝点击