Simple front-end XPage for OpenLog


<?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" pageTitle="OpenLog">
	<xp:this.beforePageLoad><![CDATA[#{javascript:var documentId = param.documentId;
if( documentId ){
	viewScope.documentId = documentId;
} else {
	viewScope.viewName = param.viewName || 'Events\\by Date Flat';
}
}]]></xp:this.beforePageLoad>
	<style>
		a { color: #555; text-decoration: none; }
		table { border: none; border-collapse: collapse; }
		tr { background: transparent; }
		td { border-color: #ccc; }		
	
		.backButton { background: #fff; border: 1px solid #ccc; border-radius: 2px; display: inline-block; margin: 3px 5px; padding: 3px 5px; }
		.backButton:hover { background: #ffa; }
		
		.domino-actionbar { display: none; }
	</style>
	<xe:applicationLayout>
		<xp:div loaded="${!empty(viewScope.viewName)}">
			<xp:text value="#{viewScope.viewName}" tagName="h1" />
			<xe:dynamicViewPanel pageName="/Frontpage.xsp">
				<xe:this.data>
					<xp:dominoView var="view" viewName="${viewScope.viewName}" />
				</xe:this.data>
			</xe:dynamicViewPanel>
		</xp:div>
		<xp:div loaded="${!empty(viewScope.documentId)}">
			<button onclick="history.back()" class="backButton">Back to view</button>
			<xe:djContentPane id="djContentPane1"
				href="#{javascript:return '/' + database.getFilePath().replace( /\\/g, '/' ) + '/0/' + viewScope.documentId;}"
				extractContent="true" style="margin-top: 10px;"/>
		</xp:div>
		<xp:this.facets>
			<xp:div xp:key="LeftColumn">				
				<xe:navigator id="navigator1">
					<xe:this.treeNodes>
						<xe:dominoViewListTreeNode var="viewName" folders="false" filter="^\w+.*" enabled="true"
							href="#{javascript:return '/Frontpage.xsp?viewName=' + viewName;}" />
					</xe:this.treeNodes>
				</xe:navigator>
			</xp:div>
		</xp:this.facets>
		<xe:this.configuration>
			<xe:oneuiApplication legal="false" footer="false" titleBar="false" banner="false" />
		</xe:this.configuration>
	</xe:applicationLayout>
</xp:view>
All code submitted to OpenNTF XSnippets, whether submitted as a "Snippet" or in the body of a Comment, is provided under the Apache License Version 2.0. See Terms of Use for full details.
No comments yetLogin first to comment...