varsha.jacob Posted July 1, 2016 Share Posted July 1, 2016 My SQL result as folllowsOrder NumOrder DateOrded ByProductColourQuantityOD1101-06-2016JohnPenBlue100OD1101-06-2016JohnPenRed150OD1101-06-2016JohnPenBlack250OD2202-06-2016SmithPenBlue50OD2202-06-2016SmithPenRed60OD2202-06-2016SmithPenBlack100OD2202-06-2016SmithShirtGreen15OD2202-06-2016SmithShirtBlack12OD2202-06-2016SmithShirtWhite13I want the table as follows in jasper report Sl No.Order NumOrder DateOrder ByProductColourQuantity1OD1101-06-2016JohnPenBlue100 Red150 Black2502OD2202-06-2016SmithPenBlue50 Red60 Black100 ShirtGreen15 Black12 White13 Varsha Link to comment Share on other sites More sharing options...
Filip C. Posted July 3, 2016 Share Posted July 3, 2016 Make sure the result set is ordered on SI No. - Order By - Product - ColourCreate 4 groups on SI No. - Order By - Product - ColourPut all your fields in the group header of ColourUncheck 'Print repeated' values for fields SI No. - Order Num - Order date - Order By - ProductIndicate 'Print when group changes'SI No. -> SI No.Order Num -> SI No.Order Date -> SI No.Order By -> Order ByProduct -> ProductThat should do the trick ... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now