1
我想creating uniform application layout for multiple applications.在同一選項卡XPages中打開新數據庫/窗戶在XPiNC
我似乎無法獲得在一個數據庫上AppLayout的鏈接在同一個標籤/窗口首先打開一個新的數據庫數據庫。我的目標是爲多個數據庫提供一個統一的應用程序佈局控制,在每個數據庫的應用程序鏈接中都有一個鏈接,因此它將用戶視爲真正在一個大型應用程序中。我在XPiNC中這樣做。
我一直在新選項卡中打開。我已經更改了數據庫的設置,以便在相同的窗口/選項卡中打開默認設置。我已經嘗試了3種不同的方法來做到這一點,它們在代碼中位於下面。
我真的很想能夠做到這一點。
<?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">
<xp:this.resources>
<xp:script
src="/xpCGIVariables.jss"
clientSide="false">
</xp:script>
</xp:this.resources>
<xp:platformEvent
id="platformEvent1"></xp:platformEvent>
<xe:applicationLayout
id="applicationLayout1">
<xp:callback
facetName="facet_1"
id="callback4" />
<xp:this.facets>
<xp:callback
facetName="MastFoot"
id="callback6"
xp:key="MastFooter" />
<xp:callback
facetName="RightColum"
id="callback5"
xp:key="RightColumn" />
<xp:callback
facetName="LeftColumn"
id="callback3"
xp:key="LeftColumn" />
<xp:callback
facetName="searchBar"
id="callback2"
xp:key="SearchBar" />
<xp:callback
facetName="MastHeader"
id="callback1"
xp:key="MastHeader" />
</xp:this.facets>
<xe:this.configuration>
<xe:oneuiApplication
navigationPath="#{javascript:compositeData.navigationPath}"
defaultNavigationPath="home"
productLogoHeight="50px"
legal="false"
productLogo="/smallLogo.png"
productLogoWidth="50px"
productLogoStyle="padding-top:5.0px;padding-bottom:5.0px"
placeBarName="PC Checklist"
titleBarName="PC Checklist"
placeBar="false"
footer="false">
<xe:this.footerLinks>
<xe:basicContainerNode label="Container 1"></xe:basicContainerNode>
</xe:this.footerLinks>
<xe:this.titleBarTabs>
<xe:pageTreeNode
label="PC Tasks"
selection="/PCTasks/.*"
page="/xpViewAllPCTasks.xsp" />
<xe:pageTreeNode
label="PC Builds"
selection="/PCBuilds/.*"
page="/xpViewAllPCBuilds.xsp" />
</xe:this.titleBarTabs>
<xe:this.placeBarActions></xe:this.placeBarActions>
<xe:this.bannerUtilityLinks>
<xe:basicLeafNode label="My Email">
<xe:this.href><![CDATA[#{javascript:var url = "Notes:///0000000000000E00/"
url}]]></xe:this.href>
</xe:basicLeafNode>
<xe:separatorTreeNode loaded="true"></xe:separatorTreeNode>
<xe:basicLeafNode>
<xe:this.label><![CDATA[#{javascript:"Welcome " + @Name("[CN]",session.getEffectiveUserName());}]]></xe:this.label>
</xe:basicLeafNode>
</xe:this.bannerUtilityLinks>
<xe:this.bannerApplicationLinks>
<xe:basicLeafNode
label="The Scoular Company"
style="height:50px"
styleClass="lotusText">
<xe:this.onClick><![CDATA[window.open("http://www.scoular.com","_self")]]></xe:this.onClick>
</xe:basicLeafNode>
<xe:basicLeafNode
label="PC Checklist"
selected="true">
<xe:this.href><![CDATA[#{javascript:if (database.getTitle() != "PC Checklist")
{var url = "notes://KC1/PCCheckList.nsf/xpHome.xsp?OpenXpage";
url;}}]]></xe:this.href>
</xe:basicLeafNode>
<xe:basicLeafNode label="CompuWeigh Monitor">
<xe:this.href><![CDATA[#{javascript:var url = "notes://<SERVER>/compuweigh.nsf/xpHome.xsp?OpenXpage"
url}]]></xe:this.href>
</xe:basicLeafNode>
<xe:basicLeafNode label="CompuWeigh Monitor">
<xe:this.onClick><![CDATA[var url = "notes://<SERVER>/compuweigh.nsf/xpHome.xsp?OpenXpage";
window.open(url,"_self")]]></xe:this.onClick>
</xe:basicLeafNode>
<xe:basicLeafNode label="ComputWeigh Monitor">
<xe:this.onClick><![CDATA[window.open("notes://KC1/compuweigh.nsf?OpenDatabase","_self")]]></xe:this.onClick>
</xe:basicLeafNode>
</xe:this.bannerApplicationLinks>
</xe:oneuiApplication>
</xe:this.configuration>
</xe:applicationLayout>
</xp:view>