<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Add item to numbered list box with c# or rules in Infopath?</title><link>https://www.infopathdev.com:443/forums/thread/87164.aspx</link><pubDate>Sun, 17 Feb 2013 21:17:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87164</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87164.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=87164</wfw:commentRss><description>&lt;p&gt;You don&amp;#39;t need code to do this.&lt;/p&gt;&lt;p&gt;Use Data-&amp;gt;Default Values for your list box and add a bunch of blank ones. Add a conditional formatting to only show non blank. Add a rule to your button to set the value of the last list box row to the value of the dropdown. Use the xpath Count(../preceding-sibling::my:myListBox)+1 to get the last one (Note: myListBox) should be replaced with the correct field name for the repeating group node in your data source and you should be using a repeating group with a non repeating field underneath it for your list box - do not use a repeating field in a non-repeating group).&lt;/p&gt;&lt;p&gt;If having blank rows bugs you, you can use qRules to insert one at a time when they click the button. &lt;/p&gt;</description></item><item><title>Add item to numbered list box with c# or rules in Infopath?</title><link>https://www.infopathdev.com:443/forums/thread/86953.aspx</link><pubDate>Mon, 11 Feb 2013 15:08:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86953</guid><dc:creator>aido222</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86953.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=86953</wfw:commentRss><description>Hi

I have an Infopath form with a number of drop down list boxes populated with different data. When a button is clicked I want the selected value taken from each drop down box and then added to a numbered list box. There will be a number of entrys to the numbered list box.

How do i do this? I can only set the value of the numbered list box and so delete&amp;#39;s the previous entry.

Normally in c# it would be like: &amp;quot;Listbox.Items.Add&amp;quot;, but not with infopath? 

Please help.

Thanks</description></item></channel></rss>