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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to