| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247 | <?xml version="1.0" encoding="UTF-8"?><!--Licensed Materials - Property of IBMBI and PM: qs(C) Copyright IBM Corp. 2001, 2017US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.--><!--		Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.		Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).--><xts:morphlet version="1.0" xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/QSRVUITextPL.xml,messages/portal.xml,messages/portalRL.xml" requiredCapability="canUseQueryStudio">	<xts:block id="page" type="exec" mode="output" processor="XSLT" mimeType="text/html" nodelist="env, debug, http, command, system, session, user, actions, tabs, configProps, credential, cookies, setCookies, accountOptions, newSession, gatewayURI, cm:queryResponse, objectClass">		<!-- get the debug logic sheet -->		<xts:logicsheet path="logicsheets/debuglogic.xslt"/>		<!-- get the new theme stuff -->		<xts:logicsheet path="logicsheets/portal.xsl"/>		<xts:logicsheet path="qs/logicsheets/dialogs.xsl"/>		<xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>		<xts:logicsheet path="logicsheets/presentation/layout.xsl"/>		<xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>		<xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>		<xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>		<xts:logicsheet path="logicsheets/cm-logic.xsl"/>		<!-- apply the form logic -->		<xts:logicsheet path="logicsheets/formlogic.xslt"/>		<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/" xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/" xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/" xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/" xmlns:dbg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/debug/" xmlns:qsdlg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/qs/dialog/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="xsl xts lyt pf dp df cp cf dbg qsdlg xtsext">			<xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>			<!-- add any theme variables -->			<df:variables/>			<pf:variables/>			<!-- start the output -->			<xsl:template match="/root">				<!--Get HTML output for the HEAD section -->				<dp:page>					<dp:script>						<script type="text/javascript">							<xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/layout.js</xsl:attribute>							<xsl:text/>//<xsl:text/>						</script>						<script type="text/javascript">							<xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/classes/CDialogManager.js</xsl:attribute>							<xsl:text/>//<xsl:text/>						</script>						<script type="text/javascript">							<xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/classes/CWindowManager.js</xsl:attribute>							<xsl:text/>//<xsl:text/>						</script>						<script type="text/javascript"><!--var goDialogManager = new CDialogManager();var cf = getConfigFrame();function executeOk(evt){    if(goDialogManager.isSpaceOrEnterKeyEvent(evt))    {		execute();    }}			function executeCancel(evt){	if(goDialogManager.isSpaceOrEnterKeyEvent(evt))	{		typeof this.cancelDialog == 'function' ? this.cancelDialog() : getConfigFrame().hideDialogFrame();	}}function execute(){	var sValue = "_COMBINED_";	for (var i = 0; i < document.f.fcAction.length; i++)	{		if (document.f.fcAction[i].checked)		{			sValue = document.f.fcAction[i].value;			break;		}	}	if (cf)	{		if (sValue  == "_COMBINED_")		{			var oCC = cf.cfgGet("combinedFilters");			var sTab = "";			if (oCC && oCC.getRawFilter().getSize() > 0) {				sTab = (oCC.getCurrentFilterGroup() == oCC.getSummaryFilter() ? "s": "r");			}			goDialogManager.getFeatureManager().launchFeature('FilterComplex');		}		else if  (sValue == "_NEW_")		{			cf.dlgGlobalReset();			cf.setFilterMode(cf.giFILTERCPLXMODE_PRE_WIZARD);			cf.dlgGlobalSetParm("xxNewFilter", true);			goDialogManager.getFeatureManager().launchFeature('FilterSimple');		}		else		{			cf.dlgGlobalReset();			goDialogManager.getFeatureManager().launchFeature('FilterSimple', [sValue]);		}	}}function cancelDialog(){	if (cf)	{		cf.dlgReset();		cf.dlgGlobalReset();		cf.hideDialogFrame();	}}function init(){	attachMouseEvents();	var oCC = null;	var oCCtemp = null;	if (cf && cf.showDialogFrame)	{		cf.showDialogFrame(300);		oCCtemp = oCC = cf.cfgGet("combinedFilters");		<!-- Use a copy of a combinedFilter objects in case we stick with basic filters. -->		if (!oCCtemp) {			oCCtemp = cf.convertToCombinedFilter();			<!-- replace old 'combinedFilters' -->			cf.cfgSet("combinedFilters", oCC);		}	}	var content = document.getElementById('content');	if (oCCtemp)	{		var sID = null;		var oF = null;		<xsl:for-each select="/root/env/param[@name='xxFilterId']">			sID = "<xsl:value-of select="xtsext:javascriptencode(string(.))"/>";			oF = oCCtemp.getFilterById(sID);			if (oF) { addAction(content,sID,"<xts:string id="FILTER_CHOOSE_FILTER" encode="javascript"/>",oF.getText()); }		</xsl:for-each>	}	addAction(content,"_NEW_","<xts:string id="FILTER_CHOOSE_NEW" encode="javascript"/>", "<xsl:value-of select="xtsext:javascriptencode(/root/env/param[@name='xxName'])"/>");	addAction(content,"_COMBINED_","<xts:string id="FILTER_CHOOSE_COMBINED" encode="javascript"/>");	document.f.fcAction[0].checked = true;}function addAction(oContainer,sValue,sText,sArg0){	var table = document.createElement("table");	var tbody = document.createElement("tbody");	var tr = document.createElement("tr");	var td = document.createElement("td");	td.className = "formText";	var radio = document.createElement("input");	radio.type = "radio";	radio.id = "fcAction";	radio.name = "fcAction";	radio.value = sValue;	td.appendChild(radio);	if (sArg0 != null) {		sText = sText.replace(/\^0/g, sArg0);	}	td.appendChild(document.createTextNode(" " + sText));	tr.appendChild(td);	tbody.appendChild(tr);	table.appendChild(tbody);	oContainer.appendChild(table);	if (radio.attachEvent) 	{		radio.attachEvent("onmousedown", function(e) {setAction(e.srcElement.value);});	}	else {		radio.addEventListener("mousedown", function(e) {setAction(this.value);}, true);	}}function setAction(sValue){	for (var i=0; i < document.f.fcAction.length; i++) {		document.f.fcAction[i].checked = (document.f.fcAction[i].value == sValue);	}}//--></script>					</dp:script>					<form style="margin:0px" name="f" method="POST" onsubmit="execute();return false;">						<table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">							<tr>								<td width="100%" height="0%">									<!-- dialog header -->									<dp:header help="false">										<!-- header titles -->										<dp:title>											<xts:string id="FILTER_CHOOSE_TITLE"/>										</dp:title>										<!-- close link for the header -->										<dp:close>											<a href="javascript:this.cancelDialog()">												<dp:closeMarker/>											</a>										</dp:close>										<!-- description (hint text) -->										<dp:description>											<xts:string id="FILTER_CHOOSE_DESC"/>										</dp:description>									</dp:header>								</td>							</tr>							<tr>								<td width="100%" height="100%" valign="top">									<!-- layout -->									<lyt:layout style="1" border="no">										<lyt:section id="content">											<dp:input>												<dp:section1>													<xts:string id="FILTER_CHOOSE_LABEL"/>												</dp:section1>											</dp:input>										</lyt:section>									</lyt:layout>								</td>							</tr>							<tr>								<td width="100%" height="0%">									<!-- Use default buttons [ OK = execute() and CANCEL = hideDialogFrame() ] -->									<qsdlg:defaultButtons/>								</td>							</tr>							<!-- <dbg:dumpxml select="/"/> -->						</table>					</form>				</dp:page>			</xsl:template>		</xsl:stylesheet>	</xts:block></xts:morphlet>
 |