[web2py] Re: how to keepvalues in SQLform.grid search form after submission

2018-03-30 Thread Shrabya Timsina
Thanks for clarifying Anthony, but I did try formargs in the ways you suggested and did not get any values kept in the form after submission. Here is my grid definition. I am using my own search_widget. Could that be part of the problem? def searchform(fields, url): family = Field("family

[web2py] Re: how to keepvalues in SQLform.grid search form after submission

2018-03-26 Thread Shrabya Timsina
Thank you Anthony. Yes, I did experiment with that argument, but there is no example of how to use it online. I tried the following: formargs=dict("keepvalues"=True) but that did not work. Could you let me know how to use this argument? This post

[web2py] how to keepvalues in SQLform.grid search form after submission

2018-03-20 Thread Shrabya Timsina
Hello, I really like the keepvalues option for the form/sqlform objects where you can pass it to their process/accepts method. I understand the grid object also has an underlying sqlform, but I do not understand how to access that in order to use its keepvalues=True option. Based on my search,