<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: listbox not updating on the fly. refresh issue?</title><link>https://www.infopathdev.com:443/forums/thread/7730.aspx</link><pubDate>Wed, 28 Sep 2005 15:48:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7730</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7730.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7730</wfw:commentRss><description>Hi jeremyj,&lt;br /&gt;Welcome to the Forum!&lt;br /&gt;Did you bind your list box to "my:Claims_Listbox" to select one of the values or did you bind it to "my:Claims_Listbox" to save the selected value?&lt;br /&gt; You need to add the value to the XML which the listbox is binded to select the values.&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPath Dev India</description></item><item><title>listbox not updating on the fly. refresh issue?</title><link>https://www.infopathdev.com:443/forums/thread/4928.aspx</link><pubDate>Thu, 22 Sep 2005 15:07:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4928</guid><dc:creator>jeremyj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4928.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4928</wfw:commentRss><description>I am trying to set up my listbox control to add data entries from a textbox using an add button. The data is getting added as a new node under my listbox control, but isn't showing up in the listbox.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;        &amp;lt;InfoPathEventHandler(MatchPath:="CTRL20_5", EventType:=InfoPathEventType.OnClick)&amp;gt; _&lt;br /&gt;        Public Sub CTRL20_5_OnClick(ByVal e As DocActionEvent)&lt;br /&gt;            Dim new_claim As IXMLDOMNode, claims_list As IXMLDOMNode&lt;br /&gt;            claims_list = thisXDocument.DOM.selectSingleNode("//my:Claims_Listbox")&lt;br /&gt;            'clone previous entry in listbox for formatting purposes&lt;br /&gt;            new_claim = claims_list.lastChild.cloneNode(True)&lt;br /&gt;            'update new node text with textbox text&lt;br /&gt;            new_claim.text = thisXDocument.DOM.selectSingleNode("//my:Claim_Description").text()&lt;br /&gt;            'update new node value with textbox text&lt;br /&gt;            new_claim.nodeValue = thisXDocument.DOM.selectSingleNode("//my:Claim_Description").text()&lt;br /&gt;            'remove text from textbox&lt;br /&gt;            thisXDocument.DOM.selectSingleNode("//my:Claim_Description").text() = ""&lt;br /&gt;            'append listbox with new child&lt;br /&gt;            claims_list.appendChild(new_claim)&lt;br /&gt;            'verify that number of children increases by 1 with each entry&lt;br /&gt;            MsgBox(claims_list.childNodes.length)&lt;br /&gt;            'verify that lastchild text is in fact the text that was just entered in the textbox before adding&lt;br /&gt;            MsgBox(claims_list.lastChild.text)&lt;br /&gt;        End Sub&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;It appears that the children are getting added correctly, is there something else I need to do to get the listbox to display these additions? (obviously there is)</description></item></channel></rss>