Hi Richard,
First of all, thanks for your fast reply.
And I was able to implement this plugin by changing the line below.
form2 = SQLFORM.factory(Field("Members", type=
'list:reference(db.auth_group.role)', requires=IS_IN_SET(members1,multiple=
True), widget=rhmultiselect_widget))
With
db.auth_group.role.widget = rhmultiselect_widget
db.auth_group.role.requires = [IS_IN_SET(grouplist, multiple=True)]
form2 = hmultiselect_widgetUM(db.auth_group.role, members1)
By doing this, i was able to show the "form/grid", and select the proper
values.
However, i'm still having some problems with adding some additional actions
to the "register" and "delete"-button.
Cause at this moment, the plugin just moves the string from box 'A' to box
'B' without any additional actions.
I assume this can be done by adding an URL()-call to the "onclick"-list.
But i'm not sure whether this is actualy the best approach for this. (Since
i'm not very familier with jquery).
Am i still missing something?
With kind regards,
Jacobs Dennis.
On Monday, November 24, 2014 4:01:42 PM UTC+1, Richard wrote:
> Hello Jacobs,
>
> db.table.field.default = default
>
> Don't work?
>
> Richard
>
> On Thu, Nov 20, 2014 at 9:11 AM, Dennis Jacobs <[email protected]
> <javascript:>> wrote:
>
>> 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 make sure 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.
>> The grouplist is actualy a list of the "db.auth_group.role"-field.
>> form = SQLFORM.factory(Field("Members",
>> type='list:reference(db.auth_group.role)',
>> requires=IS_IN_SET(grouplist,multiple=True), widget =rhmultiselect_widget))
>>
>> With kind regards,
>> Jacobs Dennis.
>>
>>
>> On Friday, August 26, 2011 6:35:40 PM UTC+2, kenji4569 wrote:
>>>
>>> Hi, I've just published a collection of plugins which I'd created for
>>> some web2py products (mainly cms sites) in my job:
>>>
>>> The index page:
>>> http://dev.s-cubism.com/web2py_plugins
>>>
>>> The plugins are below:
>>>
>>> [Form Widgets]
>>> Horizontal Radio Widget http://dev.s-cubism.com/plugin_hradio_widget
>>> Multiple Select Widget http://dev.s-cubism.com/
>>> plugin_multiselect_widget
>>> Suggest Widget http://dev.s-cubism.com/plugin_suggest_widget
>>> Lazy Options Widget http://dev.s-cubism.com/plugin_lazy_options_widget
>>> Anytime Widget http://dev.s-cubism.com/plugin_anytime_widget
>>> Color Widget http://dev.s-cubism.com/plugin_color_widget
>>> elRTE WYSIWYG Widget http://dev.s-cubism.com/plugin_elrte_widget
>>> Uploadify Widget http://dev.s-cubism.com/plugin_uploadify_widget
>>>
>>> [Form Customize]
>>> Solid Form http://dev.s-cubism.com/plugin_solidform
>>> Not-Empty Marker http://dev.s-cubism.com/plugin_notemptymarker
>>>
>>> [Table Customize]
>>> Solid Table http://dev.s-cubism.com/plugin_solidtable
>>> Pagenator http://dev.s-cubism.com/plugin_paginator
>>> Table Scope http://dev.s-cubism.com/plugin_tablescope
>>> Table Checkbox http://dev.s-cubism.com/plugin_tablecheckbox
>>> Table Permuter http://dev.s-cubism.com/plugin_tablepermuter
>>>
>>> You can try demos, see souces, and download plugins (MIT Licence).
>>> I'll appreciate your feedback and advises (especially for design
>>> decisions).
>>> I'll keep trying to create useful plugins and to improve them!
>>>
>> --
>> 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] <javascript:>.
>> 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 [email protected].
For more options, visit https://groups.google.com/d/optout.