<?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: Drop Down List - Looking up data on Sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/38560.aspx</link><pubDate>Wed, 18 Feb 2009 13:28:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38560</guid><dc:creator>Svetoslav</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38560.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=38560</wfw:commentRss><description>&lt;p&gt;Hello, &lt;/p&gt;
&lt;p&gt;i found a solution for the problem, againa using &amp;quot;current()&amp;quot; but instead of placing it infront of the XPath, I simply replaced the XPath with the &amp;quot;current&amp;quot;. It works just fine! &lt;/p&gt;
&lt;p&gt;Svetoslav&lt;/p&gt;</description></item><item><title>Re: Drop Down List - Looking up data on Sharepoint list 19.02.2009</title><link>https://www.infopathdev.com:443/forums/thread/38554.aspx</link><pubDate>Wed, 18 Feb 2009 08:41:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38554</guid><dc:creator>Svetoslav</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38554.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=38554</wfw:commentRss><description>&lt;p&gt;Hello James, &lt;/p&gt;
&lt;p&gt;I have the same problem when retrieving a data from a sharepoint list, using a dropdown in a repeating table. My observation led to the conclusion that it is not only for the 1st item of the list, but for a specific items... since my list is bigger. I followed your solution approach and I find it suitable, but I cannot input the &amp;quot;current()&amp;quot; on the shown place-it shows error. Can anyone help?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Svetoslav &lt;/p&gt;</description></item><item><title>Re: Drop Down List - Looking up data on Sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/38553.aspx</link><pubDate>Wed, 18 Feb 2009 08:36:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38553</guid><dc:creator>Svetoslav</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38553.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=38553</wfw:commentRss><description>&lt;p&gt;Hello James, &lt;/p&gt;
&lt;p&gt;I am experiencing the same problem, when using a repeating table with a SharePoint list. I tried your solution with using current() at the place in the XPath you have shown, it shows me error. My whole work is based on this concept and&amp;nbsp;I have to overcome this problem. If anyone can help me, I will be very grateful. &lt;/p&gt;
&lt;p&gt;Thank you in advance&lt;/p&gt;
&lt;p&gt;Svetoslav &lt;/p&gt;</description></item><item><title>Re: Drop Down List - Looking up data on Sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/23949.aspx</link><pubDate>Wed, 24 Oct 2007 08:52:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23949</guid><dc:creator>wyerarch</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23949.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=23949</wfw:commentRss><description>&lt;p&gt;Hi Everyone,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Looks like the following works:&lt;/p&gt;
&lt;p&gt;xdXDocument:GetDOM(&amp;quot;Price Software&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:Price_Software/@Cost[../@Item = current()/../my:Software_Name]&lt;/p&gt;
&lt;p&gt;James.&lt;/p&gt;</description></item><item><title>Drop Down List - Looking up data on Sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/23947.aspx</link><pubDate>Wed, 24 Oct 2007 08:03:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23947</guid><dc:creator>wyerarch</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23947.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=23947</wfw:commentRss><description>&lt;p&gt;Dear All,&lt;/p&gt;
&lt;p&gt;I have recently been asked to assist a colleague on implementing some InfoPath forms, that use Sharepoint lists as there source of data.&lt;/p&gt;
&lt;p&gt;The form I am implementing, is to list software required to be installed on PCs. We have a list on a sharepoint site, where these are stored, for example:&lt;/p&gt;
&lt;p&gt;Item&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Cost&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ongoing Costs&lt;/p&gt;
&lt;p&gt;Paint shop pro&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; £65&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;£32&lt;/p&gt;
&lt;p&gt;Ms Project&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; £95&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; £70&lt;/p&gt;
&lt;p&gt;Adobe Acrobat&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; £32&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; £22&lt;/p&gt;
&lt;p&gt;I have a repeating table, which contains a combo box, bound to this table to retrieve the &amp;quot;Item&amp;quot; field. On each row is also two text boxes I am using for debugging purpose.&lt;/p&gt;
&lt;p&gt;The combo box works fine, lists the &amp;quot;Item&amp;quot;s, and allows multiple &amp;quot;item&amp;quot;s to be selected, by adding new rows to the repeating table.&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;am using (whether it be right, or wrong, I don&amp;#39;t know - please advise!) a rule attached to the combo box to look up the price of that item, and I am using my two text boxes to debug these prices. The rule I am using is:&lt;/p&gt;
&lt;p&gt;Set a fields&amp;#39; value: txtTempSWCost = @Cost[@Item = Software_Name]&lt;/p&gt;
&lt;p&gt;Where @Item is the &amp;quot;Item&amp;quot; field in the sharepoint list, @Cost is the &amp;quot;Cost&amp;quot; field in the sharepoint list and Software_Name is the name of the combo box that I am selecting.&lt;/p&gt;
&lt;p&gt;The problem I have, is that if I select &amp;quot;Paint Shop Pro&amp;quot; first, it returns the correct value of £65, but if I add a new row to the table, and choose, say &amp;quot;MS Project&amp;quot;, that too comes back as £65. The really confusing part is that if I select as my first row &amp;quot;Adobe Acrobat&amp;quot;, then any subsequent rows work fine - it is almost as if that the first row returns back all the data from the list UP TO the value selected, so if I choose &amp;quot;Paint Shop Pro&amp;quot;, I only get that row from the list, but if I choose &amp;quot;Adobe Acrobat&amp;quot; I get returned all the rows.&lt;/p&gt;
&lt;p&gt;The XPath for this, if it helps is:&lt;/p&gt;
&lt;p&gt;xdXDocument:GetDOM(&amp;quot;Price Software&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:Price_Software/@Cost[../@Item = xdXDocument:get-DOM()/my:myFields/my:SR_new_hardware/my:group68/my:group69/my:Software_Name]&lt;/p&gt;
&lt;p&gt;I have read that the XPath method current() can be used to return the current item, I have tried it everywhere after the &lt;a href="mailto:../@item"&gt;../@item&lt;/a&gt; = part, and I get formula errors everytime!&lt;/p&gt;
&lt;p&gt;I hope this makes sense, and someone can help, or advise an alternative way of looking up data from a sharepoint list for each drop down lit in a repeating table.&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;James.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;PS: I am using Infopath 2003.&lt;/p&gt;</description></item></channel></rss>