Sorry for the delay in replying.

The first step is to create a Select object, rather than an Expression. 
 Look again at the code:
subq = db(dbts.id>0).nested_select(dbts.ALL,...etc)

This creates a Select object.  The Select object implements "on".  (Table 
also implements "on", but not Expression)

I should come up with a simpler example.  This one was just grabbed 
directly out of my site so I knew it worked but i's too complex to just 
show the concept.

-- Joe



On Wednesday, February 13, 2019 at 11:22:46 AM UTC-8, Skiros wrote:
>
> Hello !
> Very interesting !!!
>
> I'm trying to reproduce this behaviour but I'm getting this error 
> "Expression object has no attribute on". What version of w2p are you using ?
>

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

Reply via email to