<?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: Reading and Writing a Single Value each time an InfoPath Form is Opened and Saved.</title><link>https://www.infopathdev.com:443/forums/thread/62252.aspx</link><pubDate>Mon, 13 Dec 2010 16:22:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62252</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62252.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=62252</wfw:commentRss><description>&lt;p&gt;Hi BissetTBD,&lt;/p&gt;
&lt;p&gt;Typically, we just set the value in the form before saving using a globally unique identifier or a derived key. Neither works for normal PO#s though since the values are not what your customer&amp;#39;s expect for an ID. I would use a key that is created using date and time in the following format: YYYYMMDDNNN where NN is a unique PO number for that day. To get that unique number, you will need to lock an XML file that you keep on the server. You can define a data connection for that XML doc.&amp;nbsp;The XML doc&amp;nbsp;just&amp;nbsp;keeps a number.&amp;nbsp;Hilary wrote a nice blog last week about how to check-out and check-in. To do this without code is quite possible since the NNN XML is a very small snipped. You can just use concat to create the XML and then submit the string to SharePoint - I believe this can be done without code, but maybe not. At any rate, the free trial of qRules can be used to do it. &lt;/p&gt;
&lt;p&gt;Good luck with your challenge!&lt;/p&gt;</description></item><item><title>Reading and Writing a Single Value each time an InfoPath Form is Opened and Saved.</title><link>https://www.infopathdev.com:443/forums/thread/62133.aspx</link><pubDate>Thu, 09 Dec 2010 18:45:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62133</guid><dc:creator>bissettbd</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62133.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=62133</wfw:commentRss><description>&lt;p&gt;I need to write a single value each time an InfoPath form is saved to a location. The next time the InfoPath form is launched, the form must be able to retrieve this value and place it in a textbox. The form is for purchase orders, and the value is the number of the last purchase order. The first time the form is opened and saved, one would be written. The second time the form is opened the value 1 would be read in and the value 2 would be saved when the form is saved.&lt;/p&gt;
&lt;p&gt;I do not want to write this value to a SharePoint List where a new record will be created each time the form is saved.&lt;/p&gt;
&lt;p&gt;I want to write a single value to the SharePoint Server (not store an array of values) and have the ability to read this value when opening a new form. What is the easiest way to do this? Can I create an xml form which is rewritten each time? How do I go about establishing a data connection to read this discrete value. Can I lock the form from being checked out after it was opened to prevent duplicate values? If so how?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;</description></item></channel></rss>