2

私はペンタホで働き始めています。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 レポートで同じことを行う方法がわかりません

ご協力ありがとうございました

4

1 に答える 1

2

解決策がわかった

最初に変更する必要があります

\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 とアナライザーのショートカットを削除するだけで済みます (これは簡単です)。

于 2013-03-21T10:15:22.663 に答える