Hi Kenji,
First of all I wanted to thank you for submitting and maintaining your
web2py plugins.
However I do have one small issue with the “multiselect_widget”, which
could be due to the fact that I don’t know how to implement the plugin
properly.
The problem I’m currently facing is the fact that I don’t know how to
preselect values.
For instance, I’m trying to create a page where a user’s membership can be
rectified.
The administrator first have to select a username (based on a dropdown
from), afterwards the 2 boxes(“member of” and “Not member of”) should
display the memberships of that specific user.
And this is the point where I’m stuck.
All the groups seem to end up in the same box, and I can’t figure out how
to make the selection of “members” and “nomembers”.
And I just wanted to know that I’m not doing something wrong, and I’m not
forgetting something.
The line I currently have to create this widget is the following.
form = SQLFORM.factory(Field("Members",
type='list:reference(db.auth_group.role)',
requires=IS_IN_SET(grouplist,multiple=True), widget =rhmultiselect_widget))
--
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.