123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308 |
- <xts:morphlet resolverBase="prompting" xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/QSRVUITextPL.xml,messages/portal.xml,messages/portalRL.xml" requiredCapability="canUseQueryStudio">
- <!--
- Licensed Materials - Property of IBM
- BI and PM: qs
- (C) Copyright IBM Corp. 2001, 2017
- US 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:block id="browserDetection" path="qs/browserDetection.xslt" mode="interpret" type="exec" processor="XSLT" contentId="browserDetection" partId="1"/>
- <xts:block id="format" type="exec" mode="output" processor="XSLT" mimeType="text/html" dependency="browserDetection">
- <!-- 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/dialogIncludes.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: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:qsdialog="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 qsdialog xtsext">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
- <!-- Default variables (like skin) and prompt variables -->
- <qsdialog:variables/>
- <qsdialog:promptVariables/>
- <!-- 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>
- <head>
- <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/CTemplateDialog.js</xsl:attribute>
- <xsl:text/>//<xsl:text/>
- </script>
- <qsdialog:headerIncludes dlgSize="290" featureName="UserPreferenceDialog" setupParameters="env"/>
- </head>
- </dp:script>
- <body>
- <form style="margin:0px" name="f" method="POST" onsubmit="return false;">
- <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
- <tr>
- <td colspan="2" width="100%" height="0%">
- <!-- dialog header -->
- <dp:header help="false">
- <!-- header titles -->
- <dp:title>
- <xts:string id="MENU_MANAGE_FILE_MY_PREFERENCES"/>
- </dp:title>
- <!-- close link for the header -->
- <dp:close>
- <a href="javascript:goDialogManager.getWindowManager().hideDialogFrame()">
- <dp:closeMarker/>
- </a>
- </dp:close>
- <!-- description (hint text) -->
- <dp:description>
- <xts:string id="CHANGE_USAGE_PREFERENCES"/>
- </dp:description>
- </dp:header>
- </td>
- </tr>
- <tr>
- <td id="limitedDataModeContainer" valign="top" style="display: none;">
- <lyt:layout style="1" border="no" joinSection="true">
- <lyt:section>
- <span nocOnly="disabled">
- <dp:choice title="DEFAULT_DATA_DISPLAY">
- <dp:section1>
- <input onChange="oLimitedDataPreference.setDialogValue(this.value);" type="radio" name="limitedDataMode" value="full">
- <xsl:if test="not(/root/env/param[@name='limitedDataMode']) or /root/env/param[@name='limitedDataMode']='' or /root/env/param[@name='limitedDataMode']='full'">
- <xsl:attribute name="checked">true</xsl:attribute>
- </xsl:if>
- </input>
- </dp:section1>
- <dp:section2>
- <xts:string id="MENU_RUN_REPORT_COMPLETE"/>
- </dp:section2>
- <dp:section1>
- <input onChange="oLimitedDataPreference.setDialogValue(this.value);" type="radio" name="limitedDataMode" value="partial">
- <xsl:if test="/root/env/param[@name='limitedDataMode']='partial'">
- <xsl:attribute name="checked">true</xsl:attribute>
- </xsl:if>
- </input>
- </dp:section1>
- <dp:section2>
- <xts:string id="MENU_RUN_REPORT_PARTIAL"/>
- </dp:section2>
- <dp:section1>
- <input onChange="oLimitedDataPreference.setDialogValue(this.value);" type="radio" name="limitedDataMode" value="nodata">
- <xsl:if test="/root/env/param[@name='limitedDataMode']='nodata'">
- <xsl:attribute name="checked">true</xsl:attribute>
- </xsl:if>
- </input>
- </dp:section1>
- <dp:section2>
- <xts:string id="MENU_RUN_REPORT_NONE"/>
- </dp:section2>
- </dp:choice>
- </span>
- </lyt:section>
- </lyt:layout>
- </td>
- <td valign="top">
- <lyt:layout style="1" border="no" joinSection="true">
- <lyt:section>
- <span nocOnly="disabled">
- <dp:choice title="DEFAULT_FILTER_DIALOG_FOR_VALUE_SELECTION">
- <dp:section1>
- <input onChange="oFilterDialogTypePreference.setDialogValue(this.value);" type="radio" name="defaultFilterDialogType" value="default">
- <xsl:if test="not(/root/env/param[@name='defaultFilterDialogType']) or /root/env/param[@name='defaultFilterDialogType']='' or /root/env/param[@name='defaultFilterDialogType']='default'">
- <xsl:attribute name="checked">true</xsl:attribute>
- </xsl:if>
- </input>
- </dp:section1>
- <dp:section2>
- <xts:string id="DIALOG_DEFAULT_OPTION"/>
- </dp:section2>
- <dp:section1>
- <input onChange="oFilterDialogTypePreference.setDialogValue(this.value);" type="radio" name="defaultFilterDialogType" value="picklist">
- <xsl:if test="/root/env/param[@name='defaultFilterDialogType']='picklist'">
- <xsl:attribute name="checked">true</xsl:attribute>
- </xsl:if>
- </input>
- </dp:section1>
- <dp:section2>
- <xts:string id="FILTER_PICK_VALUES"/>
- </dp:section2>
- <dp:section1>
- <input onChange="oFilterDialogTypePreference.setDialogValue(this.value);" type="radio" name="defaultFilterDialogType" value="search">
- <xsl:if test="/root/env/param[@name='defaultFilterDialogType']='search'">
- <xsl:attribute name="checked">true</xsl:attribute>
- </xsl:if>
- </input>
- </dp:section1>
- <dp:section2>
- <xts:string id="FILTER_SEARCH_FOR_VALUES"/>
- </dp:section2>
- <tr id="filterTypeIn" style="visibility: hidden;">
- <td nowrap="true" class="formText">
- <input onChange="oFilterDialogTypePreference.setDialogValue(this.value);" type="radio" name="defaultFilterDialogType" value="typein">
- <xsl:if test="/root/env/param[@name='defaultFilterDialogType']='typein'">
- <xsl:attribute name="checked">true</xsl:attribute>
- </xsl:if>
- </input>
- </td>
- <td nowrap="true" class="formText">
- <xts:string id="FILTER_TYPE_IN_VALUES"/>
- </td>
- </tr>
- </dp:choice>
- </span>
- </lyt:section>
- </lyt:layout>
- </td>
- </tr>
- <tr>
- <td height="0%">
- <lyt:layout style="1" border="no" joinSection="true">
- <lyt:section>
- <span nocOnly="disabled">
- <dp:choice title="DEFAULT_TEMPLATE">
- <dp:section1>
- <input type="checkbox" name="templateMode" value="false">
- <xsl:if test="/root/env/param[@name='templateMode']='true'">
- <xsl:attribute name="checked">true</xsl:attribute>
- </xsl:if>
- </input>
- </dp:section1>
- <dp:section2>
- <xts:string id="REPORT_TEMPLATE_APPLY_TEMPLATE"/>
- </dp:section2>
- <dp:section1/>
- <dp:section2>
- <div id="loadingContainer" style="vertical-align:top;">
- <img id="loadingIcon">
- <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/common/images/spacer.gif</xsl:attribute>
- </img> 
- </div>
- <div id="pathContainer" style="display:none">
- <!-- Path to the container where we want to place this new entry. Leave this empty if the user does not have write access. -->
- <input type="hidden" name="templateSearchPath" value="" style="width: 400px;" onfocus="document.f.templateMode[1].checked=true;"/>
- <span id="path"/>
- <span id="pathContents"> </span>
-  
- <a href="javascript:void oTemplateDialog.selectTmpl();" onmouseover="window.status='';return true;" onmouseout="window.status='';return true;">
- <xts:string id="REPORT_TEMPLATE_SELECT"/>
- </a>
- </div>
- </dp:section2>
- </dp:choice>
- </span>
- </lyt:section>
- </lyt:layout>
- </td>
-
- <!-- Run time Query Options -->
-
- <td height="0%">
- <lyt:layout style="1" border="no" joinSection="true">
- <lyt:section>
- <span nocOnly="disabled">
- <dp:choice>
- <dp:section1/>
- <dp:section2>
- <div id="runTimeQueryOptions" style="vertical-align:top;">
- <a href="javascript:goDialogManager.getApplicationManager().getFeatureManager().launchFeature('AdvancedRunTimeOptions')">
- <xts:string id="ADVANCED_RUN_TIME_OPTIONS_TITLE"/>
- </a>
- </div>
- </dp:section2>
- </dp:choice>
- </span>
- </lyt:section>
- </lyt:layout>
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <!-- Use default buttons [ OK = execute() and CANCEL = hideDialogFrame() ] -->
- <qsdialog:defaultButtons/>
- </td>
- </tr>
- <!--dbg:dumpxml select="/"/-->
- </table>
- </form>
- <script type="text/javascript"><!--
-
- // Setup preference types and defaults for user preferences
- var oUserPreferenceManager = goDialogManager.getApplicationManager().getUserPreferenceManager();
-
- var oLimitedDataPreference = oUserPreferenceManager.add("limitedDataMode");
- var oFilterDialogTypePreference = oUserPreferenceManager.add("defaultFilterDialogType");
- var oTemplateSearchPathPreference = oUserPreferenceManager.add("defaultSystemTemplate");
- // The form input name usually defaults to the preference name
- // In this case, we need to conform to the CTemplateDialog.js format of 'templateSearchPath'
- oTemplateSearchPathPreference.setFormInputName("templateSearchPath");
- // If we're coming back from the portal OK page, set the TemplateDialog search path to the returned value
- // Otherwise, use the stored value
- var sSearchPath = oTemplateSearchPathPreference.getValue();
- <xsl:if test="not(/root/env/param[@name='templateMode']) and /root/env/param[@name='so.searchPath']">
- sSearchPath="<xsl:text/>
- <xsl:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='so.searchPath']))"/>
- <xsl:text/>";
- </xsl:if>
-
- var oTemplateModePreference = oUserPreferenceManager.add("templateMode");
- // The search path must be passed into the report template class
- var oTemplateDialog = new CTemplateDialog("userPreferences.xts", sSearchPath);
-
- // Set all values in the form
- // We have to do this each time because we can be called back from portal
- // Or called directly by the feature manager
- var oUserPreferenceDialog = goDialogManager.getFeatureRegistry().getRegisteredFeature("UserPreferenceDialog");
- oUserPreferenceDialog.setFormFieldValues(document.forms['f']);
-
- // Set 'type in' values radio button to disabled unless cf.checkCalcFunctionAgainstDB("FLEXIBLE_FILTERS") is set
- if (typeof getConfigFrame === "function" && getConfigFrame().checkCalcFunctionAgainstDB("FLEXIBLE_FILTERS"))
- {
- var oDiv = document.getElementById("filterTypeIn");
- oDiv.style.visibility = "visible";
- }
-
- <!--
- Set the templateMode checkbox automatically if a template has been selected coming back from the portal selector.
- -->
- <xsl:if test="/root/env/param[@name='so.searchPath']">
- oTemplateDialog.setTemplateSelected(true);
- </xsl:if>
- <!-- Only display the data display type select if we allow user override -->
- if (oLimitedDataPreference.isUserOverrideAllowed())
- {
- document.getElementById("limitedDataModeContainer").style.display = "inline";
- }
-
- // Called from CDialogManager
- function cancelDialog(aParams)
- {
- oUserPreferenceManager.clearAllDialogValues();
- goDialogManager.getWindowManager().hideDialogFrame(aParams);
- }
-
- //--></script>
- </body>
- </dp:page>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- </xts:morphlet>
|