IBM Enterprise Records, 版本 5.1.+            

建立報告範本

這個主題說明如何在 Crystal Reports 中建立報告範本。

完成這項作業需要:

如果要建立報告範本,請執行下列動作:

  1. 啟動 Crystal Reports Designer,然後開啟空白報告。
  2. 使用「Crystal Reports Designer 資料庫專家」對話框,建立與 Content Engine 的連線。
    1. 資料庫專家對話框中,選取 JDBC
    2. 確定「連線 URL」正確,然後輸入使用者名稱和密碼來建立與 Content Engine 的連線。
  3. 在「資料庫專家」中:
    1. 新增下列 SQL 指令:
      Select F.PathName, RCR.ContainmentName, MK.MediaType, MK.DateCreated, MK.Creator from (Markers MK Inner join ReferentialContainmentRelationship RCR on MK.This=RCR.Head) Inner join RMFolder Fon F.This=RCR.Tail where MK.DateCreated >= {?start_date} And MK.DateCreated <= {?end_date} And MK.MediaType = '{?media_type}' And MK.this insubfolder '/{?fileplan_browse}'
    2. 建立類型全為 String 的以下四個參數:start_date、end_date、fileplan_browse、media_type。 參數名稱必須符合「CE 內容範本」的符號名稱。
  4. 在 Crystal Reports Designer 中:
    1. 定義下列「公式欄位」:
      start = Date(Left({?start_date},10))
      end = Date(Left({?end_date},10))
      EntityName= {Command.PathName} + {Command.ContainmentName}
    2. 以下列「詳細資料區段」欄位定義「報告 UI」:
      Creator: Command.Creator
      DateCreated: Command.DateCreated
      MediaType: Command.MediaType
      @EntityName: Formula EntityName.
  5. 將這個報告儲存至 Crystal Reports 安裝路徑下的 Samples 資料夾。例如:

    C:\Program Files\Business Objects\BusinessObjects Enterprise 12\Samples\en\Reports\ Detailed Physical Records By Media Type Created.rpt

  6. 從 Crystal Reports Designer 中預覽報告。
  7. 按一下「重新整理」,輸入每一個參數的適當值:
    表 1. 範例報告參數值
    參數 註解
    fileplan_browse Records Management/<FilePlanName>
    start_date 2008-01-01 檢查 Crystal Reports Designer 中的日期時間格式設定
    end_date 2008-12-31 檢查 Crystal Reports Designer 中的日期時間格式設定
    media_type 紙張

您現在已建立詳細報告範本 Detailed Physical Records By Media Type Created.rpt

這個範本適用於 Base 資料模型檔案計劃物件儲存庫 (FPOS)。如果此範本用於「DOD 已分類」資料模型,請將範本儲存為 Detailed Physical Records By Media Type Created DoDClassified.rpt

這個範例只會建立詳細報告。您可以建立另一個摘要報告,並將它儲存為 Summary Physical Records By Media Type Created.rpt



意見

前次更新: 2011 年 8 月


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