Jump to content

how to do horizontal Grouping


tobias.schoessler

Recommended Posts

Hi,

 

I have a datasource that looks something like this:

 

CODE ARTICLE

----------------------

ABC 1

ABC 2

ABC 5

DEF 2

DEF 3

 

In the report I do a grouping on the CODE

The report is supposed to look like this

 

ABC

Article 1,2,5

DEF

Article 2,3

 

Is there a way to do this without preprosessing the input data. For those comma seperated Articles I would need the grouping bands to go horizontally, is that possible? Or is there another way?

 

thanks

 

Tobias

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...