<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Query list with multiple columns to return a specific value where column 1 provides key to return value in column 2</title><link>https://www.infopathdev.com:443/forums/thread/103062.aspx</link><pubDate>Tue, 30 Jun 2015 22:15:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:103062</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/103062.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=103062</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Wow - great that you were able to find the answer. SharePoint does store the IDs for lookups in lists - even though often the lookup is set to display a different field. That can make figuring out your XPath filters a little tricky. :)&lt;/p&gt;</description></item><item><title>Query list with multiple columns to return a specific value where column 1 provides key to return value in column 2</title><link>https://www.infopathdev.com:443/forums/thread/103013.aspx</link><pubDate>Sat, 27 Jun 2015 00:12:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:103013</guid><dc:creator>frnorke</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/103013.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=103013</wfw:commentRss><description>&lt;p&gt;So first of all, I apologize if this has already been answered.  I simply don&amp;#39;t know the proper lexicon to search for the correct terms but my issue is pretty simple I think.  I have an InfoPath form that has two drop downs.  Drop down &amp;#39;A&amp;#39; is tied to SP list &amp;#39;A&amp;#39;.  This is displayed in field &amp;#39;A&amp;#39;.  Drop down &amp;#39;B&amp;#39; is tied to SP list &amp;#39;B&amp;#39;, displayed in field &amp;#39;B&amp;#39;, and filtered by what is chosen in Drop down list &amp;#39;A&amp;#39;.  No problems with that.

Now the issue.  SP list &amp;#39;B&amp;#39; has multiple columns.  When the value in chosen in Drop down &amp;#39;B&amp;#39; is displayed in field &amp;#39;B&amp;#39;, I need the corresponding value in another column from SP list &amp;#39;B&amp;#39; that is in the same row as what is showing in field &amp;#39;B&amp;#39;.  For instance, if I have a list with columns 1, 2, rows 1,2, 3 when there is a match between a given value and row 1, column 1, I need to get the corresponding value in row 1, column 2.

My filtering doesn&amp;#39;t seem to be working correctly.  Is the type of list data retrieval I&amp;#39;m asking about a lookup, or something else?  I saw a mention somewhere else in this forum where this would be referred to a &amp;#39;list query with a &amp;quot;where&amp;quot; clause.  I.e. query a list where (string &amp;#39;A&amp;#39; = array[i][j]), return array[I][j+1].

I hope I explained it okay.  Can someone recommend a solution?  Thanks.

vr,
frnorke


EDIT: I figured it out using: receipe 43 from Infopath 2010 Cookbook 2.  Instead of using the values of field &amp;#39;A&amp;#39; and field &amp;#39;B&amp;#39;, the key to solving this is to use the native &amp;#39;ID&amp;#39; column in SP list &amp;#39;B&amp;#39; and filtering using that (&amp;#39;ID&amp;#39;).  Contact me if you need further clarification.
&lt;/p&gt;</description></item></channel></rss>