<?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: Filtering external datasource in repeating table not working</title><link>https://www.infopathdev.com:443/forums/thread/104914.aspx</link><pubDate>Sun, 13 Dec 2015 15:29:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104914</guid><dc:creator>mwitt</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104914.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=104914</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Hilary, I think you got it immediately, as you initial suggestion solved my problem:-)!&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks a lot, what I did not get was&amp;nbsp;that&amp;nbsp;I needed to replace the full path.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Best regards&lt;/p&gt;&lt;p&gt;/Micke&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Filtering external datasource in repeating table not working</title><link>https://www.infopathdev.com:443/forums/thread/104904.aspx</link><pubDate>Fri, 11 Dec 2015 16:51:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104904</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104904.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=104904</wfw:commentRss><description>Sorry, I&amp;#39;m still having a hard time understanding. Did the formula I provided help? &amp;quot;current()&amp;quot; always refers to the current field. So, in a default value using the formula above, to get another field in the same group as the field we&amp;#39;ve put the default in, we use &amp;quot;current()&amp;quot; to get the current node, &amp;quot;/../&amp;quot; to move back up to the repeating group2, then &amp;quot;my:architecture&amp;quot; to select the architecture node in the same repeating group2 node as the current field.</description></item><item><title>Re: Filtering external datasource in repeating table not working</title><link>https://www.infopathdev.com:443/forums/thread/104898.aspx</link><pubDate>Fri, 11 Dec 2015 08:44:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104898</guid><dc:creator>mwitt</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104898.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=104898</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Hilary and thanks for your fast reply. I can not attach the file as it contains sensitive info, but I will try to clarify this better;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have a repeating&amp;nbsp;table, lets call it table1.&lt;/p&gt;&lt;p&gt;I table1 I have&amp;nbsp;four columns with fields, lets call them fieldA, fieldB, fieldC and&amp;nbsp;fieldD&lt;/p&gt;&lt;p&gt;Table1 data is also added as a repeating section further down in the same form, lets call it section1.&lt;/p&gt;&lt;p&gt;In section1,&amp;nbsp;fieldA, fieldB, fieldC and&amp;nbsp;fieldD is also shown.&lt;/p&gt;&lt;p&gt;In section1 I also have additional fields, tied to the same repeating data source (table1), lets call this fieldE.&lt;/p&gt;&lt;p&gt;To populate fieldE, I have an external data source in the form of a sharepoint list, lets call this list1.&lt;/p&gt;&lt;p&gt;The xpath above is the&amp;nbsp;default value logic applied to fieldE to filter out the correct value form list1 using information from fieldA &amp;amp; fieldB &amp;amp; a static text value.&lt;/p&gt;&lt;p&gt;What I need to understand is how to&amp;nbsp;reference fieldA and fieldB per row as rows and sections are added by the users.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;In the xpath below, fieldE =&amp;nbsp;&amp;nbsp;Number_x0020_of_x0020_servers&lt;/p&gt;&lt;p&gt;fieldA =&amp;nbsp;&amp;nbsp;architecture&lt;/p&gt;&lt;p&gt;fieldB =&amp;nbsp;&amp;nbsp;hw_capacity&amp;nbsp;&lt;/p&gt;&lt;p&gt;xdXDocument:GetDOM(&amp;quot;SIEM hardware&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Number_x0020_of_x0020_servers[contains(../d:Title, &amp;quot;Index&amp;quot;) and ../d:Deployment_x0020_type = current()/../my:architecture and ../d:deployment_x0020_size_x0020__x00 = current()/../my:hw_capacity]&amp;nbsp;&lt;/p&gt;&lt;p&gt;Best regards&lt;/p&gt;&lt;p&gt;/Micke&amp;nbsp;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Filtering external datasource in repeating table not working</title><link>https://www.infopathdev.com:443/forums/thread/104891.aspx</link><pubDate>Thu, 10 Dec 2015 20:04:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104891</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104891.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=104891</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;What is repeating in your main data source? group2? Where is the formula you posted being used? In a rule or as a default value? I&amp;#39;m asking because I can help you with this - but what the XPath would be depends on where it is used. If, for example, you have a field in group2 that has a default using this, it would be:&lt;/p&gt;&lt;p&gt;&amp;nbsp;xdXDocument:GetDOM(&amp;quot;SIEM hardware&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Number_x0020_of_x0020_servers[contains(../d:Title, &amp;quot;Index&amp;quot;) and ../d:Deployment_x0020_type = current()/../my:architecture and ../d:deployment_x0020_size_x0020__x00 = current()/../my:hw_capacity]&lt;/p&gt;</description></item><item><title>Filtering external datasource in repeating table not working</title><link>https://www.infopathdev.com:443/forums/thread/104889.aspx</link><pubDate>Thu, 10 Dec 2015 15:52:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104889</guid><dc:creator>mwitt</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104889.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=104889</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;&lt;p&gt;New to this forum, so I&amp;nbsp;post this in the general section and hope you can move it to the correct place.&lt;/p&gt;&lt;p&gt;I´m not a developer, but are using InfoPath 2013 to&amp;nbsp;enhance some internal business processes, but not doing any coding. I have run in to a tricky problem that I have not been able to solve, even after reading a lot of posts here and in other places.&lt;/p&gt;&lt;p&gt;I have a form where I use a repeating table with 4 different fields. The same repeating table is also inserted further down in the form as a repeating section where a lot of additional fields are used to populate detailed data.&lt;/p&gt;&lt;p&gt;In the repeating section&amp;nbsp;I have fields where I try to filter out results from a connected sharepoint list based on values in the repeating table. When&amp;nbsp;I only have one row, it works fine, but as soon as I add additional items, it seems to pick up the values from the firs row only in the filtering rules.&lt;/p&gt;&lt;p&gt;It seems that I need to use the current () function to reference the individual rows to get the filter to work on each individual repeating row/repeating section, but I cant figure out how to do this.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;This is the x-path for the filed that I want to auto-populate based on filtering of the external datasource:&lt;/p&gt;&lt;p&gt;xdXDocument:GetDOM(&amp;quot;SIEM hardware&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Number_x0020_of_x0020_servers[contains(../d:Title, &amp;quot;Index&amp;quot;) and ../d:Deployment_x0020_type = xdXDocument:get-DOM()/my:myFields/my:datacenters/my:group2/my:architecture and ../d:deployment_x0020_size_x0020__x00 = xdXDocument:get-DOM()/my:myFields/my:datacenters/my:group2/my:hw_capacity]&lt;/p&gt;&lt;p&gt;As you can see, I use three different filtering criteria&amp;#39;s to identify the correct info.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Hope&amp;nbsp;someone can help out.&lt;/p&gt;&lt;p&gt;Best regards&lt;/p&gt;&lt;p&gt;/Micke&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>