2016-04-15 9 views
0

ジャスパーでこのレコードを使ってこの種のレイアウトを得ることはできますか?ジャスパーの単一行に複数のバンド

私が欲しいもの、レイアウト

id | color_group | description 
1 | primary  | the first 
2 | secondary | the second 
3 | tertiary | the third 

color_table_details

color_table_id | color 
1    | red 
1    | blue 
1    | yellow 
2    | orange 
2    | violet 
2    | green 
3    | etc 

color_tableは以下の通りです。

id  color group  description   color 
1   primary   the first   red 
               blue 
               yellow 
2   secondary   the second   orange 
               violet 
               green 

答えて

1

私は、以下の溶液を用いていることを解決:

1. Added report group to the report 
2. Added new variable with type of string (var_name) 
3. On the variable expression property of the variable, 
    $V{var_name} == null || ${var_name} == "" 
    ? "1" 
    : ${var_name} + ", 1" 
4. Set the reset type of your variable to **Report** and its reset group to the report group you created at step 1 
5. Then on your report layout, edit the text field expression of your id, color group and description to the following 
    $V{var_name} == "1" 
    ? ${field_name} 
    : "" 
+0

私は、このソリューションが働くだろうと思っていなかったすごい迫力。どうもありがとう。 :) –

関連する問題