Hi all,
This has been a big issue that I've been having for awhile and I'm sure heaps of people have come across this same situation before.
I have read a few threads regarding this issue:
http://www.infopathdev.com/forums/p/2197/19655.aspx
http://www.infopathdev.com/forums/p/4742/18390.aspx#18390
Quite interesting but still no solution. I just want to know what you guys have been saving your InfoPath forms as - what unique name did you use?
I've tried many ways... One of which is using the SharePoint ID.
Once the form has been publish to a SharePoint library, I did a data connection back to the InfoPath form to retreive that SharePoint ID.
And using the function max(@ID) + 1 to generate the new ID number for the next form. Success! Works okay...
Problem: If the owner of the form library decides to change the default view of that form library to another view with filters/sorting etc set on the view - not all form records will be there...
and the function max(@ID) + 1 will only grab the largest ID number within that default view but not the max of the entire form library.
Any ideas on how I could solve this by like some how referencing the GUID of the Form Library instead? OR is there a better way to generate an ID number?
Thanks in advance.