The Multiple File Uploader works like a charm, while creating a new document, but when I try to add a file when editing an existing document, the file is attached, but I got an error afterwards:
Script-Interpreterfehler, Zeile=106, Spalte=26: [TypeError] Beim Aufrufen der Methode NotesDocument ist ein Fehler aufgetreten. copyAllItems(lotus.domino.local.Document, boolean)
null
at [/xpFileUploads.jss].moveUploadedFiles(com.ibm.xsp.model.domino.wrapped.DominoDocument@4eea4eea,Attachments)
104:
105: //copy all files from the upload document to the target document
-> 106: docFiles.copyAllItems( docTo_Backend , true);
107:
108: //save the backend document
...
Caused by: NotesException: Can't copy a document's items to itself
The code for the save button:
document1.replaceItemValue("Log", addLog(document1.getItemValueArray("Log"),context.getUser().getCommonName() +" saved"))
document1.save();
moveUploadedFiles(document1, "Attachments")
I've also tried : moveUploadedFiles(currentDocument, "Attachments") with the same result
viewScope.newDoc is set in the queryNewDocument as described.
Any ideas ?
thx
Thomas