I left a few questions for you on SO. It's not quite clear what you're 
trying to do and what is going wrong. I notice a test for 
request.args[0].isdigit(). How are links to this action being generated 
such that the first arg could be a digit? Note, if the URL accessing a grid 
action includes args not associated with the grid, you need to tell the 
grid to preserve those args:

SQLFORM.grid(..., args=request.args[0:1])

The above would preserve the first two URL args, so when the grid creates 
its own links, those args will be included in the URLs before the grid 
related args. Of course, you only want to specify the args argument to the 
grid in cases where you do expect args in the requested URL. So you might 
need to specify args conditionally depending on the request.

Anthony

On Monday, July 14, 2014 8:07:00 AM UTC-4, Yebach wrote:
>
> If anyone can hellp me with this
>
> I have a page with embeded htmls. One of them should have a SQLForm.grid 
> to manage table of workers
>
> I am having difficulties because SQLForm.grid is in edit function. Besides 
> the fact that it looks awful it also does not work properly 
>
> I asked a question on stackoverflow so here is a link together with python 
> code for controller
>
> http://stackoverflow.com/questions/24648604/web2py-sqlform-grid-url
>
>
> any suggestions
>

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to