Create a group with expression $F{code} Create a variable Article with expression $V{Article} + ("".equals($F{art}) ? "" : ",") + $F{art}, and initial value "". Reset variable when group start. Put a TextField $F{code} in group header, and an other TextField $V{Article} in group footer. Set band detail height to 0 pixel.