Recursive problem... I get closer, but have a lot of difficulty figuring
out how to assembling the nested queries in the right order and the right
depth of each query...

I have been so far able to extract a flatten dict of each individually
nested query and translated them into web2py query...

But as explained above now I bang my head on my desk...

:)

Richard

On Thu, Apr 30, 2015 at 9:46 AM, Richard Vézina <ml.richard.vez...@gmail.com
> wrote:

> It could work of course, but it hurts to have to do that to just filter
> out correctly a dropdown menu... What I was doing until now was to have a
> single returning json_feed which for each dropdown required... But it not
> try, I need to create almost identical function for each particular
> dropdown to feed typeahead widget with remote data... I am padding
> smart_query() with unittest right now before give a try to make it accept
> "grouped" query...
>
> Richard
>
> On Thu, Apr 30, 2015 at 7:47 AM, Johann Spies <johann.sp...@gmail.com>
> wrote:
>
>> Will it not be easier to encapsulate your complex query in a database
>> view and run the grid on the view?
>>
>> e.g.  in the controller:
>> db.execute(create view xx as complexquery)
>>
>> db.define_table('xx',
>>                         Field1(),
>>                         Field2...
>>
>>
>>
>> Johann
>> --
>> Because experiencing your loyal love is better than life itself,
>> my lips will praise you.  (Psalm 63:3)
>>
>> --
>> 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.
>>
>
>

-- 
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