0
votes

I'd like to force saving data of NotesXSPDocument to prevent creating conflict document in case users are opening the same document. For NotesDocument, there is a option in NotesDocument.save method but not in NotesXSPDocument.save.

For instance, when clicking 'save' button, I think the next codes meets my requirement. However I have lots of custom control and fields, it is not a smart solution... Is there any other good solution?

    var doc:NotesDocument = document1.getDocument();
    doc.replaceItemValue("Field1", data1);
    doc.replaceItemValue("Field2", data2);
    doc.replaceItemValue("Field3", data3);
    .....
    doc.save(true);
1
Does adding concurrencyMode="force"on the data source help?Per Henrik Lausten
Document locking?D.Bugger
Thanks. It looks like document locking has lots of points to consider. The concurrencyMode is a good option for me.yukinko

1 Answers