Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group elements in CRUD lists, keep everything working #68

Open
Floby opened this issue Mar 28, 2012 · 1 comment
Open

Group elements in CRUD lists, keep everything working #68

Floby opened this issue Mar 28, 2012 · 1 comment

Comments

@Floby
Copy link
Member

Floby commented Mar 28, 2012

As of now, you can easily override getSelectFiltred in your CRUD controllers to group some rows together (even though you have to reset the group statement of the request). I did it to group media by their sha1 property.

However this does break some functionnalities:

  • Actions by lot : checking a few boxes and calling an action on them only affects the first row of a group.
  • individual action : clicking on an action link only affects the first row of a group
  • Basically anything that expects only one tuple of primary key. (usually just the id property).

I already gave some thoughts to it and I couldn't find a way to do this without modifying huge parts of the code in many different places. So I'm filing this feature request instead of trying to make it a pull request because it still would be nice to have.

@takarboost
Copy link

Hi ,
I would like to group by some table fields, but i dont know how
could you help me please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants