1

我正在尝试创建一个简单的移动 xPage 应用程序,并在尝试打开文档时收到以下错误:

dojox.mobile.view#preformTransition: destination view not found: null

我在单个页面控件中使用多个应用程序页面控件,并且已验证页面名称引用中没有拼写错误。

<?xml version="1.0" encoding="UTF-8"?>
    <xp:view xmlns:xp="http://www.ibm.com/xsp/core" 
           xmlns:xe="http://www.ibm.com/xsp/coreex">

    <xe:singlePageApp id="singlePageApp1" selectedPageName="homePage">
    <!-- Start of Home Page -->
    <xe:appPage id="appPage0" pageName="homePage">
        <xe:djxmHeading id="djxmHeading2" label="MOM Directory"></xe:djxmHeading>

        <xe:djxmRoundRectList id="djxmRoundRectList1">
            <xe:djxmLineItem id="djxmLineItem1" label="Everyone"
                moveTo="#viewPageEveryone">
            </xe:djxmLineItem>
            <xe:djxmLineItem id="djxmLineItem2" label="Lakeville"
                moveTo="#viewPageLakeville">
            </xe:djxmLineItem>
            <xe:djxmLineItem id="djxmLineItem3" label="Minneapolis"></xe:djxmLineItem>
            <xe:djxmLineItem id="djxmLineItem4" label="Northfield"></xe:djxmLineItem>
        </xe:djxmRoundRectList>

        </xe:appPage>
    <!--  End of Home Page -->
    <!-- Start of view Page Everyone -->
    <xe:appPage id="appPage1" pageName="viewPageEveryone" resetContent="true">
        <xe:djxmHeading id="djxmHeading1" label="Everyone View"></xe:djxmHeading>
        <xe:dataView id="dataView1" openDocAsReadonly="true"
            rows="9" pageName="#documentPage">
            <xp:this.facets>
                <xp:link escape="true" id="link1" xp:key="pagerBottomLeft"
                    text="More">
                    <xp:eventHandler event="onclick" submit="false">
                        <xp:this.script>
                            <xe:addRows for="dataView1" disableId="link1">
                            </xe:addRows>
                        </xp:this.script>
                    </xp:eventHandler>
                </xp:link>
            </xp:this.facets>
            <xe:this.data>
                <xp:dominoView var="view1" viewName="ALL">
                </xp:dominoView>
            </xe:this.data>
            <xe:this.summaryColumn>
                <xe:viewSummaryColumn columnName="last_name"></xe:viewSummaryColumn>
            </xe:this.summaryColumn>
        </xe:dataView>
    </xe:appPage>
    <!-- End of view Page everyone -->

    <!-- Start of view Page Lakeville -->
    <xe:appPage id="appPage3" pageName="viewPageLakeville" resetContent="true">
        <xe:djxmHeading id="djxmHeading3" label="Lakeville View"></xe:djxmHeading>
        <xe:dataView id="dataView2" openDocAsReadonly="true"
            rows="9" pageName="#documentPage">
            <xp:this.facets>
                <xp:link escape="true" id="link2" xp:key="pagerBottomLeft"
                    text="More">
                    <xp:eventHandler event="onclick" submit="false">
                        <xp:this.script>
                            <xe:addRows for="dataView2" disableId="link2">
                            </xe:addRows>
                        </xp:this.script>
                    </xp:eventHandler>
                </xp:link>
            </xp:this.facets>
            <xe:this.data>
                <xp:dominoView var="view2" viewName="LKVL">
                </xp:dominoView>
            </xe:this.data>
            <xe:this.summaryColumn>
                <xe:viewSummaryColumn columnName="last_name"></xe:viewSummaryColumn>
            </xe:this.summaryColumn>
        </xe:dataView>
    </xe:appPage>
    <!-- End of view Page Lakeville -->

    <!-- Start of Document Page -->
    <xe:appPage id="appPage2" pageName="documentPage" resetContent="true" preload="true">
        <xe:djxmHeading id="documentPageHeading" back="Back" label="Document" moveTo="homePage"></xe:djxmHeading>
        <xp:panel>
            <xp:this.data>
                <xp:dominoDocument var="document1"
                    formName="frmBB">
                </xp:dominoDocument>
            </xp:this.data>
        </xp:panel>
    </xe:appPage>
    <!-- End of Document Page -->

</xe:singlePageApp>

我进行了很多搜索,发现了几个对这个错误的引用,但到目前为止没有任何帮助。我正在运行带有 UP1 和 Notes 9 Beta Designer 客户端的 8.5.3 FP3 服务器。

