I am using the following as a datasource for an xpage repeat control:
var extDB = session.getDatabase("","Position.nsf");
var emailNVCollection:NotesViewEntryCollection = extDB.getView("PrincipalEmails").getAllEntries();
return emailNVCollection
I know the syntax is correct because of the answer to: Making a viewEntryCollection an objectDataSource
What I cannot figure out is how to display the values in a computed field. I have tried simple binding using expression language: rowHandle.fieldname. And several different javascript methods such as rowHandle.getColumnValue that I found via many searches. They all return various errors. With the javascript I think that the methods I have tried are not valid for NotesViewEntryCollections. The expression language method returns: Error getting property 'fieldname' from bean of type lotus.domino.local.ViewEntry.
Here is the actual source:
<xp:panel style="margin-left:10.0px;margin-top:10.0px">
<xp:repeat id="repeat1" rows="30" var="rowHandle">
<xp:this.value><![CDATA[#{javascript:var extDB = session.getDatabase("","Position.nsf");
var emailNVCollection:NotesViewEntryCollection = extDB.getView("PrincipalEmails").getAllEntries();
return emailNVCollection}]]></xp:this.value>
<xp:text escape="true" id="computedField1"
value="#{rowHandle.posd_email}">
</xp:text>
</xp:repeat></xp:panel></:view>
I think this should be simple. As usual. ---Lisa&