Anthony,

Would you mind to make a patch to the manual to clarify this thing?.

Actual explanation is quite obscure and i'm not sure to understand 
completely what it means:

the args argument of the grid specifies which request.args should be passed 
> along and ignored by the object



Regards.


El sábado, 1 de marzo de 2014 02:24:47 UTC+1, Anthony escribió:
>
> If the base URL for the grid includes args, you have to tell the grid to 
> preserve those args when it generates its own URLs. For example:
>
> grid = SQLFORM.grid(..., args=request.args[:2])
>
> Anthony
>
> On Friday, February 28, 2014 8:18:04 PM UTC-5, horridohobbyist wrote:
>>
>> I have a SQLFORM.grid with pagination. It's in a webpage with the 
>> following URL:
>>
>> https://mydomain.com/myapp/admin/view_client/auth_user/3
>>
>> When you go to the next page of the grid, the URL becomes:
>>
>> https://mydomain.com/myapp/admin/view_client?page=2
>>
>> However, this is patently wrong! The URL should preserve the two 
>> arguments (auth_user/3). By removing those two arguments, my app croaks.
>>
>> Is there a sensible workaround?
>>
>>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to