顯示報表項目

請參閱  

當使用者導覽資料夾時,他們會想要尋找報表並加以檢視。所以,您必須加入可以配合那些動作需求的介面至 contents.jsp。

在本教學課程中,如果資料夾內有報表可供顯示,就會為使用者建構報表名稱清單。第二個 ItemsGrid 元件,雖位於在頁面上第一個 ItemsGrid 元件之下,但能用於該用途。當使用者按一下格線中的報表項目時,他們會被重新導向至另一個頁面 (view.jsp),報表便在其中建構以供檢視。

加入報表清單
  1. 在 [Palette] 檢視的 [Crystal Reports Faces Components] 索引標籤之下,按一下 [Enterprise ItemsGrid],並拖曳 [ItemsGrid] 元件到 visual designer 中的頁面底部。
  2. 在此步驟中會提示您指定用於 ItemsGrid 元件中的項目來源。

    EnterpriseItems Bean 代表要在格線中顯示的報表集合。您必須建立一個新的 EnterpriseItems Bean,並將其繫結至 ItemsGrid 元件。

  3. 按一下 [新增]
  4. 然後會提示您選擇一個 Identity Bean。EnterpriseItems Bean 具有 identity 屬性;您必須將其初始化為 Identity Bean,以提供 Enterprise 工作階段及使用者憑證。

  5. 從清單中選擇現有的 Beanidentity
  6. 按一下 [Custom],在欄位中輸入 CrystalEnterprise.Report
  7. 這個步驟可確保格線中僅顯示 Crystal 報表。

  8. 按一下 [Finish]
  9. [項目來源] 欄位中,選取 [enterpriseItems2] (新項目來源),接著按一下 [Finish]
  10. 這個步驟會將元件加至 visual designer;您便可在其中選取該元件,並於 [Properties] 檢視內設定其屬性。

  11. 在 [Properties] 檢視中,設定 [id] 屬性為 [reportsList]


Business Objects
http://www.taiwan.businessobjects.com/
支援服務
http://www.businessobjects.com/services/support/