<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How to Populate Dropdown list in a Repeating table programmatically?</title><link>https://www.infopathdev.com:443/forums/thread/37600.aspx</link><pubDate>Fri, 23 Jan 2009 16:11:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37600</guid><dc:creator>dipesh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37600.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=37600</wfw:commentRss><description>&lt;p&gt;i have a repeting section with drop down containg XML datasource.&lt;br /&gt;user can select list of data from drop down and accordingly to text boxes&lt;br /&gt;are filled with that drop down values.&lt;/p&gt;
&lt;p&gt;but as this is in repeting section.&lt;br /&gt;it is failed after no of rows are added.&lt;/p&gt;
&lt;p&gt;it behaves differently for filling data in last row first i have to click &lt;br /&gt;on first row&amp;#39;s drop down then it will i think postback the form, then i click&lt;br /&gt;on last row&amp;#39;s drop down then it will fill values in last row&amp;#39;s textboxes.&lt;/p&gt;
&lt;p&gt;so on second click on drop down it will fill data from drop down after first&lt;br /&gt;row in repeting it behave like this.&lt;/p&gt;
&lt;p&gt;please advise..&lt;/p&gt;</description></item><item><title>Re: How to Populate Dropdown list in a Repeating table programmatically?</title><link>https://www.infopathdev.com:443/forums/thread/36292.aspx</link><pubDate>Sat, 27 Dec 2008 08:32:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36292</guid><dc:creator>sujaza</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36292.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=36292</wfw:commentRss><description>&lt;p&gt;I was able to achive this after some googling.:)&lt;/p&gt;
&lt;p&gt;I used the StringBuilder to set the xml nodes for repeating table and added the rows using &lt;/p&gt;
&lt;p&gt;AppendChild(). The drop down will look up values from the secondary data connection still. Once you use add the AppendChild the dropdown s default value will be set from the secondary connection itself. User can edit the values later on.&lt;/p&gt;</description></item><item><title>Re: How to Populate Dropdown list in a Repeating table programmatically?</title><link>https://www.infopathdev.com:443/forums/thread/36282.aspx</link><pubDate>Fri, 26 Dec 2008 05:30:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36282</guid><dc:creator>sujaza</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36282.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=36282</wfw:commentRss><description>&lt;p&gt;Jimmy Thanks for your response!!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The dropdown control can have additional options as well which can be entered by the user in a sharepoint list.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thnx&lt;/p&gt;
&lt;p&gt;Suja&lt;/p&gt;</description></item><item><title>Re: How to Populate Dropdown list in a Repeating table programmatically?</title><link>https://www.infopathdev.com:443/forums/thread/36280.aspx</link><pubDate>Fri, 26 Dec 2008 05:23:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36280</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36280.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=36280</wfw:commentRss><description>&lt;p&gt;Will the dropdown control always have just the three possible values Yes, No, and N/A?&amp;nbsp; If so, just bind it to a node in the same repeating section as FirstName and LastName and&amp;nbsp;enter the values, Yes, No, and N/A in the dropdown&amp;#39;s properties.&amp;nbsp; No need to populate its items&amp;nbsp;from a secondary data source.&lt;/p&gt;</description></item><item><title>Re: How to Populate Dropdown list in a Repeating table programmatically?</title><link>https://www.infopathdev.com:443/forums/thread/36279.aspx</link><pubDate>Fri, 26 Dec 2008 05:15:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36279</guid><dc:creator>sujaza</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36279.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=36279</wfw:commentRss><description>&lt;p&gt;Thank you Swathi for your reply.&lt;/p&gt;
&lt;p&gt;will you be able to explain how to set the Xml document values and bind to dropdown?&lt;/p&gt;
&lt;p&gt;My list item rows for the repeating table are like this,&lt;/p&gt;
&lt;p&gt;FirstName&amp;nbsp; LastName&amp;nbsp; Constraint&lt;/p&gt;
&lt;p&gt;Suja&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ZV&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes&lt;/p&gt;
&lt;p&gt;Swathi&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; P&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;N/A&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here FirstName and LastName are text boxes and Constraint is a dropdown list with predefined set of values Yes,No,N/A.&amp;nbsp;These rows should appear in the repeating table with &lt;em&gt;Constaint&lt;/em&gt; column set accordingly in an editable mode.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;From this&amp;nbsp;I understand that I have to set the&amp;nbsp;list item values in an Xml document and use&amp;nbsp; that to populate the dropdown.So fat I have seen that, if i use SetValue mathod it will add a duplicate right in side my dropdown ie, the data from the secondary data connection plus the one&amp;nbsp;I set[becomes a duplicate)??&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to Populate Dropdown list in a Repeating table programmatically?</title><link>https://www.infopathdev.com:443/forums/thread/36277.aspx</link><pubDate>Fri, 26 Dec 2008 04:58:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36277</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36277.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=36277</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Use an xml file and put the predefined set of values in that xml. Use this xml file as the external data source to get the data in the drop down. When you open the form and after getting the sharepoint list add those values in to the xml file. So that the predefined values and the sharepoint list items both will be shown in the drop down. You can set the default value using the following codeline.&lt;/p&gt;
&lt;p&gt;thisXDocument.DOM.selectSingleNode(&amp;quot;xpath of your field&amp;quot;).text = &amp;quot;default value&amp;quot;;&lt;/p&gt;</description></item><item><title>How to Populate Dropdown list in a Repeating table programmatically?</title><link>https://www.infopathdev.com:443/forums/thread/36276.aspx</link><pubDate>Fri, 26 Dec 2008 04:05:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36276</guid><dc:creator>sujaza</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36276.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=36276</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I have a repeating table with several Textbox controls and one dropdown list box control. I need to populate the repeating table from a sharepoint list in such a way that the dropdown list has a predefined set of values from another list with one value set as default.&lt;/p&gt;
&lt;p&gt;For eg: I have a list with items Yes,No,N/A and when the form is rendered in browser, the repeating table should have a set of rows with the dropdown set to say, &lt;em&gt;No&lt;/em&gt; as default. The default value to be set for each dropdown may vary based on the list item.&lt;/p&gt;
&lt;p&gt;The repeating table&amp;nbsp; controls should be editable&amp;nbsp;including the dropdown control.&lt;/p&gt;
&lt;p&gt;Can anyone help me in achieving this ??&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;SujaZa&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>