• Categorized View being displayed as a flat view

    By Paul T. Calhoun 1 decade ago

    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>
    
    
        &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</div>
    
        &lt;xp:view xmlns:xp=&quot;http://www.ibm.com/xsp/core&quot;</div>
    
        xmlns:xc=&quot;http://www.ibm.com/xsp/custom&quot;&gt;</div>
    
        &lt;!-- &copy; Copyright IBM Corp. 2011 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--&gt;</div>
    
        &lt;!-- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; --&gt;</div>
    
        &lt;!-- Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); &nbsp; &nbsp; --&gt;</div>
    
        &lt;!-- you may not use this file except in compliance with the License. &nbsp; &nbsp;--&gt;</div>
    
        &lt;!-- You may obtain a copy of the License at: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--&gt;</div>
    
        &lt;!-- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; --&gt;</div>
    
        &lt;!-- http://www.apache.org/licenses/LICENSE-2.0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--&gt;</div>
    
        &lt;!-- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; --&gt;</div>
    
        &lt;!-- Unless required by applicable law or agreed to in writing, software --&gt;</div>
    
        &lt;!-- distributed under the License is distributed on an &quot;AS IS&quot; BASIS, &nbsp; --&gt;</div>
    
        &lt;!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or &nbsp; &nbsp; --&gt;</div>
    
        &lt;!-- implied. See the License for the specific language governing &nbsp; &nbsp; &nbsp; &nbsp;--&gt;</div>
    
        &lt;!-- permissions and limitations under the License. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--&gt;</div>
    
        &lt;!-- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; --&gt;</div>
    
        &lt;!-- Author: Niklas Heidloff 01/21/11 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--&gt;</div>
    
        &nbsp;</div>
    
        &lt;xc:mConfiguration&gt;</div>
    
        &lt;/xc:mConfiguration&gt;</div>
    
        &nbsp;</div>
    
        &lt;xc:mPage name=&quot;home&quot; visible=&quot;true&quot;&gt;</div>
    
        &lt;xp:this.facets&gt;</div>
    
        &lt;xp:panel</div>
    
        xp:key=&quot;pageContent&quot;&gt;</div>
    
        &nbsp;</div>
    
        &lt;xc:mHeader title=&quot;Vacation Request&quot;&gt;</div>
    
        &lt;/xc:mHeader&gt;</div>
    
        &nbsp;</div>
    
        &lt;xc:mRectangle&gt;</div>
    
        &lt;xp:this.facets&gt;</div>
    
        &lt;xp:panel xp:key=&quot;rectangleContent&quot;&gt;</div>
    
        &nbsp;</div>
    
        &lt;xc:mView&nbsp;</div>
    
        viewName=&quot;NewByStatus&quot;</div>
    
        databaseName=&quot;VacationRequests.nsf&quot;&nbsp;</div>
    
        targetPageName=&quot;view&quot;</div>
    
        entriesPerRequest=&quot;10&quot;&nbsp;</div>
    
        columnNumbers=&quot;0&quot;&gt;</div>
    
        &lt;/xc:mView&gt;</div>
    
        &lt;/xp:panel&gt;</div>
    
        &lt;/xp:this.facets&gt;</div>
    
        &lt;/xc:mRectangle&gt;</div>
    
        &lt;/xp:panel&gt;</div>
    
        &lt;/xp:this.facets&gt;</div>
    
        &lt;/xc:mPage&gt;</div>
    
        &nbsp;</div>
    
        &lt;xc:mPage name=&quot;view&quot; visible=&quot;false&quot; isDocumentPage=&quot;true&quot;&gt;</div>
    
        &lt;xp:this.facets&gt;</div>
    
        &lt;xp:panel</div>
    
        xp:key=&quot;pageContent&quot;&gt;</div>
    
        &nbsp;</div>
    
        &lt;xc:mHeader&nbsp;</div>
    
        title=&quot;Vacation Requests&quot;&nbsp;</div>
    
        backPageName=&quot;home&quot;</div>
    
        backTitle=&quot;Home&quot;&gt;</div>
    
        &lt;/xc:mHeader&gt;</div>
    
        &nbsp;</div>
    
        &lt;xc:mRectangle&gt;</div>
    
        &lt;xp:this.facets&gt;</div>
    
        &lt;xp:panel xp:key=&quot;rectangleContent&quot;&gt; </div>
    
        &lt;xc:mView&nbsp;</div>
    
        xp:key=&quot;documentContent&quot;</div>
    
        viewName=&quot;NewByStatus&quot;</div>
    
        databaseName=&quot;VacationRequests.nsf&quot;&nbsp;</div>
    
        targetPageName=&quot;document&quot;</div>
    
        entriesPerRequest=&quot;10&quot;&nbsp;</div>
    
        columnNumbers=&quot;0&quot;</div>
    
        useDynamicCategory=&quot;true&quot;&gt;</div>
    
        &lt;/xc:mView&gt;</div>
    
        &lt;/xp:panel&gt;</div>
    
        &lt;/xp:this.facets&gt;</div>
    
        &lt;/xc:mRectangle&gt;</div>
    
        &lt;/xp:panel&gt;</div>
    
        &lt;/xp:this.facets&gt;</div>
    
        &lt;/xc:mPage&gt;</div>
    
        &nbsp;</div>
    
        &lt;xc:mPage name=&quot;document&quot; visible=&quot;false&quot; isDocumentPage=&quot;true&quot;&gt;</div>
    
        &lt;xp:this.facets&gt;</div>
    
        &lt;xp:panel&nbsp;</div>
    
        xp:key=&quot;pageContent&quot;&gt;</div>
    
        &nbsp;</div>
    
        &lt;xc:mHeader&nbsp;</div>
    
        title=&quot;Vacation Request&quot;&nbsp;</div>
    
        backPageName=&quot;view&quot;</div>
    
        backTitle=&quot;Back&quot;&gt;</div>
    
        &lt;/xc:mHeader&gt;</div>
    
        &nbsp;</div>
    
        &lt;xc:mDocumentContainer</div>
    
        pageName=&quot;document&quot;&gt;</div>
    
        &lt;xp:this.facets&gt;</div>
    
        &lt;xc:myDocument&nbsp;</div>
    
        xp:key=&quot;documentContent&quot;&nbsp;</div>
    
        databaseName=&quot;VacationRequests.nsf&quot;&gt;&nbsp;</div>
    
        &lt;/xc:myDocument&gt;</div>
    
        &lt;/xp:this.facets&gt;</div>
    
        &lt;/xc:mDocumentContainer&gt;</div>
    
        &lt;/xp:panel&gt;</div>
    
        &lt;/xp:this.facets&gt;</div>
    
        &lt;/xc:mPage&gt;</div>
    
        &lt;xc:mInitialize&gt;&lt;/xc:mInitialize&gt;</div>
    
        &lt;/xp:view&gt;</div>
    
        &nbsp;</div>
    

  • comments

    By Niklas Heidloff 1 decade ago

    Paul, I cannot test right now since I'm running a bad dev build. Does the sample work that comes with the db?

    • yes the demo from the lotusphere applciation works

      By Paul T. Calhoun 1 decade ago

      Just won't display the categorized views from our application.  Must be either something it he view design or the application as the code that is working for the sample is IDENTICAL to the code that is not working pointing to our application.

       

      I will try it on a few other applications.

       

      Thanks.

  • Problem Solved

    By Paul T. Calhoun 1 decade ago

    maybe it was just me but I think this should work either way.  

    If the view setting is not set to display the view initially collapsed then the view is displayed like a flat view and the links will not load.

    maybe an enhancement request.