<?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: Populating Listbox using managed code.</title><link>https://www.infopathdev.com:443/forums/thread/13669.aspx</link><pubDate>Wed, 05 Oct 2005 12:47:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13669</guid><dc:creator>Abhishek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13669.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13669</wfw:commentRss><description>Thank you very much to both Greg and Agni for your kind help.</description></item><item><title>Re: Populating Listbox using managed code.</title><link>https://www.infopathdev.com:443/forums/thread/13668.aspx</link><pubDate>Fri, 30 Sep 2005 16:05:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13668</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13668.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13668</wfw:commentRss><description>There are two ways to populate a list box:&lt;br /&gt;&lt;br /&gt;1. Use the InfoPath Designer to point your list box to a list of nodes from which it will populate.&lt;br /&gt;&lt;br /&gt;2. Use code to populate your list box.&lt;br /&gt;&lt;br /&gt;Populate a Drop-Down List Box via Code&lt;br /&gt;You should look at:&lt;br /&lt;a target="_blank" href=http://www.infopathdev.com/howto/tutorials/default.aspx?i=987250af134b4ced85cbddc7db724202&gt;http://www.infopathdev.com/howto/tutorials/default.aspx?i=987250af134b4ced85cbddc7db724202&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;and&lt;br /&gt;&lt;br /&gt;Populate a Drop-Down List Box via a Secondary Data Source&lt;br /&lt;a target="_blank" href=http://www.infopathdev.com/howto/tutorials/default.aspx?i=7f693c75c5c94604b01bdfd3a1edaedc&gt;http://www.infopathdev.com/howto/tutorials/default.aspx?i=7f693c75c5c94604b01bdfd3a1edaedc&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If you are using the Designer to populate your list box from a repeating list of nodes, then to add a new item to your list, you need to add a new node to the list of nodes.&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]&lt;br /&gt;InfoPath Dev</description></item><item><title>Re: Populating Listbox using managed code.</title><link>https://www.infopathdev.com:443/forums/thread/13667.aspx</link><pubDate>Thu, 29 Sep 2005 06:27:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13667</guid><dc:creator>Abhishek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13667.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13667</wfw:commentRss><description>I still dint understand u,when u tell me to insert values into the XML to which my list box is bound. &lt;br /&gt;&lt;br /&gt;Do u mean to say that I have to &lt;br /&gt;1)"Look up values in the form's data source"(in the Listbox Properties dialog) and bind the listbox to a repeating group &lt;br /&gt;2)Populate the repeating group fields with values using managed code so that my listbox gets updated automatically.&lt;br /&gt;&lt;br /&gt;If so,then I need to know the syntax as to how I can access the individual rows/items of the repeating group becoz I need to use a loop to populate it.&lt;br /&gt;Thanks in advance,&lt;br /&gt;Regards&lt;br /&gt;Abhishek</description></item><item><title>Re: Populating Listbox using managed code.</title><link>https://www.infopathdev.com:443/forums/thread/13666.aspx</link><pubDate>Wed, 28 Sep 2005 15:06:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13666</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13666.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13666</wfw:commentRss><description>Hi Abhishek,&lt;br /&gt;You need to insert the values into the xml to which your listbox is bound. &lt;br /&gt;Here it works this way, Your listbox will show all of the rows that are present in the xml. When you add rows to your xml then you are adding items to your listbox control.&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPath Dev India</description></item><item><title>Populating Listbox using managed code.</title><link>https://www.infopathdev.com:443/forums/thread/12588.aspx</link><pubDate>Wed, 28 Sep 2005 14:08:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12588</guid><dc:creator>Abhishek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12588.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12588</wfw:commentRss><description>To place a value in a textbox field,I use the following code&lt;br /&gt;thisXDocument.DOM.selectSingleNode("/my:myFields/my:field3").nodeTypedValue =.............&lt;br /&gt;&lt;br /&gt;But I need to populate a listbox with values.&lt;br /&gt;So what is the right syntax to populate values into a listbox?&lt;br /&gt;&lt;br /&gt;For example in .net,we use list1.Items.Add()&lt;br /&gt;In the similar fashion,how do u do it for a listbox in Infopath???</description></item></channel></rss>