I'm having a problem with saving a value to a field (either new one or existing one) to a current document which I'm selecting:
var selectedIDs = getComponent("viewPanel").getSelectedIds();
var doc:NotesDocument = database.getDocumentByID(selectedIDs[0]);
doc.replaceItemValue("Parentid","TEST VALUE");
doc.save;
When I use the replaceItemValue on a new document it works ok, but this is an existing mail document which I'm trying to stamp with a value (it will be ParentID -to assign it to another document) and it simply doesn't want to work
Any sugestions ? :)