IBM Enterprise Records, 版本 5.1.+            

自訂報告

這個主題說明如何自訂現有的 IBM® Enterprise Records 報告。

您可以利用 Crystal Reports Designer 來設計報告的佈置,以及修改 ReportDefinitions.xml 檔,決定使用者輸入來產生報告的準則。

如果要自訂報告,請執行下列動作:

  1. 如果要建立新的報告準則,請使用 Enterprise Manager (EM) 來定義 Content Engine (CE) 內容範本。
  2. 啟動 Crystal Reports Designer,然後開啟所要修改報告的報告範本(.rpt 檔)。
  3. 依需要修改或刪除欄位或參數。 此外,您也必須在 ReportDefinitions.xml 檔中修改對應的欄位和參數。請參閱「修改 ReportDefinitions.xml」。
  4. 如果需要,可新增欄位和參數。 您也必須在 ReportDefinitions.xml 檔中,新增對應的欄位和參數。 請參閱「修改 ReportDefinitions.xml」。
  5. 如果新欄位和參數對應到其他類別或新準則,請在「資料庫」功能表中選取「資料庫專家」。
  6. 當精靈提示您建立資料庫與 Crystal Reports 之間的連線時,請選取建立新連線 - JDBC 來連接至 CE 資料庫。 連線設定是在 IBM Enterprise Records 安裝期間於 CRConfig.xml 檔中進行配置。 請參閱「IBM Enterprise Records 安裝和升級手冊」。
  7. 當精靈提示時,請輸入下列資訊:
    • 資料來源(需要存取的物件儲存庫)。
    • 具有「資料來源」存取權之帳戶的使用者 ID 和密碼。
  8. 在精靈連接至「資料來源」並顯示物件儲存庫中的所有類別清單(例如電子記錄、事件、資料夾及其他)之後,請依需求來為新報告選取一或多個類別。
  9. 根據您在精靈中選取的類別來建立查詢。

    如果要包括新準則,請輸入完全符合您為任何新準則所建立之符號名稱的參數欄位。

    您的報告即會使用此查詢來產生報告結果。如需使用 Crystal Reports Designer 的相關資訊,請參閱 Crystal Reports Designer 線上說明。

  10. 利用下列其中一項命名慣例,將報告儲存在與 Crystal Reports Application Server 相同的位置中:
    • "Summary report name.rpt"
    • "Detailed report name.rpt"

    比方說,如果 report name 是 "classification action",則將報告儲存為 "Summary classification action.rpt" 或 "Detailed classification action.rpt"。

    Crystal Reports Application Server 的位置路徑如下:<install drive>:\Program Files\Business Objects\Business Objects Enterprise 12.0\Samples\En\Reports

    IBM Enterprise Records 要求每一個報告要有「摘要」和「詳細」兩個版本。
  11. 結束 Crystal Reports Designer。
  12. 在執行 IBM Enterprise Records 的 Web 應用程式伺服器上,利用 XML 編輯器來開啟 ReportDefinitions.xml 檔,它在 IBM Enterprise Records 的配置資料夾中。 預設位置是 <ier_install_path>\Config
  13. 依照需要,修改及儲存 ReportDefinitions.xml


意見

前次更新: 2011 年 8 月


© Copyright IBM Corp. 2011.
此資訊中心採用 Eclipse 技術。(http://www.eclipse.org)