NotesXspViewEntry (JavaScript)

Represents the view entry associated with the XPage context in which the server script is running. A view entry describes a row in a view.

Usage

In a repeating control such as Repeat or Data Table, if the data source is a Domino® view, the collection name (var) property is of type NotesXspViewEntry. This object can be used in scripts in controls embedded in the repeating control to access the corresponding view row on each iteration.

Examples

This example shows the XML segment for a Repeat control where the data source is a Domino® view. An embedded Multiline Edit Box uses the collection name rowdata to return the value of the subject column for each row in the view.
<xp:repeat id="repeat1" rows="30" value="#{view1}" var="rowdata" style="width:725.0px">
	<xp:inputTextarea id="inputTextarea1"><xp:this.value><![CDATA[#{javascript:try {
		return rowdata.getColumnValue("subject") + "\n"
	} catch (e) {
		return e.toString();
	}}]]></xp:this.value></xp:inputTextarea>
</xp:repeat>