I am using the ViewWithCategoriesAndDocument xpage to access a categorized view.
I fill in the view and application name but the view is displayed flat (both category entries and documents listed together) and clicking on an entry does not move to the next page.
Here is the code. Am I missing something obvious?
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core"
xmlns:xc="http://www.ibm.com/xsp/custom">
<!-- © Copyright IBM Corp. 2011 -->
<!-- -->
<!-- Licensed under the Apache License, Version 2.0 (the "License"); -->
<!-- you may not use this file except in compliance with the License. -->
<!-- You may obtain a copy of the License at: -->
<!-- -->
<!-- http://www.apache.org/licenses/LICENSE-2.0 -->
<!-- -->
<!-- Unless required by applicable law or agreed to in writing, software -->
<!-- distributed under the License is distributed on an "AS IS" BASIS, -->
<!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or -->
<!-- implied. See the License for the specific language governing -->
<!-- permissions and limitations under the License. -->
<!-- -->
<!-- Author: Niklas Heidloff 01/21/11 -->
<xc:mConfiguration>
</xc:mConfiguration>
<xc:mPage name="home" visible="true">
<xp:this.facets>
<xp:panel
xp:key="pageContent">
<xc:mHeader title="Vacation Request">
</xc:mHeader>
<xc:mRectangle>
<xp:this.facets>
<xp:panel xp:key="rectangleContent">
<xc:mView
viewName="NewByStatus"
databaseName="VacationRequests.nsf"
targetPageName="view"
entriesPerRequest="10"
columnNumbers="0">
</xc:mView>
</xp:panel>
</xp:this.facets>
</xc:mRectangle>
</xp:panel>
</xp:this.facets>
</xc:mPage>
<xc:mPage name="view" visible="false" isDocumentPage="true">
<xp:this.facets>
<xp:panel
xp:key="pageContent">
<xc:mHeader
title="Vacation Requests"
backPageName="home"
backTitle="Home">
</xc:mHeader>
<xc:mRectangle>
<xp:this.facets>
<xp:panel xp:key="rectangleContent">
<xc:mView
xp:key="documentContent"
viewName="NewByStatus"
databaseName="VacationRequests.nsf"
targetPageName="document"
entriesPerRequest="10"
columnNumbers="0"
useDynamicCategory="true">
</xc:mView>
</xp:panel>
</xp:this.facets>
</xc:mRectangle>
</xp:panel>
</xp:this.facets>
</xc:mPage>
<xc:mPage name="document" visible="false" isDocumentPage="true">
<xp:this.facets>
<xp:panel
xp:key="pageContent">
<xc:mHeader
title="Vacation Request"
backPageName="view"
backTitle="Back">
</xc:mHeader>
<xc:mDocumentContainer
pageName="document">
<xp:this.facets>
<xc:myDocument
xp:key="documentContent"
databaseName="VacationRequests.nsf">
</xc:myDocument>
</xp:this.facets>
</xc:mDocumentContainer>
</xp:panel>
</xp:this.facets>
</xc:mPage>
<xc:mInitialize></xc:mInitialize>
</xp:view>
<?xml version="1.0" encoding="UTF-8"?></div>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core"</div>
xmlns:xc="http://www.ibm.com/xsp/custom"></div>
<!-- © Copyright IBM Corp. 2011 --></div>
<!-- --></div>
<!-- Licensed under the Apache License, Version 2.0 (the "License"); --></div>
<!-- you may not use this file except in compliance with the License. --></div>
<!-- You may obtain a copy of the License at: --></div>
<!-- --></div>
<!-- http://www.apache.org/licenses/LICENSE-2.0 --></div>
<!-- --></div>
<!-- Unless required by applicable law or agreed to in writing, software --></div>
<!-- distributed under the License is distributed on an "AS IS" BASIS, --></div>
<!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or --></div>
<!-- implied. See the License for the specific language governing --></div>
<!-- permissions and limitations under the License. --></div>
<!-- --></div>
<!-- Author: Niklas Heidloff 01/21/11 --></div>
</div>
<xc:mConfiguration></div>
</xc:mConfiguration></div>
</div>
<xc:mPage name="home" visible="true"></div>
<xp:this.facets></div>
<xp:panel</div>
xp:key="pageContent"></div>
</div>
<xc:mHeader title="Vacation Request"></div>
</xc:mHeader></div>
</div>
<xc:mRectangle></div>
<xp:this.facets></div>
<xp:panel xp:key="rectangleContent"></div>
</div>
<xc:mView </div>
viewName="NewByStatus"</div>
databaseName="VacationRequests.nsf" </div>
targetPageName="view"</div>
entriesPerRequest="10" </div>
columnNumbers="0"></div>
</xc:mView></div>
</xp:panel></div>
</xp:this.facets></div>
</xc:mRectangle></div>
</xp:panel></div>
</xp:this.facets></div>
</xc:mPage></div>
</div>
<xc:mPage name="view" visible="false" isDocumentPage="true"></div>
<xp:this.facets></div>
<xp:panel</div>
xp:key="pageContent"></div>
</div>
<xc:mHeader </div>
title="Vacation Requests" </div>
backPageName="home"</div>
backTitle="Home"></div>
</xc:mHeader></div>
</div>
<xc:mRectangle></div>
<xp:this.facets></div>
<xp:panel xp:key="rectangleContent"> </div>
<xc:mView </div>
xp:key="documentContent"</div>
viewName="NewByStatus"</div>
databaseName="VacationRequests.nsf" </div>
targetPageName="document"</div>
entriesPerRequest="10" </div>
columnNumbers="0"</div>
useDynamicCategory="true"></div>
</xc:mView></div>
</xp:panel></div>
</xp:this.facets></div>
</xc:mRectangle></div>
</xp:panel></div>
</xp:this.facets></div>
</xc:mPage></div>
</div>
<xc:mPage name="document" visible="false" isDocumentPage="true"></div>
<xp:this.facets></div>
<xp:panel </div>
xp:key="pageContent"></div>
</div>
<xc:mHeader </div>
title="Vacation Request" </div>
backPageName="view"</div>
backTitle="Back"></div>
</xc:mHeader></div>
</div>
<xc:mDocumentContainer</div>
pageName="document"></div>
<xp:this.facets></div>
<xc:myDocument </div>
xp:key="documentContent" </div>
databaseName="VacationRequests.nsf"> </div>
</xc:myDocument></div>
</xp:this.facets></div>
</xc:mDocumentContainer></div>
</xp:panel></div>
</xp:this.facets></div>
</xc:mPage></div>
<xc:mInitialize></xc:mInitialize></div>
</xp:view></div>
</div>