<?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>InfoPath</title><link>https://www.infopathdev.com:443/forums/170.aspx</link><description>For questions on using InfoPath in Office 365</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Using current() to filter results to a specific table row (node)</title><link>https://www.infopathdev.com:443/forums/thread/103864.aspx</link><pubDate>Tue, 08 Sep 2015 21:40:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:103864</guid><dc:creator>mcharnell</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/103864.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=170&amp;PostID=103864</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;You are a genius!&amp;nbsp; Thank you so much.&lt;/p&gt;</description></item><item><title>Re: Using current() to filter results to a specific table row (node)</title><link>https://www.infopathdev.com:443/forums/thread/103862.aspx</link><pubDate>Tue, 08 Sep 2015 21:16:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:103862</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/103862.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=170&amp;PostID=103862</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I didn&amp;#39;t realize you were using a default value on GL Code instead of a rule on Expense Type. Try this for your default value:&lt;/p&gt;&lt;p&gt;xdXDocument:GetDOM(&amp;quot;Expense GLs&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:GL[../d:Company = xdXDocument:get-DOM()/my:myFields/my:Company and ../d:Title =current()/../my:Expense_type]&lt;/p&gt;</description></item><item><title>Re: Using current() to filter results to a specific table row (node)</title><link>https://www.infopathdev.com:443/forums/thread/103746.aspx</link><pubDate>Thu, 27 Aug 2015 16:21:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:103746</guid><dc:creator>mcharnell</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/103746.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=170&amp;PostID=103746</wfw:commentRss><description>&lt;p&gt;I have attached the form.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;I am trying to set the value of the field GL_Code found /my:myFields/my:Expenses_Sec/my:Expenses/my:Expense_Items/&lt;/p&gt;&lt;p&gt;The field should equal the GL field from the Expense GLs sharepoint library where the company name on the form and the company name&amp;nbsp;for the GL match, as well as where the Expense_type in the current row of the repeating table on the form matches the Title field of the item in the Expense Gls library.&lt;/p&gt;&lt;p&gt;I did try adding current() where you suggested but it needed the&amp;nbsp;whole path of the&amp;nbsp;Expense_type field for some reason so it looked like this:&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;xdXDocument:GetDOM(&amp;quot;Expense GLs&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:GL[../d:Company = xdXDocument:get-DOM()/my:myFields/my:Company and ../d:Title = current()xdXDocument:get-DOM()/my:myFields/my:Expenses_Sec/my:Expenses/my:Expense_Items/my:Expense_type]&lt;/p&gt;&lt;p&gt;..but there is a syntax error somewhere.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Using current() to filter results to a specific table row (node)</title><link>https://www.infopathdev.com:443/forums/thread/103742.aspx</link><pubDate>Thu, 27 Aug 2015 15:33:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:103742</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/103742.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=170&amp;PostID=103742</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;If the rule is on the actual expense type field, I&amp;#39;d guess:&lt;br /&gt;xdXDocument:GetDOM(&amp;quot;Expense GLs&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:GL[../d:Company = xdXDocument:get-DOM()/my:myFields/my:Company and ../d:Title = current()]&lt;/p&gt;&lt;p&gt;If the rule instead is on the Main Data Source repeating table row, I&amp;#39;d guess:&lt;br /&gt;xdXDocument:GetDOM(&amp;quot;Expense GLs&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:GL[../d:Company = xdXDocument:get-DOM()/my:myFields/my:Company and ../d:Title=current()/my:Expense_type]&amp;nbsp;&lt;/p&gt;&lt;p&gt;Feel free to attach your form under the Options tab with a hint about where to look for the logic if you&amp;#39;d like a hand.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Using current() to filter results to a specific table row (node)</title><link>https://www.infopathdev.com:443/forums/thread/103741.aspx</link><pubDate>Thu, 27 Aug 2015 15:20:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:103741</guid><dc:creator>mcharnell</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/103741.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=170&amp;PostID=103741</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Yes that is correct.&amp;nbsp; I want to select the value of the Expense Type field for the current row.&lt;/p&gt;</description></item><item><title>Re: Using current() to filter results to a specific table row (node)</title><link>https://www.infopathdev.com:443/forums/thread/103740.aspx</link><pubDate>Thu, 27 Aug 2015 15:17:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:103740</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/103740.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=170&amp;PostID=103740</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;So - you are using this expression where? On the Expense Type field? &lt;/p&gt;</description></item><item><title>Using current() to filter results to a specific table row (node)</title><link>https://www.infopathdev.com:443/forums/thread/103735.aspx</link><pubDate>Thu, 27 Aug 2015 00:23:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:103735</guid><dc:creator>mcharnell</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/103735.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=170&amp;PostID=103735</wfw:commentRss><description>Hi All,

I have recently upgraded from Infopath 2007 and Sharepoint 2007 to the 2013 versions.&lt;p&gt;

I had a repeating table where users entered a date, expense type, and cost of an expense.
The expense type came from a Sharepoint library called Expense GL&amp;#39;s.&lt;p&gt;

Previously I was able to set a 4th field called GL based on the Expense Type the user selected and the company there were from.
The old xpath code looked like this:&lt;p&gt;

xdXDocument:GetDOM(&amp;quot;Expense GLs&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:Expense_GLs/@GL[../@Company = xdXDocument:get-DOM()/my:myFields/my:Company and ../@Title = current()/../my:Expense_type]&lt;p&gt;

However I cannot get the function current() to work in the new Infopath form to filter the result to the current row (node).&lt;br /&gt;
I have tried putting current() everywhere but it won&amp;#39;t work.  Here is what I have so far.&lt;p&gt;
xdXDocument:GetDOM(&amp;quot;Expense GLs&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:GL[../d:Company = xdXDocument:get-DOM()/my:myFields/my:Company and ../d:Title = xdXDocument:get-DOM()/my:myFields/my:Expenses_Sec/my:Expenses/my:Expense_Items/my:Expense_type]&lt;p&gt;

I would expect to put current() right after the ../d:Title = but this does not work.  Any thoughts?</description></item></channel></rss>