I believe the keys of the orderby dict should be the actual table names, not the literal keys "parent" and "child".
Anthony On Sunday, April 21, 2013 10:47:59 AM UTC-4, 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? > -- --- 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/groups/opt_out.

