XPage views and response docs question

In the Notes client, a view with response docs shows most columns for parent docs only, while response docs appear as a single column that spans most of the view width.

If I put a view like this on an XPage, every column shows for every doc. How can I make it so the XPage view appears like the Notes view, with response rows only having one column that spans the width of the view panel?

Subject: The view panel can be restrictive as in this case…

…where the column values are confined to the columns.

To get the data to span columns we have to try something that will be more flexible. For this try using a Data Table or a Repeat container (see example below)

Here, we can be use Repeat inside a Repeat inside a Table to get something that’ll display somethng close to what you see in Notes.

<?xml version="1.0" encoding="UTF-8"?>

<xp:view xmlns:xp=“http://www.ibm.com/xsp/core”>

<xp:this.data>

	

	<xp:dominoView var="allDocumentsTestview23"

		viewName="All Documents\testview" expandLevel="1"/>

	

</xp:this.data>









	<xp:table style="width:100.0%">

		<xp:tr>

			<xp:td style="width:100.0px">

				<xp:label value="Date:" id="label1" style="font-weight:bold;font-size:11pt"/></xp:td>

			<xp:td style="width:200px">

				<xp:label value="Topic" id="label2" style="font-size:11pt;font-weight:bold"/></xp:td>

			<xp:td>

				<xp:label value="From" id="label3" style="font-size:11pt;font-weight:bold"/></xp:td>

		</xp:tr>

		<xp:repeat id="repeat1" rows="30"

	value="#{allDocumentsTestview23}" var="coll01">

		<xp:tr>

			<xp:td>

				<xp:text escape="true" id="computedField1"

					value="#{coll01.Date}" style="color:rgb(0,128,64)"/>

				

			</xp:td>

			<xp:td>

				<xp:text escape="true" id="computedField2"

					value="#{coll01.Topic}"/>

				

			</xp:td>

			<xp:td>

				<xp:text escape="true" id="computedField3"

					value="#{coll01.From}" style="color:rgb(128,0,255)"/>

				

			</xp:td>

		</xp:tr>

		

		<xp:repeat id="repeat2" rows="30" var="coll02" >

										

												<xp:tr>

													<xp:td/>

													<xp:td colspan="2">

														

														<xp:text

															escape="true" id="computedField4"

															style="color:rgb(255,0,128);font-weight:bold">



															<xp:this.value><![CDATA[#{javascript:var sb = coll02.getItemValue("Subject");

var nm = coll02.getItemValue(“From”);

@Text(sb) + " (“+ @Name(”[CN]",nm)+ “)”

}]]></xp:this.value>

														</xp:text>

													</xp:td>

													

												</xp:tr>

											

											<xp:this.value><![CDATA[#{javascript:var rdoc = coll01.getDocument();

rdoc.getResponses()}]]></xp:this.value>

										</xp:repeat>

		</xp:repeat>

		<xp:tr>

			<xp:td style="width:100.0px"/>

			<xp:td style="width:200px"/>

			<xp:td/>

		</xp:tr>

	</xp:table>



	</xp:view>

Subject: linking in the repeat

Once you set yo the response docs to display nicely with the repeat within a repeat, how do you then provide a link to open the document?

In a view control, you can identify the column to display link and determine which document to open. How do you do this in the repeat?