<?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: How to get access to all values of the DropDownList in the specific row of repeating table?!</title><link>https://www.infopathdev.com:443/forums/thread/49828.aspx</link><pubDate>Wed, 09 Dec 2009 20:04:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49828</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49828.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=49828</wfw:commentRss><description>&lt;p&gt;Actually, in InfoPath, we can&amp;#39;t programatically access controls -- only the data fields bound to the&amp;nbsp;control. &lt;/p&gt;
&lt;p&gt;If you want cascading dropdowns to filter correctly in a repeating table or section, your best bet would be to use a data source for those dropdowns that connects projects and sections. Are your desired values stored in a database some place? Or can you use an xml file as a secondary data connection with your projects and sections?&lt;/p&gt;</description></item><item><title>How to get access to all values of the DropDownList in the specific row of repeating table?!</title><link>https://www.infopathdev.com:443/forums/thread/49787.aspx</link><pubDate>Tue, 08 Dec 2009 13:56:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49787</guid><dc:creator>laflour</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49787.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=49787</wfw:commentRss><description>&lt;p&gt;I have a repeating table with two columns - &amp;quot;projects&amp;quot; and &amp;quot;sections&amp;quot;. In these columns I have drop-down listbox, that has a form data source. The idea is to update the &amp;quot;sectionDDL&amp;quot; control based on the project selection. &lt;/p&gt;
&lt;p&gt;Everything works fine for the first row - I access the ddl controls via DataSource and read/write new items, but I stumbler over the idea to access the control in the second row?! &lt;/p&gt;
&lt;p&gt;There are two ways I tried: &lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;I can access any rows via the MainDataSource using &amp;quot;my:myFields/my:timesheetEntries/my:item[_row-number_]/my:project&amp;quot;, but I see only the selected value of the project DDL, not the actual control. It means that I can&amp;#39;t access all items from the project dropdownlist. Can I somehow cast the control via MainDataSource?!&lt;/li&gt;
&lt;li&gt;If I access the control via DataSource[_name_], how to get access to the&amp;nbsp;control values from the second row then?!&lt;/li&gt;&lt;/ol&gt;</description></item></channel></rss>