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 / November 2004

Tip: Looking for answers? Try searching our database.

Removing an item from a listbox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
NewGuy25 - 30 Nov 2004 15:03 GMT
I have a list box that uses a value for display with an underlying id number.
I can remove an item in the list using code by editing the data object that
acts as the source for that list box. (using
parentNode.removeChild(listItemNode); ).  When I do this, the entry for that
item is replaced by the underying ID number for that item until the user
selects another entry in the list (at which time the deleted entry disappears
completely).  My question is, how do I get the list to refresh automatically
so that the deleted entry disappears completely as soon as the deletion is
done?
Michelle - 30 Nov 2004 17:43 GMT
Set the text value of the node the list is bound to to an empty string.  The
reason the id is still showing is because the value still exists in the node
until the user selects a different value.

> I have a list box that uses a value for display with an underlying id number.
>  I can remove an item in the list using code by editing the data object that
[quoted text clipped - 5 lines]
> so that the deleted entry disappears completely as soon as the deletion is
> done?
 
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.