it's just a matter of ordering by the parent and then the child. Once you get a resultset similar to
parent.id | parent.style | child.id | child.name 1 yellow 4 foo1 1 yellow 5 bar1 1 yellow 6 baz1 2 yellow 7 foo2 2 yellow 8 bar2 2 yellow 9 baz2 there won't be issues, right ? you'll be looping through childs in the same exact order of your nested loop. On Friday, June 12, 2015 at 9:49:02 PM UTC+2, Alex Glaros wrote: > > did you mean I only need the second query? I know it already extracts > data that query one has, but I didn't know how to iterate using only the > second one and not redundantly display the parent values. > -- 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.

