I am reading a table from another application just to perform searches. I
am using SQLFORM.grid, my problem is that i need to search for
'product_code' field that in my DAL i have mapped as ID. I have no rights
to write fields on remote DB.
/models/remote_server.py
db1.define_table('web_products',
Field('product_code','id'),
Field('product_desc','string'),
migrate=False)
/controllers/example_search.py
def index():
grid=SQLFORM.grid(db1.web_products)
return dict(grid=grid)
Which will be the right way to perform a search in that field ? Do i
explain myself correctly ?
Thanks
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/web2py/f5d90e3b-ab3c-4312-baa8-598f3925c672o%40googlegroups.com.