Il 26/11/14 10:32, Yebach ha scritto:
>
> Hello
>
> I have a table and a SQLFORM.grid in my view. In SQLFORM.grid I show
> list of active workers and in my table I show all inactive workers. I
> am not using a SQLFROM for both since showing two results in double
> forms after edit/view click
>
> In my table of inactive workers I have a button activate which would
> activate a worker and consequently  move him/her into SQLFORM.grid. 
> Any suggestions what would be the most web2py way to do it?
>
> Thank you
> -- 
> 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]
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout.
I woud use two grid with different query of the same db table that
collects all warkers (active anche inactive) the first one will show the
active warker and the other one will show the inactive ones. Then I'd
prepare a view with two components using the LOAD and helper adding some
function buttons to the grid that run the update of the record and
reload the two components with the new query results. Is it enough clear?

    M.

-- 
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