forumView - Forum View

Displays data as a hierarchy of forum posts.

Category

Extension Library

Syntax

<xp:forumView attributes>content</xp:forumView>
Table 1. Essential properties
Property Description
id Defaults to forumView1, forumView2, and so on.
data Binds a Domino® view to the control.
pageName Specifies the page to open when the document is clicked in the view.
removeRepeat Specifies whether a repeat stops after repeating the child controls. Only works for repeating a single child that is a naming container. Defaults to false.
repeatControls Specifies whether to create controls multiple times rather than iterating over one set of controls. Defaults to false.
value Specifies a return value (typically a collection, list, or array) for iterating over repeating child nodes of the control. Supplies data to the repeating child nodes.
Table 2. All properties (viewPanel)
Category Properties
basics attrs, binding, detailsOnClient, expandedDetail, id, loaded, pageName, partialExecute, partialRefresh, refreshId, removeRepeat, rendered, rendererType, repeatControls
data data, first, indexVar, openDocAsReadonly, rows, value, var
format collapsibleDetail, disableHideRow, showItemsFlat, summaryColumn
styling disableTheme, rowStyle, rowStyleClass, style, styleClass, themeId
Table 3. Facets
Key Description
detail Defines the detail of a post as a Forum Post object. Properties: attrs, binding, facetName, id, loaded, rendered, rendererType, disableTheme, themeId.
pagerBottom Allows insertion of pager controls such as xe:pagerDetail, xe:pagerSaveState, xe:pagerSizes, xe:pagerAddRows, and xe:pagerExpand. Properties: attrs, binding, facetName, id, loaded, rendered, rendererType, disableTheme, themeId.
pagerBottomLeft Allows insertion of pager controls such as xe:pagerDetail, xe:pagerSaveState, xe:pagerSizes, xe:pagerAddRows, and xe:pagerExpand. Properties: attrs, binding, facetName, id, loaded, rendered, rendererType, disableTheme, themeId.
pagerBottomRight Allows insertion of pager controls such as xe:pagerDetail, xe:pagerSaveState, xe:pagerSizes, xe:pagerAddRows, and xe:pagerExpand. Properties: attrs, binding, facetName, id, loaded, rendered, rendererType, disableTheme, themeId.
pagerTop Allows insertion of pager controls such as xe:pagerDetail, xe:pagerSaveState, xe:pagerSizes, xe:pagerAddRows, and xe:pagerExpand. Properties: attrs, binding, facetName, id, loaded, rendered, rendererType, disableTheme, themeId.
pagerTopLeft Allows insertion of pager controls such as xe:pagerDetail, xe:pagerSaveState, xe:pagerSizes, xe:pagerAddRows, and xe:pagerExpand. Properties: attrs, binding, facetName, id, loaded, rendered, rendererType, disableTheme, themeId.
pagerTopRight Allows insertion of pager controls such as xe:pagerDetail, xe:pagerSaveState, xe:pagerSizes, xe:pagerAddRows, and xe:pagerExpand. Properties: attrs, binding, facetName, id, loaded, rendered, rendererType, disableTheme, themeId.
summary Defines the summary column. Can alternatively be defined by the summaryColumn property. Properties: attrs, binding, facetName, id, loaded, rendered, rendererType, disableTheme, themeId.

Usage

Use this control in conjunction with the Forum Post control to display data from main and response documents in a hierarchy that looks like a forum.

Examples

This example displays documents as forum posts.
<xp:this.data>
	<xp:dominoView var="view1" viewName="AllThreads"></xp:dominoView>
</xp:this.data>
<xe:forumView rows="10" id="forumView1"
	collapsibleDetail="false" showItemsFlat="false" var="viewEntry"
	pageName="/Test_ExtLib_forumViewPostA.xsp">
	<xe:this.summaryColumn>
		<xe:viewSummaryColumn columnName="Title"
			columnTitle="Title">
		</xe:viewSummaryColumn>
	</xe:this.summaryColumn>
	<xe:this.data>
		<xp:dominoView viewName="AllThreads"
			var="dataEntry">
		</xp:dominoView>
	</xe:this.data>
	<xp:this.facets>
		<xe:pagerDetail id="pagerDetail1"
			xp:key="pagerTop" for="forumView1">
		</xe:pagerDetail>
		<xp:panel id="panel9" xp:key="detail">
			<xe:forumPost id="forumPost1">
				<xp:this.facets>
					<xp:image
						xp:key="authorAvatar" url="/xpPostRead.gif" id="image1"
						height="45" width="45">
					</xp:image>
					<xp:text
						xp:key="authorName" escape="true" id="computedField12">
						<xp:this.value><![CDATA[#{viewEntry["Author"]}]]></xp:this.value>
					</xp:text>
					<xp:text
						xp:key="authorMeta" escape="true" id="computedField13">
						<xp:this.value><![CDATA[#{viewEntry["Author"]}]]></xp:this.value>
					</xp:text>
					<xp:text escape="true"
						xp:key="postTitle" style="margin:0" id="computedField8"
						tagName="h4">
						<xp:this.value><![CDATA[#{viewEntry["Title"]}]]></xp:this.value>
					</xp:text>
					<xp:text
						xp:key="postDetails" escape="true" id="computedField7">
						<xp:this.value><![CDATA[#{viewEntry["Abstract"]}]]></xp:this.value>
					</xp:text>
					<xp:text
						xp:key="postMeta" escape="true" id="computedField11">
						<xp:this.value>
							<![CDATA[#{javascript:return "Created on "+viewEntry.getColumnValue("Date")}]]>
						</xp:this.value>
					</xp:text>
					<xp:div xp:key="postActions">
						<xp:link
							escape="true" text="Close" id="link1"
							value="/Test_ExtLib_forumView1.xsp">
						</xp:link>
					</xp:div>
				</xp:this.facets>
			</xe:forumPost>
		</xp:panel>
		<xe:pagerSaveState id="pagerSaveState1"
			xp:key="pagerBottomRight" for="forumView1">
		</xe:pagerSaveState>
		<xe:pagerSizes id="pagerSizes1"
			xp:key="pagerBottom" for="forumView1">
		</xe:pagerSizes>
		<xe:pagerAddRows id="pagerAddRows1"
			xp:key="pagerBottomLeft" for="forumView1">
		</xe:pagerAddRows>
		<xe:pagerExpand id="pagerExpand1"
			xp:key="pagerTopLeft" for="forumView1">
		</xe:pagerExpand>
	</xp:this.facets>
</xe:forumView>