displayAs - Display Fields As Links
Displays a selected item as plain text or a link to the underlying document.
Category
basicsSyntax
displayAs="link|text|hidden"
Usage
In Design mode, click Display under Properties and look for Display column values and Show values in this column as links, or click All Properties and look for displayAs under basics.Examples
This View Panel control treats the items in the first column as links to the underlying documents.<xp:viewPanel rows="30" id="viewPanel1" pageName="/xpage1.xsp">
<xp:this.facets>
<xp:pager partialRefresh="true" layout="Previous Group Next"
xp:key="headerPager" id="pager1">
</xp:pager>
</xp:this.facets>
<xp:this.data>
<xp:dominoView var="view2" viewName="main"></xp:dominoView>
</xp:this.data>
<xp:viewColumn columnName="subject" id="viewColumn1" displayAs="link">
<xp:viewColumnHeader value="subject" id="viewColumnHeader1"></xp:viewColumnHeader>
</xp:viewColumn>
<xp:viewColumn columnName="fruit" id="viewColumn2">
<xp:viewColumnHeader value="fruit" id="viewColumnHeader2"></xp:viewColumnHeader>
</xp:viewColumn>
</xp:viewPanel>