This topic is locked

subtotal

10/16/2008 6:37:57 AM
PHPRunner General questions
G
garethp authorDevClub member

Hi
Can't work out how to do this so need some help I am afraid!!
On a list page I have the record sorted by activity_id. I would like to add a heading for each adtivity_id group and a subtotal of the activity_value field. Something like...
group 1

1 dave £10

1 pete £20

group 1 total £30

group 2


2 tom £30

2 Ian £40

group 2 total £70

grand total £100

I can group and total on the sql editor but then all the records don't show as well.
Hope you can help - thanks
Gareth

J
Jane 10/16/2008

Gareth ,
it looks like simple report.

Create report for this table on the Datasource tables tab and edit SQL query for this report.

G
garethp authorDevClub member 10/16/2008

Jane
I see what you are saying - the only problem is I want to be able to edit the record from this list screen.
Thanks
Gareth