2011/11/24

出力形式の表示順 (Order of output format list)


OTNに「出力形式の順序を変更する方法」が質問されていました。
https://forums.oracle.com/forums/thread.jspa?threadID=514121

スレッドの中で、BI Publisher 10gでの変更方法と思われる回答が寄せられていました。これをヒントに、BI Publisher 11gで表示順序が変更ができるかを検証します。

【変更前の状態】
変更前の状態は以下の通りです。
Figure 1: Original order

【ダウンロード】
対象となるレポートを選択し、ダウンロードします。
Figure 2: Download report

【解凍】
ダウンロードした *.xdozファイルをZIPファイルとして解凍します。

【定義の編集】
解凍されたファイルに含まれる_report.xdoを開きます。
List 1:
<?xml version = '1.0' encoding = 'utf-8'?> <report xmlns="http://xmlns.oracle.com/oxp/xmlp" xmlns:xsd="http://wwww.w3.org/2001/XMLSchema" version="2.0" dataModel="true" useBipParameters="true" producerName="fin-financialCommon" parameterVOName="" parameterTaskFlow="" customDataControl="" cachePerUser="true" cacheSmartRefresh="false" cacheUserRefresh="false"> <dataModel url="/~weblogic/dmEmp.xdm"/> <description/> <property name="showControls" value="true"/> <property name="online" value="true"/> <property name="openLinkInNewWindow" value="true"/> <property name="autoRun" value="false"/> <property name="cacheDocument" value="true"/> <property name="showReportLinks" value="true"/> <property name="asynchronousRun" value="false"/> <property name="useExcelProcessor" value="false"/> <property name="cacheDuration" value="30"/> <property name="controledByExtApp" value="false"/> <parameters paramPerLine="3"/> <templates default="layout1"> <template label="layout1" url="layout1.rtf" type="rtf" outputFormat="html,pdf,rtf,excel,xlsx,pptx,csv" defaultFormat="html" locale="en_US" disableMasterTemplate="true" active="true" viewOnline="false"/> </templates> </report> 

下線部を編集します。
List 2:
<templates default="layout1"> <template label="layout1" url="layout1.rtf" type="rtf" outputFormat="csv,pptx,xlsx,excel,rtf,pdf,html" defaultFormat="html" locale="en_US" disableMasterTemplate="true" active="true" viewOnline="false"/> </templates>

【圧縮】
編集後、ファイルを再度ZIP形式で圧縮し、拡張子を.xdozに変更します。


【アップロード】
ファイルをアップロードします。
Figure 3: Upload

【結果】
出力形式の表示順が_report.xdoで指定した順に変わっていることが確認できます。
Figure 4: Result - order changed.

なお、残念ながら、変更後にレポートの定義を編集・保存すると表示順は元に戻ってしまいます。


[summary]


OTN thread: Default output format
https://forums.oracle.com/forums/thread.jspa?threadID=514121


The solution on BI Publisher 10g is posted on the thread above.  I've checked if this solution works on BI Publisher 11g as well.
You can change the order of output format with the following step:


1) Download the report (See Figure 2).
2) Unzip the download file (*.xdoz).
3) Edit _report.xdo (See List 1 and 2).
4) Zip the files again, and upload it onto BI Publisher (Figure 3).


Note that the order of output format will be reset when you edit and save the report.

0 件のコメント:

コメントを投稿