<?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: Look up data from sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/100995.aspx</link><pubDate>Tue, 03 Feb 2015 17:19:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100995</guid><dc:creator>davedmonds</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100995.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=100995</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi, I did that too, turns out there was a hidden rule sitting in the form load section that was confusing a field change rule. My bad sorry. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks a lot.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Dave &amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Look up data from sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/100994.aspx</link><pubDate>Tue, 03 Feb 2015 16:56:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100994</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100994.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=100994</wfw:commentRss><description>&lt;p&gt;I removed the submitter manually from this one:&lt;/p&gt;
&lt;p&gt;xdXDocument:GetDOM(&amp;quot;Mileage return data&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW[d:kxwq = xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/my:SharePointListItem_RW/my:kxwq][count(xdXDocument:GetDOM(&amp;quot;Mileage return data&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW[d:kxwq = xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/my:SharePointListItem_RW/my:kxwq])]/d:o7i7&lt;/p&gt;</description></item><item><title>Re: Look up data from sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/100992.aspx</link><pubDate>Tue, 03 Feb 2015 16:49:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100992</guid><dc:creator>davedmonds</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100992.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=100992</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi, we have a change to make!! sorry. I want to remove the matching of the driver name and only validate on registration number if possible. I tried to edit your xpath code but it messed up some rules on other fields.&lt;/p&gt;&lt;p&gt;Could you explain how I can edit this xpath to remove the driver matching?&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Look up data from sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/100972.aspx</link><pubDate>Mon, 02 Feb 2015 16:40:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100972</guid><dc:creator>davedmonds</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100972.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=100972</wfw:commentRss><description>&lt;p&gt;Hi, all working!!&lt;/p&gt;&lt;p&gt;Many thanks for your support and great help.&lt;/p&gt;&lt;p&gt;Kind Regards&lt;/p&gt;&lt;p&gt;Dave&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Look up data from sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/100970.aspx</link><pubDate>Mon, 02 Feb 2015 16:24:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100970</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100970.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=100970</wfw:commentRss><description>&lt;p&gt;Oh euw. I forgot a browser form won&amp;#39;t support last. Let&amp;#39;s try with a count of the rows.... Are you using query fields to only return the rows you need? If so, we may not need the filter on submitter and kxwq.&lt;/p&gt;
&lt;p&gt;xdXDocument:GetDOM(&amp;quot;Mileage return data&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW[(d:submitter = xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/my:SharePointListItem_RW/my:Driver0/pc:Person/pc:DisplayName) and (d:kxwq = xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/my:SharePointListItem_RW/my:kxwq)][count(xdXDocument:GetDOM(&amp;quot;Mileage return data&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW[(d:submitter = xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/my:SharePointListItem_RW/my:Driver0/pc:Person/pc:DisplayName) and (d:kxwq = xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/my:SharePointListItem_RW/my:kxwq)])]&amp;nbsp;/d:o7i7&lt;/p&gt;</description></item><item><title>Re: Look up data from sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/100969.aspx</link><pubDate>Mon, 02 Feb 2015 15:58:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100969</guid><dc:creator>davedmonds</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100969.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=100969</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Look up data from sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/100968.aspx</link><pubDate>Mon, 02 Feb 2015 15:53:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100968</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100968.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=100968</wfw:commentRss><description>&lt;p&gt;Try this:&lt;/p&gt;
&lt;p&gt;xdXDocument:GetDOM(&amp;quot;Mileage return data&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW[(d:submitter = xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/my:SharePointListItem_RW/my:Driver0/pc:Person/pc:DisplayName) and (d:kxwq = xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/my:SharePointListItem_RW/my:kxwq)][last()]&amp;nbsp;/d:o7i7&lt;/p&gt;
&lt;p&gt;And if you get a syntax error when you verify, let me know what it says (you can attach a screenshot under the Options tab in a reply)&lt;/p&gt;</description></item><item><title>Re: Look up data from sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/100967.aspx</link><pubDate>Mon, 02 Feb 2015 15:45:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100967</guid><dc:creator>davedmonds</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100967.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=100967</wfw:commentRss><description>&lt;p&gt;Here you go&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;xdXDocument:GetDOM(&amp;quot;Mileage return data&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:o7i7[(../d:submitter = xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/my:SharePointListItem_RW/my:Driver0/pc:Person/pc:DisplayName) and (../d:kxwq = xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/my:SharePointListItem_RW/my:kxwq)]&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;It has 2 step verification using Driver name and Registration number.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Dave &amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Look up data from sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/100966.aspx</link><pubDate>Mon, 02 Feb 2015 15:39:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100966</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100966.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=100966</wfw:commentRss><description>&lt;p&gt;What is the error you are getting? Can you select the edit XPath checkbox in the formula editor and paste it in a reply?&lt;/p&gt;</description></item><item><title>Re: Look up data from sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/100963.aspx</link><pubDate>Mon, 02 Feb 2015 09:57:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100963</guid><dc:creator>davedmonds</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100963.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=100963</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi, I am all set up until the [last()] function, It keeps evaluating to an error. Can you give me an example of how to insert it please?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Dave&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Look up data from sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/100961.aspx</link><pubDate>Mon, 02 Feb 2015 07:49:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100961</guid><dc:creator>davedmonds</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100961.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=100961</wfw:commentRss><description>&lt;p&gt;Hi, thanks for this, I will give it a go. Just so I know, would it be an applicable method for 2 step data validation. As some drivers use more than one vehicle, it will be necessary to match not only the username but also the registration number.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Dave&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Look up data from sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/100958.aspx</link><pubDate>Fri, 30 Jan 2015 22:43:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100958</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100958.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=100958</wfw:commentRss><description>&lt;p&gt;Hi -&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s see. I think what I would try is:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Create a data connection in the form to the same list the form submits to.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Make sure the form submits the userName() to a field - like, I&amp;#39;d add a field called &amp;quot;Submitter&amp;quot; and then on form load, if submitter is blank, set it to userName().&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select whatever you use to identify the driver (maybe name if that is unique) as one of the columns - it would be great if you had their user name in the list, because then you could easily get back just the items for &amp;quot;this&amp;quot; driver.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select &amp;quot;Created&amp;quot; or&amp;nbsp; &amp;quot;Modified&amp;quot; (whichever date you think will let you know if the submission is &amp;quot;most recent&amp;quot; - probably &amp;quot;Created&amp;quot;?) and be sure to sort by that field, so the data is returned date ascending&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Set the data connection to NOT query on load (this is a checkbox on the final screen of the dialog).&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;When the form loads, set the Submitter query field in the DC created in step 1, and execute the query - this should return all the rows for this submitter from oldest to newest.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;To set your field&amp;#39;s value, you&amp;#39;d select the field in the data source that has the mileage, then add a [last()] XPath filter to it&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;It sounds harder than it is - post back if you need help. :)&lt;/p&gt;</description></item><item><title>Look up data from sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/100954.aspx</link><pubDate>Fri, 30 Jan 2015 11:52:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100954</guid><dc:creator>davedmonds</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100954.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=100954</wfw:commentRss><description>&lt;p&gt;Hi, I&amp;nbsp;have &amp;nbsp;created a sharepoint list linked to an embedded InfoPath form foro ur drivers to submit monthly mileage returns.&lt;/p&gt;&lt;p&gt;When the form loads, I would like it&amp;nbsp;to load the drivers end mileage from the previous submission and to load it for the start mileage of the new submission. I know how to perform a simple &amp;quot;vlookup&amp;quot; type action when loading a form however this will obviously be a little more complex. Does anyone have a suggestion as to how it can be achieved? I am a novice user so programatical answers may be lost on me.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks a lot.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Dave &amp;nbsp;&lt;/p&gt;</description></item></channel></rss>