<?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: Find out which string out of a sharepoint column contains the largest number</title><link>https://www.infopathdev.com:443/forums/thread/96330.aspx</link><pubDate>Wed, 05 Mar 2014 22:16:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:96330</guid><dc:creator>Doreen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/96330.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=96330</wfw:commentRss><description>&lt;p&gt;UPDATE: I ran into an issue with&amp;nbsp;step 8 of Patrick&amp;#39;s steps.&amp;nbsp; I recently realized this numbering was not working correctly in a form I created when I tried to replicate these steps in a new form. My former form numbering appeared to&amp;nbsp;be working&amp;nbsp;only because the default view is being &lt;em&gt;sorted by ID in descending&lt;/em&gt; order.&amp;nbsp; According to Patrick, this method is supposed to select the &lt;em&gt;active&lt;/em&gt; form being submitted which naturally would be the&amp;nbsp;next&amp;nbsp;max&amp;nbsp;ID&amp;nbsp;(but it should not pick the physical&amp;nbsp;top&amp;nbsp;ID in the list) and therefore it shouldn&amp;#39;t matter what the View&amp;#39;s sort order is.&amp;nbsp; To correct this, a&amp;nbsp;clarification should be inserted after step 8:&lt;/p&gt;&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;

&amp;quot;&lt;/font&gt;&lt;span style="color:black;font-size:12pt;mso-themecolor:text1;"&gt;&lt;span style="mso-list:Ignore;"&gt;8.&lt;span style="font-size-adjust:none;font-stretch:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:12pt;"&gt;Add another action that sets the ID in your main data source
equal to the ID column returned from the data section of your FormQuery
secondary data source - that&amp;#39;s the current max ID.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;strong&gt;Clarification:&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;span style="color:black;font-size:12pt;mso-themecolor:text1;"&gt;&lt;span style="mso-list:Ignore;"&gt;8.1&lt;span style="font-size-adjust:none;font-stretch:normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color:black;font-size:12pt;mso-themecolor:text1;"&gt;Filter on @ID from
secondary source FormQuery.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;Step 8&amp;nbsp;Add Action should look similar to this:&amp;nbsp; S&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color:black;mso-themecolor:text1;"&gt;&lt;font size="3"&gt;et a field’s value: LibID = @ID[@key = key]&lt;/font&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;

