我找到了解决方案
首先我需要修改
\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>
就在之前</overlays>
然后我必须去
\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 和分析器的快捷方式(这很容易),我很好