<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Selecting corresponding data into another field in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/37168.aspx</link><pubDate>Thu, 15 Jan 2009 19:37:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37168</guid><dc:creator>infogulch</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37168.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=37168</wfw:commentRss><description>Can someone help please? Do you still think this is even possible?</description></item><item><title>Re: Selecting corresponding data into another field in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/36900.aspx</link><pubDate>Sat, 10 Jan 2009 17:02:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36900</guid><dc:creator>infogulch</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36900.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=36900</wfw:commentRss><description>Sure, I&amp;#39;ll remember to post XPath when possible from now on. Here they are:

&lt;ul class="anf_list"&gt;xdXDocument:GetDOM(&amp;quot;Products&amp;quot;)/dfs:myFields/dfs:dataFields/d:IV00101/@ITEMDESC[../@ITEMNMBR = xdXDocument:get-DOM()/my:RMA/my:productsInvolved/my:prodID]&lt;/ul&gt;
&lt;ul class="anf_list"&gt;xdXDocument:GetDOM(&amp;quot;Products&amp;quot;)/dfs:myFields/dfs:dataFields/d:IV00101/@ITEMNMBR[../@ITEMDESC = xdXDocument:get-DOM()/my:RMA/my:productsInvolved/my:prodName]&lt;/ul&gt;

(Btw, I can&amp;#39;t seem to make a newline in a post on this forum, and the help isn&amp;#39;t loading for me. Could you advise me please? [the above is a list])</description></item><item><title>Re: Selecting corresponding data into another field in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/36893.aspx</link><pubDate>Sat, 10 Jan 2009 05:05:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36893</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36893.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=36893</wfw:commentRss><description>&lt;p&gt;Though it would be slightly tricky, there is a way to do what you describe.&amp;nbsp; Before I get into that, can you show us the full XPath corresponding to these lines (click the show XPath checkbox in InfoPath) as they don&amp;#39;t mean much in this state:&lt;/p&gt;
&lt;p&gt;prodID = @ITEMNMBR[@ITEMDESC = prodName]&lt;br /&gt;prodName = @ITEMDESC[@ITEMNMBR = prodID]&lt;/p&gt;</description></item><item><title>Selecting corresponding data into another field in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/36887.aspx</link><pubDate>Fri, 09 Jan 2009 22:46:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36887</guid><dc:creator>infogulch</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36887.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=36887</wfw:commentRss><description>Hi,

I have two (main) fields in a repeating table.  They are Product Number and Product Name.  Their values are taken from my sql db.

I want to keep their selections synchronized. So if someone selects a product number, it automatically fills in its corresponding name.  And vice-versa: if someone chooses a product name, the product number field should update to reflect that change.

I almost had it working. I created a rule on each control to change the value of the other field when it was changed.

This is sort of what it looked like on the Number field:

(no condition)
Action:
&amp;gt;&amp;gt;      Set a field&amp;#39;s value: prodName = @ITEMDESC[@ITEMNMBR = prodID]

And the Name field:
&amp;gt;&amp;gt;      Set a field&amp;#39;s value: prodID = @ITEMNMBR[@ITEMDESC = prodName]

It worked great. That is, until I started adding more items to the repeating table. What happens is when the 

How can I select *only the current item* to change it&amp;#39;s corresponding field?

Thanks, 

~infogulch

(I&amp;#39;m using InfoPath 2003 on Win XP SP3)</description></item></channel></rss>