zhoupan / jmesa

Automatically exported from code.google.com/p/jmesa
0 stars 0 forks source link

Sub Report feature in Jmesa #306

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by vidhya.a...@gmail.com on 7 Mar 2011 at 9:41

GoogleCodeExporter commented 9 years ago
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. 

http://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.

Original comment by jeff.johnston.mn@gmail.com on 8 Mar 2011 at 7:04

GoogleCodeExporter commented 9 years ago

Original comment by jeff.johnston.mn@gmail.com on 15 Mar 2011 at 2:59

GoogleCodeExporter commented 9 years ago
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.

Original comment by vidhya.a...@gmail.com on 15 Mar 2011 at 3:01