The form consists in a query = db.veiculos.id>0
if user search filling any field, example 'name':
if form.vars.name:
query &= db.veiculos.name==form.vars.name
---------
and on the end, i make the select
results = db(query).select()
This forms, work great, my question is, after the search is doing, user
have the option to print an pdf, and this is a another function,
i want to pass this 'query' object to that function to generate the pdf
doc.. because on pdf funcion im will make:
cars = db(query).select()
i want the same results on pdf function as well the form function!
2016-12-07 11:51 GMT-02:00 António Ramos <[email protected]>:
> code please...
>
> 2016-12-07 13:08 GMT+00:00 Áureo Dias Neto <[email protected]>:
>
>> I have a search form, which filter the fields, I filter my query .. so
>> far so good ..
>>
>> The search works perfectly, from the results I generate a PDF, but, how
>> to pass this query from the search form to my PDF ..
>>
>> Note that PDF is generated in another function.
>>
>> Thank you!
>>
>> --
>> 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.
>>
>
> --
> 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.
>
--
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.