Hello Everybody.
Normally i only read newsgroup-threads for solving my problems but in this case i did't find anything similar to my problem.
I have an Infopath-Form which submits itself via custom code to a document-library on a MOSS.
In the library i click on new and fill out the form and submit it - everything works great.
BUT- when i reopen the form for editing and try to submit it again i get a script error: (I try to translate it to english..)
"The Form cannot be send to the location: http://{myLibrary}. The file "{Filename}" is checked out by {domain\ME!} or it is locked for editing."
I checked on the server and the file is not checked out even because checking out is not activated on this library.
I submit the form via custom code like this:
function XDocument::OnSubmitRequest(eventObj) {
SubmitForm();
eventObj.ReturnStatus = true;
if (XDocument.Util.Match(XDocument.Solution.URI, "http://.*")) {
Application.Quit(true);
}
}
function SubmitForm(){
if (XDocument.Util.Match(XDocument.Solution.URI, "http://.*")) {
var Title = "Besuchsbericht";
if (getNodeValue("Besuchsthema") == "Telefontermin") Title= "Telefonbericht";
var FileName= Title + " bei '" + getNodeValue("Firma1") + "' (" + getNodeValue("Kundennummer") + ").xml";
XDocument.DataAdapters["Versenden (Primär)"].FileName=FileName;
XDocument.DataAdapters["Versenden (Primär)"].Submit(); // <-------------------------------------------------------------- This is where the exception occurs
}
}
Has anybody got an idea whats going on there?
Thanks , Axel