Readers (NotesView - JavaScript)

Read-Write. The contents of the $Readers field associated with the view.

Defined in

NotesView

Syntax

getReaders() : java.util.Vector

setReaders(reader:java.util.Vector) : void

Usage

Setting this property replaces prior values.

Set the property to null to remove all reader restrictions.

Examples

This button adds a name to $Readers, or removes all readers.
if (requestScope.query.isEmpty()) {
	view1.setReaders(null);
	requestScope.status = "$Readers emptied";
	return;
};
var readers:java.util.Vector = view1.getReaders();
readers.addElement(requestScope.query);
view1.setReaders(readers);
var newreaders = view1.getReaders().iterator();
requestScope.status = "$Readers:";
while (newreaders.hasNext()) {
	requestScope.status += "\n" + newreaders.next();
}