0

How could I write Group Expressions in iReport 3.7.1 with groups and sub groups dependencies?

My report output should be as below:

A1
B1
C1
Person 1
Person 2

A2
B2
C3
Person 3

A2
B3
C4
Person 4

C4
Person 5

NB : C is sub group of B and B is a sub group of A. B appears only when it has a new value (person 4 and person 5 have the same value B3 => B3 appears only the first time and we that person 5 has B3). I just want the group A to appear every time the group B changes, just like the case of Person 3 and Person 4, we have the same group A (A2) but B has changed from B2 to B3 => A2 should appear even if it still has the same value.

How can i make this dependency?

4

1 に答える 1

2

iReport のレポート インスペクタで、レポートの名前を右クリックします。[レポート グループの追加] をクリックします。[グループ基準] 領域の [次のレポート オブジェクトでグループ化] の下で、グループ化するフィールドを選択します。これが「A」フィールドになります。これを「B」と「C」で繰り返します。詳細バンドに、「Person」のテキスト フィールドを配置します。

クエリの ORDER BY 句が A、B、C で並べ替えられていることを確認してください。

于 2012-08-03T17:04:21.247 に答える