【问题标题】:Modify pentaho home page button修改pentaho主页按钮
【发布时间】:2013-03-21 18:15:22
【问题描述】:

我开始使用 pentaho。 在 PUC 上,我想更改“新报告”和“新分析”按钮,并将它们分别替换为“saiku 报告”和“saiku 分析”

对于 saiku 分析,我发现了如何去做 我进去了

\biserver-ce-4.8.0-stable\biserver-ce\tomcat\webapps\pentaho\mantle\launch\launch.jsp

并替换:

onClick="launch('launch_new_analysis', window.top.openAnalysis)"

与:

onClick="launch('saikuButton',function() {warning('Error opening Saiku
Ananlysis.')})"

它工作正常,但我不知道如何对 saiku 报告做同样的事情

非常感谢您的帮助

【问题讨论】:

    标签: jsp pentaho saiku


    【解决方案1】:

    我找到了解决办法

    首先我需要修改

    \biserver-ce\pentaho-solutions\system\saiku-adhoc\plugin.xml
    

    然后添加这个

    <overlay id="launch" resourcebundle="../content/saiku-adhoc/web/saiku-adhoc.properties">
                <button id="saikuAHButton" image="../content/saiku-adhoc/web/images/src/adhoc_32.png"
                            command="openURL('Saiku Reporting','Saiku Reporting','content/saiku-adhoc/web/index.html?biplugin=true')"
                            label="saiku ad hoc label button" />
            </overlay>
    

    就在&lt;/overlays&gt; 之前 那我得去

    \biserver-ce\tomcat\webapps\pentaho\mantle\launch\launch.jsp

    并将“onclick new WAQR ...”修改为:

    <td align="center" class="smallButton"><button class="pentaho-button" id="button0" onclick="launch('saikuAHButton', function() {warning('error opening saiku ad-hoc reporting .')})">New saiku Ad-hoc report</button></td>
    

    我可以对按钮顶部的图像做同样的事情(因为图像也是可点击的):

    <td align="center" width="226" valign="bottom" class="largeGraphicButton"><img src="images/clr.gif" width="226" height="10"><br><a href="#" onClick="launch('saikuAHButton', function() {warning('error opening saiku ad-hoc reporting .')})"><img src="images/new_report.png" border="0"></a></td>
            <td valign="bottom" width="3" class="largeGraphicSpacer"><img src="images/clr.gif" width="3" height="11"></td>
            <td align="center" width="226" valign="bottom" class="largeGraphicButton"><img src="images/clr.gif" width="226" height="10"><br><a href="#" onClick="launch('saikuButton',function() {warning('Error opening Saiku Ananlysis.')})"><img src="images/new_analysis.png" border="0"></a></td>
    

    现在当我点击它时,我可以直接访问 saiku 报告和分析,我只需删除菜单上 WAQR 和分析器的快捷方式(这很容易),我很好

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-08-12
      • 1970-01-01
      相关资源
      最近更新 更多