<?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>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Trying to populate a form field from another filtered list field</title><link>https://www.infopathdev.com:443/forums/thread/117947.aspx</link><pubDate>Fri, 22 Dec 2017 17:14:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117947</guid><dc:creator>TOE_CHEESE</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117947.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=117947</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Following up my last post...&amp;nbsp; Here is the route I eventually took.&lt;/p&gt;&lt;p&gt;I pushed the &amp;quot;Modified&amp;quot; into a calculated column as a contiguous string as =TEXT(Modified,&amp;quot;YYYYMMDDhhmm&amp;quot;).&amp;nbsp; &lt;/p&gt;&lt;p&gt;This allow me to bring the &amp;quot;strModified&amp;quot; in as a field filtered as xdMath:Max(xdXDocument:GetDOM(&amp;quot;Receive&amp;quot;)/dfs:myFields/dfs:dataFields/ns3:SharePointListItem_RW/ns3:strModified[../ns3:Group = &amp;quot;GOLD&amp;quot;]).&amp;nbsp; &lt;/p&gt;&lt;p&gt;I then used this xPath to get the most recent (last modified) total into my target field: &amp;nbsp;xdXDocument:GetDOM(&amp;quot;Receive&amp;quot;)/dfs:myFields/dfs:dataFields/ns3:SharePointListItem_RW/ns3:Target_x0020_Field[xdXDocument:get-DOM()/my:myFields/my:Totals/my:GOLDmax-modified = xdMath:Max(../ns3:strModified)]&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Trying to populate a form field from another filtered list field</title><link>https://www.infopathdev.com:443/forums/thread/117916.aspx</link><pubDate>Tue, 19 Dec 2017 18:48:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117916</guid><dc:creator>TOE_CHEESE</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117916.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=117916</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Hilary,&lt;/p&gt;&lt;p&gt;&amp;nbsp;Sorry for not posting back sooner but I&amp;#39;ve been&amp;nbsp;busy working through&amp;nbsp;so many different combinations to achieve my goal.&amp;nbsp;&amp;nbsp;I just could not get max(Modified) to return a value even without any additional filters.&amp;nbsp; I kept getting &amp;quot;NaN&amp;quot;.&amp;nbsp; &lt;/p&gt;&lt;p&gt;I went on to try concatenating the max(ID) with the Source Field which I could then successfully use max(concat_field) to get the most recent source total (concatenated).&amp;nbsp;However getting the actual source field using&amp;nbsp;the substring function becomes problematic after the ID increments from 1 to 2 then to 3 digits.&amp;nbsp; This may still be an option with some conditional rules.&lt;/p&gt;&lt;p&gt;So now I am trying to use current() to get the source field where it equals max(ID).&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Falalalala Lalalala Tis the season.&lt;/p&gt;</description></item><item><title>Re: Trying to populate a form field from another filtered list field</title><link>https://www.infopathdev.com:443/forums/thread/117875.aspx</link><pubDate>Fri, 15 Dec 2017 16:11:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117875</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117875.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=117875</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;So you always need the most recent one? I think you are getting close with your XPath attempt - but the issue is your Max function uses a relative path to the modified field which is going to only compare to the current row.... This is just a guess, and my syntax may be wrong:&lt;/p&gt;&lt;p&gt;&amp;nbsp; xdXDocument:GetDOM(&amp;quot;Receive&amp;quot;)/dfs:myFields/dfs:dataFields/ns3:SharePointListItem_RW/ns3:Source_x0020_Field[(../ns3:Group = &amp;quot;GOLD&amp;quot;)][(../ns3:Modified = xdMath:Max(../../ns3:SharePointListItem_RW/ns3:Modified))]&lt;/p&gt;</description></item><item><title>Trying to populate a form field from another filtered list field</title><link>https://www.infopathdev.com:443/forums/thread/117862.aspx</link><pubDate>Wed, 13 Dec 2017 22:29:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117862</guid><dc:creator>TOE_CHEESE</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117862.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=117862</wfw:commentRss><description>&lt;p&gt;Hi, I am building an InfoPath 2010&amp;nbsp;browser form&amp;nbsp;that has a &amp;quot;target field&amp;quot; that gets it&amp;#39;s value from a &amp;quot;source field&amp;quot;&amp;nbsp;in another list.&amp;nbsp;I have&amp;nbsp;a secondary data connection on the list and I can bring the source field value into the target field on my form.&amp;nbsp; However the source field value will change over time and I need my target field to&amp;nbsp;pull in&amp;nbsp;the most recent source field value.&amp;nbsp; I need some help to build a filter to retrieve the most recent source value where another field&amp;nbsp;equals a group name.&amp;nbsp; My thought is to use the modified date.&lt;/p&gt;&lt;p&gt;&amp;nbsp;This is what I am using to get the source field value into the target field...&amp;nbsp; xdXDocument:GetDOM(&amp;quot;Receive&amp;quot;)/dfs:myFields/dfs:dataFields/ns3:SharePointListItem_RW/ns3:Source_x0020_Field[../ns3:Group = &amp;quot;GOLD&amp;quot;]&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Here is something I&amp;#39;ve tried... xdXDocument:GetDOM(&amp;quot;Receive&amp;quot;)/dfs:myFields/dfs:dataFields/ns3:SharePointListItem_RW/ns3:Source_x0020_Field[(../ns3:Group = &amp;quot;GOLD&amp;quot;)][(../ns3:Modified = xdMath:Max(../ns3:Modified))]&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any help is appreciated.&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>