# Grouping items, with subsummary

**URL:** <https://forum.servoy.com/t/grouping-items-with-subsummary/6574>\
**Category:** Classic Servoy\
**Created:** [October 12, 2006, 8:18am UTC](https://forum.servoy.com/t/grouping-items-with-subsummary/6574 "2006-10-12T08:18:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![adriand](https://avatars.discourse-cdn.com/v4/letter/a/7993a0/32.png) [@adriand](https://forum.servoy.com/u/adriand)\
**Post date:** [October 12, 2006, 8:18am UTC](https://forum.servoy.com/t/grouping-items-with-subsummary/6574/1 "2006-10-12T08:18:59Z")

</div>

Hello everyone,

I would like to ask for your opinion about how something should be done in Servoy.

Here is the situation: i have a table with groups and a table with items related 1-m. Also the items table has some columns and calculations that I want to show.

What I want is a form (listview) in which all the items are displayed grouped by groups, with subtotals after each group and with a grand total at the end. Also there are fields that should be editable, so this excludes a read-only (html) report.

What do you think, did you encounter something like this? What would be the correct aproach?

Thanks,  
Adrian

---

<div class="post-metadata">

**Author:** ![bcusick](https://avatars.discourse-cdn.com/v4/letter/b/ed8c4c/32.png) [@bcusick](https://forum.servoy.com/u/bcusick)\
**Post date:** [October 12, 2006, 3:34pm UTC](https://forum.servoy.com/t/grouping-items-with-subsummary/6574/2 "2006-10-12T15:34:09Z")

</div>

Hi Adrian,

You should do this in HTML, because you can’t show the subtotals without print preview.

---

<div class="post-metadata">

**Author:** ![adriand](https://avatars.discourse-cdn.com/v4/letter/a/7993a0/32.png) [@adriand](https://forum.servoy.com/u/adriand)\
**Post date:** [October 12, 2006, 6:47pm UTC](https://forum.servoy.com/t/grouping-items-with-subsummary/6574/3 "2006-10-12T18:47:42Z")

</div>

Hi Bob,

First of all, thanks for your answer.

I want the fields of my table to be editable, so I don’t see how html can be a solution. Something like a DataGrid is what I’m following, but with groups and subtotals after each group.

Best,  
Adrian

---

<div class="post-metadata">

**Author:** ![adriand](https://avatars.discourse-cdn.com/v4/letter/a/7993a0/32.png) [@adriand](https://forum.servoy.com/u/adriand)\
**Post date:** [October 13, 2006, 12:32pm UTC](https://forum.servoy.com/t/grouping-items-with-subsummary/6574/4 "2006-10-13T12:32:22Z")

</div>

Hi again,

I was thinking of some methods of achieveing my list-view, did not manage so far still wanted to share.

A trailing subsummary on a sorted foundset seems very good, just that the subsummary is not visible but in print-preview (please correct me if I’m wrong) and also I think I can display in the subsummary just some basic aggregates (also I hope I’m wrong ![:)]( "Smile") )

Well, I’m still looking… some extravagant ideas come to my mind… really isn’t there a way to do it in Servoy?

Best,  
Adrian
