>
> 1) Using the commented line, the view is working but if I edit/profile, I 
> get a ticket error with: ValueError: invalid literal for long() with base 
> 10: 'edit'
> with or without the args. I cannot find why.
>

Because the grid uses URL args to determine the action being requested, you 
cannot also use URL args for other purposes without informing the grid, so 
you need to do:

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

That tells the grid to ignore the first URL arg and preserve it in any 
links it generates. 


> 2) when I use this code, I have the group_id field that show in the middle 
> column, between last and first name, and then if I edit the row and get 
> back 
> group_id get back in the first column ? How do I control the column order 
> behaviour?
>

You have created the list of fields as a Python set object (which does not 
preserve order) by using curly braces -- instead, use brackets to create a 
list, which will preserve the order.

Anthony

-- 
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/d/optout.

Reply via email to