<?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>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Data connection in cascading dropdown in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/23530.aspx</link><pubDate>Mon, 08 Oct 2007 13:58:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23530</guid><dc:creator>adamrharding</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23530.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=23530</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I would probably change the data structure and then cascade it, use the current() function and set rules to blank out the second DD where first DD is changed.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;If I couldn&amp;#39;t change the data structure, you would have to look at applying the current() function in your code, but I think this might not be straightforward.&lt;/p&gt;
&lt;p&gt;I hope this helps&lt;/p&gt;
&lt;p&gt;Adam&lt;/p&gt;</description></item><item><title>Data connection in cascading dropdown in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/22888.aspx</link><pubDate>Wed, 05 Sep 2007 16:58:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22888</guid><dc:creator>Karsten Brocksieper</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22888.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=22888</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have a repeating table of dropdown&amp;nbsp;lists where the options in the second dropdown list&amp;nbsp;are dependent on the selection from the first one. The cascade is achieved just fine using an OnAfterChange script that runs a custom query on a secondary data source...&lt;br /&gt;&lt;br /&gt;var query = &amp;quot;SELECT [id],[text] FROM [datatable] WHERE [FieldA] = &amp;quot; + eventObj.Source.xml;&lt;br /&gt;XDocument.DataAdapters[&amp;#39;datatable&amp;#39;].Command = query;&lt;br /&gt;XDocument.DataAdapters[&amp;#39;datatable&amp;#39;].Query();&lt;br /&gt;&lt;br /&gt;My only problem is that, when I have more than one row in my repeating table, ALL of the second dropdown&amp;nbsp;list options are cascaded based on the most-recently selected first dropdown list option.&lt;br /&gt;&lt;br /&gt;Does anyone know of a way to &amp;quot;lock in&amp;quot; the options for all secondary dropdown lists, only allowing the options to change when the associated first dropdown list&amp;nbsp;is changed?&lt;br /&gt;&lt;br /&gt;BTW, I am running individual queries for each selection because I am working with a very large data source... it takes way too long to load the whole table once and just run filters on the data.&lt;/p&gt;
&lt;p&gt;Thank you very much for any tips...&lt;/p&gt;
&lt;p&gt;Regards, Karsten&lt;/p&gt;</description></item></channel></rss>