I think I was a little quick to write it works. The multiple select shows
but the entries won't move to the second box. So no function of the widget
at all.
How do I open up the console to check for javascript errors?

On Fri, Nov 28, 2014 at 11:55 AM, Kevin Bethke <kevin.bet...@gmail.com>
wrote:

> apparently I did something diffrent back than. Now its working.
> Thanks
>
> On Tue, Nov 25, 2014 at 6:55 PM, Leonel Câmara <leonelcam...@gmail.com>
> wrote:
>
>> 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 a topic in the
>> Google Groups "web2py-users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/web2py/_wpkQivld-Q/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

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