Custom search function in GRID does not work anymore in R-2.18.5?

17 views
Skip to first unread message

Krzysztof Socha

unread,
Nov 11, 2019, 9:42:14 AM11/11/19
to web2py-users
I have some old code that uses a custom search function in a sqlform.grid - something along the lines:

def process_filtered(sfields, keywords):
search_query = SQLFORM.build_query(sfields, keywords)
[...]
return search_query

grid = SQLFORM.grid(db.doc_scan_details, searchable=process_filtered)

It used to work fine on older versions of web2py, but when I updated to 2.18.5 it does not work anymore - i.e., the search function does not seem to be called. Why?
Reply all
Reply to author
Forward
0 new messages