Re: How to move selected items from one select drop down to another one in xforms on click of a button

Erik Bruchez <[email protected]> Wed, 3 Aug 2011 11:24:51 -0700
Newsgroups gmane.comp.web.xforms
Message-ID <CAAc0PEVCsPeCZ1PB5bcG9Cxn5U8R58V_5VMUCAHb6oOEFuXerQ@mail.gmail.com>
John & all,

The idea of not using insert/delete is good. We do something
similar-but-different in our Dialog Select component:

http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components/dialog-sele=
ct
https://github.com/orbeon/orbeon-forms/blob/master/src/resources-packaged/x=
bl/orbeon/dialog-select/dialog-select.xbl

Here what we do is maintain the list of selected values as separate
tokens stored in a local instance (e.g. "foo bar baz"), as this
component is not allowed to modify the instance pointed to by the
itemset.

-Erik

On Fri, Jul 8, 2011 at 4:30 PM, John Boyer <[email protected]> wrote:
> I got a bit more time to update the IBM Form that was attached to the
> previous version of this email. =A0Here is a new version that shows both =
of
> the methods working as described in my blog post:
> https://www.ibm.com/developerworks/mydeveloperworks/blogs/JohnBoyer/entry=
/moving_choices_from_one_list_to_another_in_xforms34?lang=3Den
>
>
>
> I hope these two methods help you.
>
> Cheers,
> John M. Boyer, Ph.D.
> Distinguished Engineer, IBM Forms and Smarter Web Applications
> IBM Canada Software Lab, Victoria
> E-Mail: [email protected]
>
> Blog: http://www.ibm.com/developerworks/blogs/page/JohnBoyer
> Blog RSS feed:
> http://www.ibm.com/developerworks/blogs/rss/JohnBoyer?flavor=3Drssdw
>
>
>
>
>
> From: =A0 =A0 =A0 =A0John Boyer/CanWest/IBM@IBMCA
> To: =A0 =A0 =A0 [email protected]
> Cc: =A0 =A0 =A0 [email protected]
> Date: =A0 =A0 =A0 =A007/07/2011 05:26 PM
> Subject: =A0 =A0 =A0 =A0Re: How to move selected items from one select dr=
op down to
> another one =A0in =A0xforms on click of a button
> Sent by: =A0 =A0 =A0 [email protected]
> ________________________________
>
>
> Hi,
>
> For a comprehensive answer to your question, please visit this new entry =
on
> my blog:
> https://www.ibm.com/developerworks/mydeveloperworks/blogs/JohnBoyer/entry=
/moving_choices_from_one_list_to_another_in_xforms34?lang=3Den
>
> Here is a demo IBM Form for the first of the two methods:
>
>
>
> You can either pull the XForms markup from this file and use it in anothe=
r
> XForms processor, or you can test it directly using a free trial download=
 of
> the IBM Forms Viewer from here:
> http://www.ibm.com/software/lotus/products/forms/
>
> Best regards,
> John M. Boyer, Ph.D.
> Distinguished Engineer, IBM Forms and Smarter Web Applications
> IBM Canada Software Lab, Victoria
> E-Mail: [email protected]
>
> Blog: http://www.ibm.com/developerworks/blogs/page/JohnBoyer
> Blog RSS feed:
> http://www.ibm.com/developerworks/blogs/rss/JohnBoyer?flavor=3Drssdw
>
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> Replying to:
> Hi,
>
> I have two compact list boxes if a select one or more item from right lis=
t
> box and click on << button it should move to the left box , same if i sel=
ect
> one or more items from left list box and click on >> button it should mov=
e
> items to the right list box...
>
> Thanks in advance
>
> --
> b.s.shashikiran
> [attachment "Chooser.xfdl" deleted by John Boyer/CanWest/IBM]
>