Issue 306: Sub Report feature in Jmesa
Status:  Fixed
Owner: ----
Closed:  Mar 2011
Reported by vidhya.a...@gmail.com, Mar 7, 2011
Hello,

I have been using Jmesa tables successfully for a while now.
Needless to say, the clients are happy with it too.

I was wondering if Jmesa tables can be customized to include sub report feature.
Some thing like 
For each state :
            City1    Data1
            City2    Data2
......

In order to incorporate sub reports we are forced to use Jasper Reports. The clients would love it to be in Jmesa.

Thanks.
Mar 8, 2011
Project Member #1 jeff.johnston.mn@gmail.com
With JMesa you can write custom views and custom cell editors. That should get you most of what you need. The tougher thing would be if you want to be able to filter and sort the sub report data...although you can swap out the filter and sort routines as well.

For the custom view check out this tutorial. 

https://code.google.com/p/jmesa/wiki/CustomViewTotalsTutorial

You should also check out the HtmlView and HtmlSnippets source to better understand what you need to do to customize the view.

If you have been using JMesa for awhile you have probably already written a few custom cell editors already...but let me know if you need pointers for that.

Probably the only real limitation of JMesa is that it works best with rows and columns that are lined up in a perfect table. It is not really meant to have data span rows and columns and still have the filter and sort make sense. And really the key is have it make sense with the filter and sort, because with a custom view you can pretty much do anything.

-Jeff Johnston

What I would recommend is take a day and just play around with the API and see if JMesa makes sense for what you need.




Mar 15, 2011
Project Member #2 jeff.johnston.mn@gmail.com
(No comment was entered for this change.)
Status: Fixed
Mar 15, 2011
#3 vidhya.a...@gmail.com
I havent got around trying this thing as I have been pulled into something else.

Will implement this sometime in future and let you know.

Thanks.