2012-11-02 18 views
0

我的列表出現問題。其實我從數據庫選擇創建列表,我沒有得到任何問題... 但我有問題,顯示resoults。帶有特定視圖的birt顯示列表結果

這是我的名單resoult:

L.p | Type | text | description | 
------------------------------------ 
1. | Text |text1 | description 1 | 
2. | Text |text2 | description 2 | 
3. | Text |text3 | description 3 | 
4. | Image |image1| description 4 | 
5. | Image |image2| description 5 | 
6. | Video |video1| description 6 | 
7. | Video |video2| description 7 | 
8. | Video |video3| description 8 | 
9. | Video |video4| description 9 | 
------------------------------------ 

但我需要顯示此resoults這樣的:

L.p | Type | text | description | 
------------------------------------ 
1. | Text |text1 | description 1 | 
2. |  |text2 | description 2 | 
3. |  |text3 | description 3 | 
4. |  |  |    | 
5. | Image |image1| description 4 | 
6. |  |image2| description 5 | 
7. |  |  |    | 
8. | Video |video1| description 6 | 
9. |  |video2| description 7 | 
10.|  |video3| description 8 | 
11.|  |video4| description9 | 
12.|  |  |    | 
13.|  |  |    | 
14.|  |  |    | 
15.|  |  |    | 
16.|  |  |    | 
17.|  |  |    | 
18.|  |  |    | 
19.|  |  |    | 
20.|  |  |    | 
------------------------------------ 

正如你可以看到我有:1。 空行beetwen兩種不同類型的。 2.分類只在一行(第一行) 3.分鐘是20,所以當我選擇只返回10時,下一個十行是空行。但是如果我有超過20個的資料我全部展示。

我怎麼能這麼簡單?我使用birt 2.3.2和eclipse插件。

plz幫助

回答

1

選擇表,你會看到通過這個,你可以爲你喜歡你的羣結果屬性編輯器標籤

乾杯

+0

行,但它的可行添加空行,如果行num <35? –

0

爲了擺脫空的第一行,選擇在它的「類型」數據元素的單元格,設置屬性下降,在屬性編輯器的常規選項卡,細節。要獲得最少20行,最簡單的方法可能是向表格頁腳添加額外的行,並根據表中的行數隱藏/顯示它們。這裏是一個示例的鏈接,它將顯示我正在討論的將多餘行添加到頁腳的內容。

http://www.birt-exchange.org/org/devshare/designing-birt-reports/1355-extending-a-table-to-a-certain-number-of-rows-with-alternating-row-color/

0

閱讀有關BIRT DataCubes和交叉表。它們是爲了完全相同的目的。

他們的方式我會這樣做是建立一個數據立方體與X組爲L.P,類型,文本(以相同的順序)和Y措施被描述。然後用這個數據立方體建立一個交叉標籤。

相關問題