SQLFORM.grid on page with custom request.vars

27 views
Skip to first unread message

watr

unread,
Jul 18, 2018, 7:02:46 PM7/18/18
to web2py-users
I find SQLFORM.grid search doesn't work on a page with custom request.vars. Is there a way to fix the grid so it works?

Thanks,

Leonel Câmara

unread,
Jul 18, 2018, 7:24:10 PM7/18/18
to web2py-users
What web2py version are you using?

That was supposedly fixed here: https://github.com/web2py/web2py/pull/569

watr

unread,
Jul 18, 2018, 8:01:37 PM7/18/18
to web2py-users
I'm on the latest master in Github (2018).

I am currently using the work-around below to fix the issue on all my pages, simply by putting this line in my layout.html (which all my views import):

<script>
    path = window.location.pathname;
    $(".web2py_console  ").find('form').attr("action", path);
</script>
Reply all
Reply to author
Forward
0 new messages