This is working fine for me.
db.define_table('fruit',
Field('name'),
)
db.define_table('cocktail',
Field('fruit','list:reference fruit'),
)
from plugin_multiselect_widget import (
hmultiselect_widget, vmultiselect_widget,
rhmultiselect_widget, rvmultiselect_widget,
)
db.cocktail.fruit.requires=IS_EMPTY_OR(IS_IN_DB(db,'fruit.id','%(name)s',
multiple=True))
db.cocktail.fruit.widget = hmultiselect_widget
I just put that in the models with the plugin in the modules folder, then I
inserted some fruit and cocktails in appadmin. Everything worked correctly.
This is basically the same thing you're doing right?
Can you open the console and check for javascript errors?
--
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.