提前致谢。

4

1 回答 1

0

我已经在 9.0 上试过了,你的标记 Shean 工作正常。我不得不将它指向不同的数据源,但总的来说它有效。这是我用的...

<xe:singlePageApp id="singlePageApp1" selectedPageName="homePage">
<!-- Start of Home Page -->
<xe:appPage id="appPage0" pageName="homePage">
    <xe:djxmHeading id="djxmHeading2" label="MOM Directory"></xe:djxmHeading>

    <xe:djxmRoundRectList id="djxmRoundRectList1">
        <xe:djxmLineItem id="djxmLineItem1" label="Everyone"
            moveTo="#viewPageEveryone">
        </xe:djxmLineItem>
        <xe:djxmLineItem id="djxmLineItem2" label="Lakeville">
        </xe:djxmLineItem>
        <xe:djxmLineItem id="djxmLineItem3" label="Minneapolis"></xe:djxmLineItem>
        <xe:djxmLineItem id="djxmLineItem4" label="Northfield"></xe:djxmLineItem>
    </xe:djxmRoundRectList>

    </xe:appPage>
<!--  End of Home Page -->
<!-- Start of view Page Everyone -->
<xe:appPage id="appPage1" pageName="viewPageEveryone" resetContent="true">
    <xe:djxmHeading id="djxmHeading1" label="Everyone View"></xe:djxmHeading>
    <xe:dataView id="dataView1" openDocAsReadonly="true"
        rows="9" pageName="#documentPage">
        <xp:this.facets>
            <xp:link escape="true" id="link1" xp:key="pagerBottomLeft"
                text="More">
                <xp:eventHandler event="onclick" submit="false">
                    <xp:this.script>
                        <xe:addRows for="dataView1" disableId="link1">
                        </xe:addRows>
                    </xp:this.script>
                </xp:eventHandler>
            </xp:link>
        </xp:this.facets>
        <xe:this.data>
            <xp:dominoView var="view1" viewName="v01">
            </xp:dominoView>
        </xe:this.data>
        <xe:this.summaryColumn>
            <xe:viewSummaryColumn columnName="subject"></xe:viewSummaryColumn>
        </xe:this.summaryColumn>
    </xe:dataView>
</xe:appPage>
<!-- End of view Page everyone -->

<!-- Start of view Page Lakeville -->
<xe:appPage id="appPage3" pageName="viewPageLakeville" resetContent="true">
    <xe:djxmHeading id="djxmHeading3" label="Lakeville View"></xe:djxmHeading>
    <xe:dataView id="dataView2" openDocAsReadonly="true"
        rows="9" pageName="#documentPage">
        <xp:this.facets>
            <xp:link escape="true" id="link2" xp:key="pagerBottomLeft"
                text="More">
                <xp:eventHandler event="onclick" submit="false">
                    <xp:this.script>
                        <xe:addRows for="dataView2" disableId="link2">
                        </xe:addRows>
                    </xp:this.script>
                </xp:eventHandler>
            </xp:link>
        </xp:this.facets>
        <xe:this.data>
            <xp:dominoView var="view2" viewName="LKVL">
            </xp:dominoView>
        </xe:this.data>
        <xe:this.summaryColumn>
            <xe:viewSummaryColumn columnName="last_name"></xe:viewSummaryColumn>
        </xe:this.summaryColumn>
    </xe:dataView>
</xe:appPage>
<!-- End of view Page Lakeville -->

<!-- Start of Document Page -->
<xe:appPage id="appPage2" pageName="documentPage"
    resetContent="true" preload="true">
    <xe:djxmHeading id="documentPageHeading" back="Back"
        label="Document" moveTo="homePage">
    </xe:djxmHeading>
    <xp:panel>
        <xp:this.data>
            <xp:dominoDocument var="document1" formName="f01">
            </xp:dominoDocument>
        </xp:this.data>
        <xe:formTable id="formTable1">
            <xe:formRow id="formRow1" label="Subject: ">
                <xp:inputText id="inputText1"
                    value="#{document1.subject}">
                </xp:inputText>
            </xe:formRow>
        </xe:formTable>

    </xp:panel>
</xe:appPage>
<!-- End of Document Page -->

也许应用程序本身还有其他事情正在破坏你的东西。您没有将您的应用程序设置为特定的 Dojo 版本?还是其他类似的限制?

于 2013-02-12T11:53:38.107 回答