<?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: Data Connection did NOT update for 2 IP form threading</title><link>https://www.infopathdev.com:443/forums/thread/101831.aspx</link><pubDate>Tue, 24 Mar 2015 01:36:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101831</guid><dc:creator>ilee1</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101831.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=101831</wfw:commentRss><description>Thanks for your response, Bre.

I found another way which is to use max(ID) + 1 
Actually my intention is to get the latest running number in the system.

At my previous post I was using old method, using SharePoint list to contain the running number and IP form will obtain the running number upon clicking a button.

the details of using &amp;#39;max(ID) + 1&amp;#39; in Data Connection is as such:
- &amp;#39;Submit Data&amp;#39;
- To a doc library on a SharePoint site
- File Name is max(ID) + 1

Now i have another problem, which is to &amp;#39;save draft&amp;#39; which allows users to save form. It is NOT &amp;#39;Save As&amp;#39;, but &amp;#39;SAVE&amp;#39; and will issue new running number.
SAVE will assign a new running number, shall update SharePoint list and shall allow users to come back again to update/save form as many times as they want, before finally submit.
The running number shall remain the same.

Here is the logic for &amp;#39;SAVE&amp;#39;:
if (new form) then running number = max(ID) + 1
else if (existing saved form) then running number = existing running number

I don&amp;#39;t seem to be able to get the running number working.

Tried this but fail:
http://www.wonderlaura.com/Lists/Posts/Post.aspx?ID=144</description></item><item><title>Re: Data Connection did NOT update for 2 IP form threading</title><link>https://www.infopathdev.com:443/forums/thread/101801.aspx</link><pubDate>Fri, 20 Mar 2015 21:43:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101801</guid><dc:creator>Bre Huston</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101801.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=101801</wfw:commentRss><description>&lt;p&gt;Hello ilee1,&lt;/p&gt;
&lt;p&gt;It sounds like this data connection is queried on first load, instead of on submit. What you&amp;#39;ll want to do is either submit the form on load and then query to get the next id, or on submit query to get the same number.&lt;/p&gt;
&lt;p&gt;In the scenario you are describing, user A and B could open the forms at different times, but if user A does not submit before user B opens the form, they will have the same NextId number. &lt;/p&gt;
&lt;p&gt;Let me know if you get stuck!&lt;br /&gt;Bre&lt;/p&gt;&lt;a name="_MailAutoSig"&gt;&lt;/a&gt;&lt;b&gt;&lt;span style="FONT-SIZE:10pt;COLOR:maroon;mso-no-proof:yes;mso-fareast-theme-font:minor-fareast;"&gt;Bre Huston | &lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:black;mso-no-proof:yes;mso-fareast-theme-font:minor-fareast;"&gt;Project Manager&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;b&gt;&lt;span style="FONT-SIZE:10pt;COLOR:maroon;mso-no-proof:yes;mso-fareast-theme-font:minor-fareast;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span&gt;&lt;/span&gt;&lt;a href="http://www.qdabra.com/" target="_blank"&gt;&lt;span&gt;&lt;b&gt;&lt;span style="FONT-SIZE:9pt;COLOR:maroon;mso-no-proof:yes;mso-fareast-theme-font:minor-fareast;"&gt;Qdabra® Software&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&lt;b&gt;&lt;span style="FONT-SIZE:9pt;COLOR:#1f497d;mso-no-proof:yes;mso-fareast-theme-font:minor-fareast;"&gt; / &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;a href="http://www.infopathdev.com/" target="_blank"&gt;&lt;span&gt;&lt;b&gt;&lt;span style="FONT-SIZE:9pt;COLOR:#7030a0;mso-no-proof:yes;mso-fareast-theme-font:minor-fareast;"&gt;InfoPathDev.com&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&lt;b&gt;&lt;span style="FONT-SIZE:9pt;COLOR:#1f497d;mso-no-proof:yes;mso-fareast-theme-font:minor-fareast;"&gt; / &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;a href="http://formsquo.com/"&gt;&lt;span&gt;&lt;b&gt;&lt;span style="FONT-SIZE:9pt;COLOR:maroon;mso-no-proof:yes;mso-fareast-theme-font:minor-fareast;"&gt;FormsQuo&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&lt;b&gt;&lt;span style="FONT-SIZE:9pt;COLOR:#1f497d;mso-no-proof:yes;mso-fareast-theme-font:minor-fareast;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;b&gt;&lt;span style="FONT-SIZE:8pt;COLOR:#5f497a;mso-no-proof:yes;mso-fareast-theme-font:minor-fareast;"&gt;Business Process Automation for Everyone&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span&gt;&lt;b&gt;&lt;span style="FONT-SIZE:8pt;COLOR:black;mso-no-proof:yes;mso-fareast-theme-font:minor-fareast;"&gt; – Streamline data gathering to turn process into knowledge.™&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span&gt;&lt;span style="COLOR:black;mso-no-proof:yes;mso-fareast-theme-font:minor-fareast;"&gt;&lt;/span&gt;&lt;/span&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Data Connection did NOT update for 2 IP form threading</title><link>https://www.infopathdev.com:443/forums/thread/101743.aspx</link><pubDate>Tue, 17 Mar 2015 15:17:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101743</guid><dc:creator>ilee1</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101743.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=101743</wfw:commentRss><description>Hi,

I have struggled with this for days and appreciate if someone can help me....

Two different users (user A and user B) are opening the same IP form and fill it up. Data connection has pulled the same field called: &amp;#39;NextID&amp;#39; from SharePoint list, say &amp;#39;NextID&amp;#39; = 5

User A has &amp;#39;NextID&amp;#39; = 5 and User B has same value too.

User A submits the form earlier than User B. Right after User A submitted, &amp;#39;NextID&amp;#39; has changed to 6 (or plus 1, according to business logic). &amp;#39;NextID&amp;#39; is meant for running number.

As User B has opened the form &amp;#39;before&amp;#39; User A submits, therefore when User B submits, his form still shows &amp;#39;NextID&amp;#39; = 5. Rightfully it&amp;#39;s supposed to be 6.

Meaning data connection is supposed to refresh or update by getting the latest value, which is 6 in this case.

&amp;#39;NextID&amp;#39; value is stored in SharePoint list and data connection gets from the SharePoint list.

What is the best method to get the information refreshed in data connection?</description></item></channel></rss>