<?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: Auto-fill based on two drop-down fields in a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/57400.aspx</link><pubDate>Wed, 28 Jul 2010 07:42:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57400</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57400.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=57400</wfw:commentRss><description>&lt;p&gt;Hi Najerido!&lt;/p&gt;
&lt;p&gt;Congratulations! You have discovered the xpath preceding-sibling complexity. Search for sibling in the above search or look for Greg&amp;#39;s blogs on this that describe current() and preceding-sibling. This is probably the most popular topic on this site.&lt;/p&gt;
&lt;p&gt;Good luck. Let us know if you can&amp;#39;t find stuff after 30 minutes of search. You shouldn&amp;#39;t have any trouble, but email me if you do.&lt;/p&gt;</description></item><item><title>Auto-fill based on two drop-down fields in a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/57344.aspx</link><pubDate>Mon, 26 Jul 2010 17:16:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57344</guid><dc:creator>najerido</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57344.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=57344</wfw:commentRss><description>&lt;p&gt;I have a simple form with one repeating section of 4 fields.&amp;nbsp; The first two fields (Competency&amp;nbsp;&amp;amp; Level)&amp;nbsp;are drop-downs with a data connection to a SP list.&amp;nbsp; The last two fields (Description &amp;amp; Requirements)&amp;nbsp;I having auto-filling based on the previous two fields).&amp;nbsp; I&amp;#39;m following the steps posted on the forum dated 12-17-2008 by warrtalon and the first section works perfectly.&amp;nbsp; The problem starts when I select add another section, it carries the information from the last&amp;nbsp;two fields and it doesn&amp;#39;t change even when I select the new&amp;nbsp;Competency and Level.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My steps are:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Created&amp;nbsp;Data Connection to SP list&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Insert&amp;nbsp;a Repeating Section&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Insert a layout table within section&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Add&amp;nbsp;1st drop-down field - Competency&lt;/div&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Set the field to look up using data connection&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;li&gt;
&lt;div&gt;Add 2nd drop-down field - Level&lt;/div&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Set data connection&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Filter based on Competency&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;li&gt;
&lt;div&gt;Add 3rd field (read-only textbox)&amp;nbsp;- Description&lt;/div&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Set field value by filtering with 1 rule&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Rule = CSSCompetency equals Competency and CSSLevel equals Level&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;li&gt;
&lt;div&gt;Add&amp;nbsp;4th field (read-only textbox)&amp;nbsp;- Requirements&lt;/div&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Set field value by filtering with 1 rule&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Rule = CSSCompetency equals Competency and CSSLevel equals Level&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;div&gt;&lt;/div&gt;&lt;/ol&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The first section returns the values correctly.&amp;nbsp; It only when I try to&amp;nbsp;insert addtional section that I&amp;#39;m having problems.&amp;nbsp; Any guidance would be greatly appreciated.&lt;/p&gt;</description></item></channel></rss>