p.s. Maybe that&amp;#39;s what you mean in step 8, but it obviously was not clear to me so it may not be clear to others. HTH.&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Find out which string out of a sharepoint column contains the largest number</title><link>https://www.infopathdev.com:443/forums/thread/92650.aspx</link><pubDate>Sun, 01 Sep 2013 22:33:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92650</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92650.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=92650</wfw:commentRss><description>&lt;p&gt;&lt;a href="http://www.youtube.com/watch?v=LcxYwwIL5zQ"&gt;http://www.youtube.com/watch?v=LcxYwwIL5zQ&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Find out which string out of a sharepoint column contains the largest number</title><link>https://www.infopathdev.com:443/forums/thread/92538.aspx</link><pubDate>Mon, 26 Aug 2013 22:52:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92538</guid><dc:creator>Doreen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92538.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=92538</wfw:commentRss><description>&lt;p&gt;Thanks, I tried your suggestion, with default view grouped and it still fails to find next highest ID,&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; Trying this actually created a problem for me  which I didn&amp;#39;t realize when I first posted this remark.  It caused the step: &amp;#39;&lt;em&gt;@key = key&amp;#39;&lt;/em&gt; to fail  with error message: &lt;em&gt;&amp;quot;parameter not applied&lt;/em&gt;&amp;quot;.  I thought I&amp;#39;d done something wrong&amp;nbsp;and didn&amp;#39;t correlate that the problem started when I ticked that checkbox you suggested until this morning.&amp;nbsp;I left it&amp;nbsp;checked&amp;nbsp;after my test thinking it harmless (was too focus on the grouping of SharePoint view being the cause).&amp;nbsp; Now that I&amp;#39;ve&amp;nbsp; deselected &amp;quot;Include data for the active form only&amp;quot; rules are able to retreive @ID (aka @Key)&amp;nbsp;again. Phew.&lt;/p&gt;</description></item><item><title>Re: Find out which string out of a sharepoint column contains the largest number</title><link>https://www.infopathdev.com:443/forums/thread/92446.aspx</link><pubDate>Sun, 25 Aug 2013 00:04:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92446</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92446.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=92446</wfw:commentRss><description>&lt;p&gt;Thanks HTH for posting and sorry to hear that you had to wade through that swamp.&lt;/p&gt;
&lt;p&gt;When setting up the query on SharePoint 2010, there is a checkbox for returning just the active form only (see picture below). I wonder if that provides a workaround. &lt;/p&gt;
&lt;p&gt;Another idea is to simply use&amp;nbsp;DBXL&amp;#39;s Query SharePoint command, which can be passed a view. It&amp;#39;s much faster than ShP anyway and&amp;nbsp;handles more complex filtering.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Find out which string out of a sharepoint column contains the largest number</title><link>https://www.infopathdev.com:443/forums/thread/92445.aspx</link><pubDate>Fri, 23 Aug 2013 21:54:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92445</guid><dc:creator>Doreen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92445.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=92445</wfw:commentRss><description>&lt;p&gt;I just wanted to share this tidbit to help others avoid my mistake -&amp;nbsp;&lt;strong&gt;this doesn&amp;#39;t work if you are querying a default view that is grouped&lt;/strong&gt;.&amp;nbsp; It took me a couple hours to realize why I was returning the same ID for every&amp;nbsp;item&amp;nbsp;added.&amp;nbsp; I erroneously&amp;nbsp;got the bright idea&amp;nbsp; to group my&amp;nbsp;default view&amp;nbsp;(in this case, All Documents)....it broke the query for the next ID.&lt;/p&gt;&lt;p&gt;HTH&lt;/p&gt;</description></item><item><title>Re: Find out which string out of a sharepoint column contains the largest number</title><link>https://www.infopathdev.com:443/forums/thread/91512.aspx</link><pubDate>Sun, 21 Jul 2013 00:14:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91512</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91512.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=91512</wfw:commentRss><description>&lt;p&gt;Hey Bro-grammer,&lt;/p&gt;
&lt;p&gt;This questions comes up a lot and there are numerous posts on using the max(ID) xpath function, but it doesn&amp;#39;t work well when there are permission restrictions on views or people submitting at the same time.&lt;/p&gt;
&lt;p&gt;If you are using an InfoPath form, I recommend:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Create a field in your form called &amp;quot;key&amp;quot; and make it a promoted property (file-&amp;gt;form info-&amp;gt;promoted props)&lt;/li&gt;
&lt;li&gt;Publish your form to the library so that it gets the new promoted prop&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;
&lt;div&gt;Add a retrieve data connection to your form that queries the SharePoint library where it is being submitted, call this &amp;quot;FormQuery&amp;quot;; make sure you include the &amp;quot;key&amp;quot; column&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;
&lt;div&gt;Create a rule on your submit button called &amp;quot;SubmitWithUniqueID&amp;quot; that has an initial action that sets the value of key equal to the xpath now() function (e.g. 2013-07-20T17:08)&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Add an action to the submit button after that to submit the form to your library (if you don&amp;#39;t already have one)&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Add another action that sets the key field in the secondary FormQuery data source&amp;#39;s query parameters to the value of key in the main data source&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Add another action that queries the FormQuery data connection - this will return the form info you just submitted&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Add another action that sets the ID in your main data source equal to the ID column returned from the data section of your FormQuery secondary data source - that&amp;#39;s the current max ID&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Add another action that submits your form with this new ID set&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Close your form&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;That&amp;#39;s it. &lt;/p&gt;</description></item><item><title>Find out which string out of a sharepoint column contains the largest number</title><link>https://www.infopathdev.com:443/forums/thread/91506.aspx</link><pubDate>Fri, 19 Jul 2013 22:44:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91506</guid><dc:creator>Brogrammer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91506.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=91506</wfw:commentRss><description>I have a sharepoint 2010 list that contains strings that were concatenated with numbers. The ID column was used (I didn&amp;#39;t develop this) and now there are issues since the ID Column somehow changed when the site was migrated, so it needs to be replaced with something else. 

Is there a way using a formula that I can query sharepoint and somehow pull the largest number from a string on a list? I have a translate function working, but it doesn&amp;#39;t seem to be able to find the max one, it just translates the first item on the list.</description></item></channel></rss>