我的开发服务器在 853 中使用我的第一个移动应用程序没有问题。但是,当我尝试在具有不同视图的第二个数据库中使用它时,我永远无法在视图中打开基础文档。我得到典型的错误:
dojox.mobile.view#performTransition: destination view not found: null
我的移动页面是 m_milestoneList,我在 xsp.properties 中设置了页面前缀:
xsp.theme.mobile.pagePrefix=m_
我看不出我的错误在哪里:
<?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">
<meta name="viewport" content="user-scalable=no,width=device-width" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<script type="text/javascript">
$(document).ready(function() {
if (navigator.userAgent.match(/Android/i)) {
window.scrollTo(0,0); // reset in case prev not scrolled var
nPageH = $(document).height(); var nViewH = window.outerHeight;
if (nViewH > nPageH) { nViewH -= 250;
$('BODY').css('height',nViewH + 'px'); } window.scrollTo(0,1); }
});
</script>
<xe:singlePageApp id="singlePageApp1"
selectedPageName="milestoneList">
<xe:appPage id="appPage1" pageName="milestoneList">
<xe:djxmHeading id="djxmHeading1" label="Milestone List"></xe:djxmHeading>
<xe:dataView id="dataView1" pageName="#milestoneDetails"
collapsibleDetail="true">
<xe:this.data>
<xp:dominoView var="milestoneView"
viewName="MilestoneOwner">
</xp:dominoView>
</xe:this.data>
<xe:this.summaryColumn>
<xe:viewSummaryColumn columnName="Subject"></xe:viewSummaryColumn>
</xe:this.summaryColumn>
<xe:this.categoryColumn>
<xe:viewCategoryColumn columnName="TAT_ADvisor"></xe:viewCategoryColumn>
</xe:this.categoryColumn>
</xe:dataView>
</xe:appPage>
<xe:appPage id="milestoneDetails" pageName="milestoneDetails"
resetContent="true">
<xe:djxmHeading id="djxmHeading2" label="Details"
back="Back" moveTo="milestoneList">
</xe:djxmHeading>
<xp:panel>
<xp:this.data>
<xp:dominoDocument var="milestoneDocument"
formName="Milestone">
</xp:dominoDocument>
</xp:this.data>
<xp:table>
<xp:tr>
<xp:td>
<xp:label value="Acronym:"
id="acronym_Label1" for="acronym1">
</xp:label>
</xp:td>
<xp:td>
<xp:inputText value="#{milestoneDocument.Acronym}" id="acronym1">
</xp:inputText>
</xp:td>
</xp:tr>
</xp:table>
</xp:panel>
</xe:appPage>
</xe:singlePageApp>