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.
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.
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?
Thank you.