victoriam0727 Posted September 27, 2010 Share Posted September 27, 2010 Hello, can anyone tell me how I can show a group in a JRTable ?I know that I can add groups in my dataset used by the JRTable, but there is not a visible space in JRTable for put the totals by groups by example like in crosstabs.I don't want to use crosstabs because this is a most complicated JR object and the columns for my table is known (not dynamic).Please help me if you have an elegant solution for printing group row in a JRTable.Thanks Link to comment Share on other sites More sharing options...
teodord Posted September 28, 2010 Share Posted September 28, 2010 Hi, Are you talking about iReport? Or are you editing JRXML manually? Thanks,Teodor Link to comment Share on other sites More sharing options...
victoriam0727 Posted October 11, 2010 Author Share Posted October 11, 2010 I am generating the JRXML file depending on different options, but ones I can find out the solution in iReport I will know how generate my jrxml file.I don't wont to use groups with styles for constructing my table because I have the solution of jrTable object but, from java doc of the jasperReports API , the groups of a table dataSet have not visible space, they are used only for calculate values. P.S. I am from Romania also and I am glad to know that you are too. Link to comment Share on other sites More sharing options...
victoriam0727 Posted October 25, 2010 Author Share Posted October 25, 2010 I want just to know if the future version of jarperReport will have a visible graphic zone for the row group in a JrTable object ? If no, what are the alternatives for my problem. Thank you and have a nice day. Link to comment Share on other sites More sharing options...
javajamesb08 Posted March 19, 2013 Share Posted March 19, 2013 Hi, I too was looking for similar feature in jasper report. The following steps guide you with another way of achieving the desired result using JrTable.1) Write a query in the report's main dataset, to fetch the list of values(grouping row values - e.g. product_category), by which to group the records.2) Create another dataset(sub dataset) that takes the grouping row value(product_category) as a parameter and fetches the needed records.3) Insert the table in the detail band, and map the grouping field value(product_category) from the field of the main dataset.4) Now design the desired header and footer(using text elements or static elements, or any other elements you want) above and below the table you inserted.Actually, the concept is to repeat the table for each grouping field, by putting the table in the detail band. Hope it helps you. 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