Jump to content
We've recently updated our Privacy Statement, available here ×

How can I arrange my sql result in jasper report in below mentioned format


varsha.jacob

Recommended Posts

My SQL result as folllows

Order NumOrder DateOrded ByProductColourQuantity
OD1101-06-2016JohnPenBlue100
OD1101-06-2016JohnPenRed150
OD1101-06-2016JohnPenBlack250
OD2202-06-2016SmithPenBlue50
OD2202-06-2016SmithPenRed60
OD2202-06-2016SmithPenBlack100
OD2202-06-2016SmithShirtGreen15
OD2202-06-2016SmithShirtBlack12
OD2202-06-2016SmithShirtWhite13

I want the table as follows in jasper report

 

Sl No.Order NumOrder DateOrder ByProductColourQuantity
1OD1101-06-2016JohnPenBlue100
     Red150
     Black250
2OD2202-06-2016SmithPenBlue50
     Red60
     Black100
    ShirtGreen15
     Black12
     White13

 

 

Varsha

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Make sure the result set is ordered on SI No. - Order By - Product - Colour

Create 4  groups on SI No. - Order By - Product - Colour

Put all your fields in the group header of Colour

Uncheck 'Print repeated' values for fields SI No. - Order Num - Order date - Order By - Product

Indicate 'Print when group changes'

SI No. -> SI No.

Order Num -> SI No.

Order Date -> SI No.

Order By -> Order By

Product -> Product

That should do the trick ...

 

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...