[web2py] Re: orderby clause breaking SQLFORM.smartgrid child dialogues

2015-10-17 Thread Edward Shave
Thanks Anthony, your solution worked like a charm, as usual. -- 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 sub

[web2py] Re: orderby clause breaking SQLFORM.smartgrid child dialogues

2015-10-16 Thread Anthony
Have you tried: grid = SQLFORM.smartgrid(..., orderby=dict(parent=db.parent.id)) Most arguments to smartgrid can be dictionaries with the associated table names as keys. Anthony On Friday, October 16, 2015 at 5:33:58 AM UTC-4, Edward Shave wrote: > > When I set orderby=~db.parent.id the parent