Jake,

Did you ever get this to work ? Reason being I think I have the same 
problem.


On Sunday, April 21, 2013 9:47:59 AM UTC-5, Jake Lowen wrote:
>
> In a normal grid the orderby descending works just fine:
>
> grid = SQLFORM.grid(db.meetings,
>         orderby=~db.meetings.meeting_date,
>     )
>
> But I can't get the parent table of a smart group to sort the same way:
>
> grid = SQLFORM.smartgrid(db.meetings,
>         linked_tables=['meeting_docs'],
>         orderby=dict(parent=~db.meetings.meeting_date, child=None),
>     )
>
> What is the correct syntax to descent sort the parent table in a smartgrid?
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to