I have a button on a XPage that needs to update a field and save the document(s) based on the key number(s) associated with the user. The first column of the view I'm working with is sorted by a key number (e.g. 1234, 4321, etc.). How can I use SSJS to loop through the key numbers and save the backend Notes document(s)?
What I have right now
var db:NotesDatabase = sessionAsSigner.getDatabase("","Database.NSF");
var view:NotesView = db.getView("ViewName");
var keyV = new java.util.Vector();
var LookupDoc:NotesDocument = view.getDocumentByKey(keyV);
What I need to do is replace the "1234" with an array/vector of key(s) and have that update and save each document. Is this possible?
Any help is appreciated.