How to group rows by week

Talk about any other operations you need to implement: additions, updates etc.

Moderator: alexandrleonenko

akroll
Senior
Senior
Posts: 33
Joined: Dec 27th, '11, 08:16

How to group rows by week

Postby akroll » Dec 28th, '11, 20:14

Hello, how i can group the rows by week?
Does Apphp grid allow this feature?
Like this:
+ last week
|-> entry
|-> entry
+ the week before last
|-> entry
|-> entry

I did not found in this forum a similar thread.

administrator
Site Admin
Site Admin
Posts: 6004
Joined: Jan 7th, '09, 23:18
Contact:

Re: How to group rows by week

Postby administrator » Dec 29th, '11, 09:01

No, but you may do it in customized layouts.
Look here for example:
http://www.apphp.com/php-datagrid/examp ... 8_demo.php

Click Submodel(s): [+] link

akroll
Senior
Senior
Posts: 33
Joined: Dec 27th, '11, 08:16

Re: How to group rows by week

Postby akroll » Jan 13th, '12, 13:51

maybe a feature for the future? ;)

administrator
Site Admin
Site Admin
Posts: 6004
Joined: Jan 7th, '09, 23:18
Contact:

Re: How to group rows by week

Postby administrator » Jan 15th, '12, 08:38

Implementation of such feature requires a lot of work. Do you have any online example of how it looks, so we could understand what do mean exactly?

akroll
Senior
Senior
Posts: 33
Joined: Dec 27th, '11, 08:16

Re: How to group rows by week

Postby akroll » Jan 16th, '12, 12:26

For example: I have 14 orders (with summarize-function displayed in the title of each category) in the week from 2 January 2012 to 6 January 2012 which grouped as in "the week before last".

It would be nice when the category named as: last week, the week before last, two weeks ago and older. Like Microsoft Outlook.
Attachments
groupweek.jpg
groupweek.jpg (90.84 KiB) Viewed 1698 times

administrator
Site Admin
Site Admin
Posts: 6004
Joined: Jan 7th, '09, 23:18
Contact:

Re: How to group rows by week

Postby administrator » Jan 17th, '12, 08:45

Ok, added to our TODO list. :)
Hope we could add it in the next version.


Return to “Additional operations implementation”