Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / April 2006

Tip: Looking for answers? Try searching our database.

Add value in list box from other list box on button click

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Vinesh - 17 Mar 2006 07:40 GMT
Hi All,

I need to move items between List Boxes.

Currently I have two listboxes on the form. The left listbox displays
the data from the database.

I am able to retrieve the selected value using
XDocument.DOM.selectSingleNode("//my:List1").text;
Now I want to push this value in the second list box by clicking on one
button & remove any selected value from second list box by clicking on
second button.

I was trying something like this to add selected item in second list
box:

XDocument.DOM.selectSingleNode("//my:List2").text) = XDocument.DOM.
selectSingleNode("//my:List1").text);

But this does not work.
Please help me to resolve this problem

Thanks & Regards,
Vinesh
S.Y.M. Wong-A-Ton - 19 Mar 2006 19:35 GMT
You need to use appendChild() or removeChild() to add or remove items from
the lists.
---
S.Y.M. Wong-A-Ton

> Hi All,
>
[quoted text clipped - 20 lines]
> Thanks & Regards,
> Vinesh
SDecou - 04 Apr 2006 21:21 GMT
Could you post some sample code on how to do this.  I have 2 listboxes named
List1 and List2.  I've searched in the discussion group and cannot find any
samples using listboxes.

> You need to use appendChild() or removeChild() to add or remove items from
> the lists.
[quoted text clipped - 25 lines]
> > Thanks & Regards,
> > Vinesh
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.