<?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: Using external datasource with repeating table</title><link>https://www.infopathdev.com:443/forums/thread/76844.aspx</link><pubDate>Mon, 26 Mar 2012 13:37:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76844</guid><dc:creator>evevlo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76844.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=76844</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;It is xslt function that change scope to current item so result will be like current()/../nameOfFieldWithId&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Using external datasource with repeating table</title><link>https://www.infopathdev.com:443/forums/thread/51022.aspx</link><pubDate>Wed, 27 Jan 2010 09:27:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51022</guid><dc:creator>Tomas_Andrews</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51022.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=51022</wfw:commentRss><description>&lt;p&gt;Hi Jimmy&lt;/p&gt;
&lt;p&gt;Thanks for the response.&lt;/p&gt;
&lt;p&gt;I tried using the &lt;a href="mailto:../@ID"&gt;../@ID&lt;/a&gt; approach and received the error message mentioned in my previous post. I have also ensure ID is capatized.&lt;/p&gt;
&lt;p&gt;The issue i am having is determining the price field of an external datasource which is a sharepoint list. &lt;/p&gt;
&lt;p&gt;Please see below.&lt;/p&gt;
&lt;p&gt;&lt;img style="WIDTH:257px;HEIGHT:142px;" height="142" src="http://x4frpw.bay.livefilestore.com/y1p_VWk0jx_rRkCK88Fvic7CIG7qX8lKMjghzYdcGAJScCVeaEEUH-lp54C-YgF_ai5L8Ant7TfeYmjkCDI7ewIX0ncdCsDAvAH/InfoPath%20Datasource.JPG" width="257" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Tomas&lt;/p&gt;</description></item><item><title>Re: Using external datasource with repeating table</title><link>https://www.infopathdev.com:443/forums/thread/50977.aspx</link><pubDate>Mon, 25 Jan 2010 15:40:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50977</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50977.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=50977</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;You should be using something like [../@ID = current()] here, not the full path inside the brackets, but I don&amp;#39;t think that&amp;#39;s what&amp;#39;s causing this error.&amp;nbsp; Are you sure that the capitalization of ID is correct and that you&amp;#39;re using the correct namespace prefixes the whole way?&amp;nbsp; Could you attach a screenshot of your main data source?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Using external datasource with repeating table</title><link>https://www.infopathdev.com:443/forums/thread/50972.aspx</link><pubDate>Mon, 25 Jan 2010 14:06:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50972</guid><dc:creator>Tomas_Andrews</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50972.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=50972</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Im still not having much luck with this one, when using the following rule:&lt;/p&gt;
&lt;p&gt;xdXDocument:GetDOM(&amp;quot;Hardware&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:Hardware/@Price[/dfs:myFields/dfs:dataFields/dfs:Hardware/@ID=current()]&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I receive this error messabge: &lt;/p&gt;
&lt;p&gt;&amp;quot;/dfs:myFields/dfs:dataFields/dfs:Hardware/@ID&amp;quot; does not point to a valid location path of a field or group.&lt;/p&gt;
&lt;p&gt;Any suggestions?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Tomas&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Using external datasource with repeating table</title><link>https://www.infopathdev.com:443/forums/thread/50864.aspx</link><pubDate>Thu, 21 Jan 2010 15:49:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50864</guid><dc:creator>Tomas_Andrews</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50864.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=50864</wfw:commentRss><description>&lt;p&gt;thanks again from the promot response.&lt;/p&gt;
&lt;p&gt;I am not too sure how to filter the secondary data source using = current.&lt;/p&gt;
&lt;p&gt;here is what i am doing:&lt;/p&gt;
&lt;p&gt;rule:&lt;/p&gt;
&lt;p&gt;action: set a fields value&lt;/p&gt;
&lt;p&gt;filed: form price&lt;/p&gt;
&lt;p&gt;value: (from insert field or group button)--&amp;gt;datasource--&amp;gt;secondary sharepoint datasource--&amp;gt;price,&lt;/p&gt;
&lt;p&gt;when i click on filter data i can only enter conditions such as &amp;quot;is equal to&amp;quot; &amp;quot;is not equal to&amp;quot; etc.&lt;/p&gt;
&lt;p&gt;From looking on the web it would appeat i have to edit the Xpath, is this right or do you know another way?&lt;/p&gt;
&lt;p&gt;Hope this makes sense.&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;Tomas&lt;/p&gt;</description></item><item><title>Re: Using external datasource with repeating table</title><link>https://www.infopathdev.com:443/forums/thread/50856.aspx</link><pubDate>Thu, 21 Jan 2010 14:58:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50856</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50856.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=50856</wfw:commentRss><description>&lt;p&gt;Are you filtering in the rule? It&amp;#39;ll be something like this...&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Set a field&amp;#39;s value: price (from the form) =&amp;nbsp; price (from the list) filtered such that itemname (from the list) = current()&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Using external datasource with repeating table</title><link>https://www.infopathdev.com:443/forums/thread/50853.aspx</link><pubDate>Thu, 21 Jan 2010 14:50:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50853</guid><dc:creator>Tomas_Andrews</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50853.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=50853</wfw:commentRss><description>&lt;p&gt;Ok, have just discovered that ever item i select is returning the first items price.&lt;/p&gt;
&lt;p&gt;i am using the following rule&lt;/p&gt;
&lt;p&gt;set fields value (price) to sharepoint list item field price.&lt;/p&gt;
&lt;p&gt;I know i am doing something wrong but can figure out what!&lt;/p&gt;
&lt;p&gt;Any help would be greatly appreciated!!!&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;Tomas&lt;/p&gt;</description></item><item><title>Re: Using external datasource with repeating table</title><link>https://www.infopathdev.com:443/forums/thread/50851.aspx</link><pubDate>Thu, 21 Jan 2010 14:31:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50851</guid><dc:creator>Tomas_Andrews</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50851.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=50851</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Thanks for the response.&lt;/p&gt;
&lt;p&gt;I have actually deleted the initial table and started agian since posting this thread.&lt;/p&gt;
&lt;p&gt;Basically, i have a data connection to a sharepoint list which contains the following:&lt;/p&gt;
&lt;p&gt;ID&amp;nbsp;&amp;nbsp; Product&amp;nbsp;&amp;nbsp; Price&lt;/p&gt;
&lt;p&gt;I added a repeating table to the form with 2 columns.&lt;/p&gt;
&lt;p&gt;i have changed the first column from a text box to a drop down list, and configured the list box entries to lookup values from the sharepoint list data source.&lt;/p&gt;
&lt;p&gt;I want the user to be able to select the product, which will automatically update the second column with the price.&lt;/p&gt;
&lt;p&gt;Im not too sure i am going about this the right way.&lt;/p&gt;
&lt;p&gt;when i tried current() it returned an invalid argument exception error.&lt;/p&gt;
&lt;p&gt;Thanks for your help.&lt;/p&gt;
&lt;p&gt;Tomas&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Using external datasource with repeating table</title><link>https://www.infopathdev.com:443/forums/thread/50848.aspx</link><pubDate>Thu, 21 Jan 2010 13:41:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50848</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50848.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=50848</wfw:commentRss><description>&lt;p&gt;Hi Tomas,&lt;/p&gt;&lt;p&gt;I believe the trick lies in the rules. You&amp;#39;ll need to use &lt;b&gt;&lt;i&gt;current()&lt;/i&gt;&lt;/b&gt; to make sure that you&amp;#39;re using the correct value (i.e. the current row).&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Now, I don&amp;#39;t know the exact formulation of your rule, but see if this helps. If it doesn&amp;#39;t help, can you provide more info on the rule itself so we can look at it?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Using external datasource with repeating table</title><link>https://www.infopathdev.com:443/forums/thread/50842.aspx</link><pubDate>Thu, 21 Jan 2010 12:35:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50842</guid><dc:creator>Tomas_Andrews</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50842.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=50842</wfw:commentRss><description>&lt;p&gt;Hi All&lt;/p&gt;
&lt;p&gt;I am trying to create a repeating table with an external sharepoint data source.&lt;/p&gt;
&lt;p&gt;here is my scenario:&lt;/p&gt;
&lt;p&gt;User is able to select a product from a list, when the list item is selected the price of the item is displayed in the next column.&lt;/p&gt;
&lt;p&gt;I want the user to be able to add multiple items to the form so i have used a repeating list, however, when i try to set the price to the data connection using a rule on the first row of the repeating table the same price is used for each additional product.&lt;/p&gt;
&lt;p&gt;Can you please explain how i achieve this?&lt;/p&gt;
&lt;p&gt;product 1&amp;nbsp;&amp;nbsp;&amp;nbsp; Cost1&lt;/p&gt;
&lt;p&gt;Product 2&amp;nbsp;&amp;nbsp;&amp;nbsp; Cost 2&lt;/p&gt;
&lt;p&gt;etc&lt;/p&gt;
&lt;p&gt;Many thanks&lt;/p&gt;
&lt;p&gt;Tomas&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>