<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Extracting latest field in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/93984.aspx</link><pubDate>Wed, 30 Oct 2013 15:31:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93984</guid><dc:creator>nixter</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93984.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=93984</wfw:commentRss><description>&lt;p&gt;Hilary&lt;/p&gt;
&lt;p&gt;&lt;u&gt;THANK YOU!&lt;/u&gt; &lt;/p&gt;
&lt;p&gt;I tried your suggestion and got the same thing. Acting on a hunch, I added [last()] to both path indicators as follows --&amp;gt; CurrentStateGroup[last()]/CurrentStateText[last()]. In raw XPath it looks like this: ../my:CurrentStateGroup[last()]/my:CurrentStateText[last()]&lt;/p&gt;
&lt;p&gt;And - it worked. Such a simple solution to such a vexing problem. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You guys are the greatest - Kudos!&lt;/p&gt;</description></item><item><title>Re: Extracting latest field in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/93926.aspx</link><pubDate>Mon, 28 Oct 2013 14:18:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93926</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93926.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=93926</wfw:commentRss><description>&lt;p&gt;Hi&amp;nbsp; - where did you put the [last()]? Looking at your schema screenshot, I&amp;#39;d think this:&lt;/p&gt;&lt;p&gt;../my:CurrentStateGroup[last()]/my:CurrentStateText&lt;/p&gt;&lt;p&gt;would work as your default for LatestCurrentState.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Extracting latest field in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/93900.aspx</link><pubDate>Fri, 25 Oct 2013 03:53:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93900</guid><dc:creator>nixter</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93900.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=93900</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I know this has been addressed before, but for some reason the solutions I have Googled and found here or elsewhere are not working. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;PROBLEM:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;Infopath 2007 - I am trying to show the last text value fields in a repeating table used for project managers to update status on their projects on my InfoPath form.&amp;nbsp; Each form addresses a separate part of the whole project.My repeating fields are:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;CurrentStateNum (auto numbers as items are added)&lt;br /&gt;CurrentStateDate (date of entry)&lt;br /&gt;CurrentStateText (Update notes&amp;nbsp; -- this is what I am trying to extract the latest version of)&lt;br /&gt;CurrentStateFiles (attachment area for any supporting files, photos, et) &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;SOLUTION THUS FAR:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;I tried using &lt;i&gt;CurrentStateText [last()]&lt;/i&gt; and that gave me only the first text entry - no good&lt;b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;I found this online and successfully set up an auto numbering: &lt;a href="http://social.msdn.microsoft.com/Forums/sharepoint/en-US/44594b14-5034-43fd-b405-f7da5b0e537f/infopath-2010-repeating-table-extract-last-row-data?forum=sharepointcustomizationprevious"&gt;http://social.msdn.microsoft.com/Forums/sharepoint/en-US/44594b14-5034-43fd-b405-f7da5b0e537f/infopath-2010-repeating-table-extract-last-row-data?forum=sharepointcustomizationprevious&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Following the example above, I added two fields&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;i&gt;MAXCurrentStateNum &lt;/i&gt;with formula = max(CurrentStateNum) &lt;/li&gt;
&lt;li&gt;&lt;i&gt;LatestCurrentState&lt;/i&gt; with formula &lt;i&gt;CurrentStateText[CurrentStateNum = MAXCurentStateNum]&lt;/i&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;This failed with error:&amp;nbsp; &amp;quot;../my:CurrentStateGroup/my:CurrentStateGroup/my:CurrentStateNum&amp;quot; does not point to a valid location path of a field or group&lt;/p&gt;
&lt;p&gt;Basically I am trying to say, &amp;quot;Give me the CurrentStateText value in a repeating field where CurrentStateNum is the highest (max) value&amp;quot;. This &lt;u&gt;cannot&lt;/u&gt; be this convoluted or difficult... any wisdom from the masses as to what&amp;#39;s wrong? I attached a screen shot of the form and text fields with annotations.&lt;/p&gt;
&lt;p&gt;THANKS in advance for the help! &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>