If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!
Commented on:
Sometimes you want to manage users and their membership at the same form.. this one of the possible solutions
Hosting graciously provided by:
0
davido 8 years ago
This is a great example - I've just been able to adapt it for a project management app, allowing a SQLFORM.grid of projects to link to a project details page that also includes a view of project members and project outputs.
I've got a question though: I'd like to create a similar setup to create new projects, where a user can create a project and add a set of (existing) users. The main difference is that in this slice, the user already exists so that the manage_user controller gets passed the user_id. Is there a way to adapt manage_user to get a new user_id to associate with the record being created?