[web2py] Re: SQLFORM.grid: using groupby disables create?

2016-12-03 Thread Scott Hunter
In my case, I have records with 2 fields, A & B; I want one record to be displayed for each distinct value of A when B is either 1 or 2, but it is possible that each will be present, so I use groupby A to avoid duplication. I tried using a smartgrid, but it exhibited the same groupby/add

[web2py] Re: SQLFORM.grid: using groupby disables create?

2016-12-03 Thread Anthony
This is tricky. Write operations (as well as the details view) are disabled with groupby because the rows in the grid do not necessarily represent individual records. Of course, that shouldn't necessarily preclude adding new records, but from a user perspective, we have to think of what is