123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (C) Copyright IBM Corp. 2005, 2014
- 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:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/portal.xml, messages/portalRL.xml" includeConfig="true" requiredCapability="canUseCognosViewerRunWithOptions">
-
- <!-- ======================================================== -->
- <!-- Session Management -->
- <!-- ======================================================== -->
- <!-- Reads session-sensitive info from CM -->
- <xts:block processor="XSLT" type="exec" mandatory="false"
- id="refreshSession"
- path="portal/cc/read_session.xml"
- condition=".[
- string(/root/cookies/cookie[@name = 'cc_session']) = ''
- or /root/env/param[@name='m_reload']
- or /root/env/param[@name='m_root'] ]">
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- </xts:block>
- <!-- Update the <session> element for this request. -->
- <xts:block id="buildSession" path="portal/session.xml" dependency="refreshSession" processor="XSLT" type="exec"
- condition=".[
- /root/newSession
- or /root/env/param[@name='ui']
- or /root/env/param[@name='d']
- or /root/env/param[starts-with(@name,'m_s_')]
- or /root/env/param[@name = 'resetSort'] ]"
- mandatory="false"/>
- <!-- Save changes to the state info in a cookie -->
- <xts:block mode="interpret" processor="XSLT" type="exec"
- id="setSession"
- path="portal/set_session.xml"
- dependency="buildSession getContent"
- condition=".[/root/updateSession]"
- mandatory="false"/>
-
- <!--
- ===============================================================================================
- formlogic_init - standard form logic initialization
- ===============================================================================================
- -->
- <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="/logicsheets/formlogic_init.xslt" nodelist="env,credential,system,http"/>
- <!--
- ===============================================================================================
- checkParam - change m_name, m_class, m_obj when dealing with shortcut.
- ===============================================================================================
- -->
- <xts:block id="checkParam" path="/portal/ref2target.xml" dependency="formlogic_init buildSession" type="exec" mode="interpret" processor="XSLT" condition=".[/root/env/param[starts-with(@name,'sc_target')]!='']" mandatory="false"/>
-
- <!--
- ===============================================================================================
- getContent - Main content request
- ===============================================================================================
- -->
- <xts:block id="getContent" processor="XSLT" type="exec" dependency="checkParam">
- <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
- <xts:logicsheet path="portal/runWithOptions/logicsheets/request.xslt"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:rdr="http://developer.cognos.com/schemas/xts/rdr/"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/"
- exclude-result-prefixes="xsl rdr send xtsext cm dt">
-
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:key name="env-param" match="/root/env/param" use="@name"/>
-
- <xsl:template match="/">
- <xts:sequence>
- <rdr:Requests>
- <rdr:Request type="runnable" mode="report">
- <rdr:searchPath>
- <xsl:value-of select="key('env-param', 'm_obj')"/>
- </rdr:searchPath>
- </rdr:Request>
- <rdr:Request type="credential"/>
- <rdr:Request type="accountOptions" mode="report"/>
- </rdr:Requests>
- <!-- if we don't have a parameterDescription, then separate the connection/signon prompts
- from other prompts. -->
- <xsl:if test="not(/root/env/param[@name='parameterDescription'])">
- <dt:splitParameters queryNode="/root/*[local-name()='queryResponse']/*[local-name()='queryReply'][1]/*"/>
- </xsl:if>
- <!-- get a list of installed components and service defaults -->
- <xts:append>
- <installedComponents>
- <xts:function name="getConfiguration">
- <xts:param name="installedComponents"/>
- </xts:function>
- </installedComponents>
- <xts:function name="getConfiguration">
- <xts:param name="serviceDefaultOptions"/>
- <xts:param name="overrideOptions"/>
- </xts:function>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- queryDataSourcePrompts - Get the parameter data source connection/signon information from CM
- ===============================================================================================
- -->
- <xts:block id="queryDataSourcePrompts"
- nodeList="/root/credentialParameters"
- path="/portal/iPrompting/logicsheets/query-datasource.xslt"
- processor="XSLT"
- type="exec"
- dependency="getContent"
- condition=".[/root/credentialParameters]" mandatory="false">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- </xts:block>
-
- <!--
- ===============================================================================================
- generateDefaults
- ===============================================================================================
- -->
- <xts:block id="generateDefaults" dependency="queryDataSourcePrompts getContent" type="exec" mode="interpret" processor="XSLT" condition=".[not(/root/env/param[@name='visited_run_with_options'])]" mandatory="false">
- <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <pf:variables/>
-
- <xsl:template match="/">
- <xts:sequence>
- <!-- generate the default report options -->
- <xts:append select="/root/env">
- <xts:transform src="transforms/portal/options/generateParams.xslt" processor="XSLT">
- <xts:param name="messageBase">/messages/portal.xml</xts:param>
- <root>
- <xts:transform src="transforms/portal/options/mergeReportOptions.xslt" processor="XSLT">
- <root>
- <xts:queryNode select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply'][1]/*"/>
- </root>
- </xts:transform>
- <defaultOptions>
- <xsl:choose>
- <xsl:when test="/root/env/param[starts-with(@name,'visited_run_with_options')]">false</xsl:when>
- <xsl:otherwise>true</xsl:otherwise>
- </xsl:choose>
- </defaultOptions>
- <preferences>
- <xsl:copy-of select="/root/header/*[local-name() = 'biBusHeader']/*[local-name() = 'userPreferenceVars']/*"/>
- </preferences>
- <serviceDefaults>
- <xsl:copy-of select="/root/configuration/property[@name='serviceDefaultOptions']/*/value"/>
- </serviceDefaults>
- <obj>
- <xsl:copy-of select="/root/cm:queryResponse/cm:queryReply[1]/*"/>
- </obj>
- <deliverySection>false</deliverySection>
- <basicOptions>true</basicOptions>
- <!-- this list of options needs to match the list in the report_advanced.xts morphlet -->
- <optionList include="true">
- <item>outputFormat</item>
- <item>outputLocale</item>
- <item>prompt</item>
- <item>http://developer.cognos.com/ceba/constants/systemOptionEnum#accessibilityFeatures</item>
- </optionList>
- </root>
- </xts:transform>
- </xts:append>
-
- <xts:append select="/root/env">
- <!-- encode the parameters -->
- <xsl:if test="/root/cm:queryResponse/cm:queryReply[1]/*/cm:parameters/*">
- <xsl:variable name="parameters-markup">
- <xsl:call-template name="serialize-xml">
- <xsl:with-param name="node-set" select="/root/cm:queryResponse/cm:queryReply[1]/*/cm:parameters"/>
- </xsl:call-template>
- </xsl:variable>
- <xts:append select="/root/env">
- <param name="m_rp_parameters">
- <xsl:value-of select="xtsext:web64encode(string($parameters-markup), true())"/>
- </param>
- </xts:append>
- </xsl:if>
- <!-- do we show the summary page? -->
- <param name="showSummary">
- <xsl:choose>
- <xsl:when test="/root/cm:queryResponse/cm:queryReply[3]/*/options/value/item[name='showOptionSummary']/value">
- <xsl:choose>
- <xsl:when test="/root/cm:queryResponse/cm:queryReply[3]/*/options/value/item[name='showOptionSummary']/value='true'">
- <xsl:value-of select="'y'"/>
- </xsl:when>
- <xsl:otherwise><xsl:value-of select="'n'"/></xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="key('user-param','showOptionSummary')='true'">
- <xsl:value-of select="'y'"/>
- </xsl:when>
- <xsl:when test="key('user-param','showOptionSummary')='false'">
- <xsl:value-of select="'n'"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/root/system/param[@name = 'defaultPortalPreferences']/pref[@name='runoptions']"/>
- </xsl:otherwise>
- </xsl:choose>
- </param>
-
- <xsl:variable name="s" select="concat(' ', key('system-param', 'ui_hide')/CC_RUN_OPTIONS_email_attachment/@show, ' ')"/>
-
- <param name="run_with_options_allowEmailAsAttachment">
- <xsl:choose>
- <xsl:when test="
- not(key('system-param', 'ui_hide')/CC_RUN_OPTIONS_email_attachment)
- or
- (
- key('system-param', 'ui_hide')/CC_RUN_OPTIONS_email_attachment
- and
- (
- (contains($s, 'Administrators') and $hasAdminCapability) or
- (contains($s, 'QSUsers') and $hasFullQSCapability) or
- (contains($s, 'RSUsers') and $hasFullRSCapability) or
- (contains($s, 'Consumers') and $is-named='1') or
- (contains($s, 'Anonymous') and $is-named='0') or
- (key('system-param', 'ui_groups')/group[contains($s, concat(' ', @id, ' ')) and contains( key('session-param', 'uig'), concat(' ', @id, ' '))])
- )
- )">
- <xsl:text>true</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>false</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </param>
- </xts:append>
- </xts:sequence>
- <!-- generate the prompt description -->
- <dt:promptDescription/>
- </xsl:template>
- <dt:hierarchicalParmValueItem/>
- <pf:serialize-xml/>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- generateDefaultEmailOptions - If no delivery options where save on the object and it's the
- first time we hit this page then generate defaults
- ===============================================================================================
- -->
- <xts:block id="generateDefaultEmailOptions" path="/portal/emailOptions/logicsheets/generate_defaults.xslt" processor="XSLT" dependency="generateDefaults" type="exec" condition=".[not(/root/env/param[@name='visited_run_with_options'])]" mandatory="false">
- <xts:logicsheet path="logicsheets/presentation/dialog/controller-templates.xsl"/>
- </xts:block>
-
- <!--
- ===============================================================================================
- processDefaultEmailOptions - If no delivery options where save on the object and it's the
- first time we hit then process the default delivery options.
- ===============================================================================================
- -->
- <xts:block id="processDefaultEmailOptions" path="/portal/emailOptions/logicsheets/process_email_options.xslt" processor="XSLT" dependency="generateDefaultEmailOptions" type="exec" condition=".[not(/root/env/param[@name='visited_run_with_options'])]" mandatory="false">
- <xts:logicsheet path="logicsheets/presentation/dialog/controller-templates.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- </xts:block>
- <!--
- ===============================================================================================
- generateDefaultMobileOptions - First time we hit this page, add account information for the user to be used
- with the "Send the report to my mobile device" option.
- ===============================================================================================
- -->
- <xts:block id="generateDefaultMobileOptions" path="/portal/mobileOptions/logicsheets/generate_default_mobile_options.xslt" processor="XSLT" dependency="generateDefaults" type="exec" nodelist="queryResponse" condition=".[not(/root/env/param[@name='visited_run_with_options'])]" mandatory="false">
- <xts:logicsheet path="logicsheets/presentation/dialog/controller-templates.xsl"/>
- </xts:block>
- <!--
- ===============================================================================================
- processDefaultMobileOptions - create the mobile options
- ===============================================================================================
- -->
- <xts:block id="processMobileEntries" path="/portal/mobileOptions/logicsheets/process_mobile_entries.xslt" processor="XSLT" dependency="generateDefaultMobileOptions" type="exec" nodelist="morphletResponse,env,selectedEntries,credential" condition=".[not(/root/env/param[@name='visited_run_with_options'])]" mandatory="false">
- <xts:logicsheet path="logicsheets/presentation/dialog/controller-templates.xsl"/>
- </xts:block>
-
- <xts:block id="missingObject" mode="output" processor="XSLT" type="exec" mimeType="text/html" dependency="format"
- condition=".[not(/root/*[local-name()='queryResponse']/*[local-name()='queryReply'][1]/*)]" mandatory="false" path="/portal/missing_object.xml">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
- </xts:block>
- <!--
- ===============================================================================================
- HTML output
- ===============================================================================================
- -->
- <xts:block id="format" mode="output" processor="XSLT" type="exec" dependency="processDefaultEmailOptions processMobileEntries generateDefaults formlogic_init getContent" mimeType="text/html"
- condition=".[/root/*[local-name()='queryResponse']/*[local-name()='queryReply'][1]/*]" mandatory="false">
- <!-- logicsheets -->
- <xts:logicsheet path="portal/runWithOptions/logicsheets/response.xslt"/>
- <!-- portal specific information -->
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <!-- Dialog specific logicsheets -->
- <xts:logicsheet path="logicsheets/presentation/dialog/ui-templates.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
- <!-- Generic logicsheets -->
- <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
- <!-- apply the form logic -->
- <xts:logicsheet path="logicsheets/formlogic.xslt"/>
- <xts:logicsheet path="logicsheets/validation.xslt"/>
- <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
- <xsl:stylesheet version="1.0" exclude-result-prefixes="xts xsl cm pf xtsext lyt dp df cf cp rdb"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:rdb="http://developer.cognos.com/schemas/xts/rdb/"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
- 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:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
- xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
- xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
- xmlns:ut="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/ui-templates/"
- xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/">
-
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
-
- <!-- Global template variables -->
- <pf:variables/>
-
- <xsl:variable name="the-object" select="/root/cm:queryResponse/cm:queryReply[1]/*"/>
-
- <!-- time varibales needed for the calendar control -->
- <xsl:variable name="mname" select="'runWithOptions/report.xts'"/>
- <xsl:variable name="the-credential" select="/root/cm:queryResponse/cm:queryReply[2]/cm:credential"/>
- <xsl:variable name="has_execute_permission" select="contains(concat(' ', /root/cm:queryResponse/cm:queryReply[1]/*/cm:permissions, ' '), ' execute ')"/>
- <xsl:variable name="mobileSupported" select="/root/installedComponents/configuration/*/component[.='mobileService'] and not(contains(' powerPlay8Report powerPlay8ReportView ', concat(' ', /root/cm:queryResponse/cm:queryReply[1]/*/cm:objectClass,' ')))"/>
- <xsl:variable name="the-objectClass" select="/root/cm:queryResponse/cm:queryReply[1]/*/cm:objectClass"/>
- <xsl:variable name="isInteractiveReportObject" select="$the-objectClass = 'interactiveReport' or ($the-objectClass = 'reportView' and /root/cm:queryResponse/cm:queryReply[1]/*/cm:base/*/cm:objectClass = 'interactiveReport')"/>
-
- <!-- start the output -->
- <xsl:template match="/root">
- <xsl:variable name="browserTitle">
- <rdb:pageTitle/>
- </xsl:variable>
- <xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text><dp:page longTitle="$browserTitle">
- <dp:meta>
- <pf:meta/> <!-- Standard meta tags -->
- </dp:meta>
-
- <dp:script>
- <pf:help context="HID_RUN_OPTIONS"/> <!-- Help system -->
- <script language="javascript" src="{$webcontent}/{$app}/js/runOptions.js"/>
- <script language="javascript" src="{$webcontent}/{$app}/js/runWithOptions.js"/>
- <script language="javascript" src="{$webcontent}/../cognoslaunch.js"/>
-
- <script language="javascript">
-
- <!-- include the javascript need to run the report -->
- <rdb:interactiveJavaScript/>
-
- function validate() {
- var frm = document.pform;
-
- <!-- if print is selected but no printer is chosen -->
- if ( ((frm.delivery[1] && frm.delivery[1].value == 'print' && frm.delivery[1].checked) || (frm.delivery[2] && frm.delivery[2].value == 'print' && frm.delivery[2].checked)) && frm.select_printerAddress.value == '') {
- alert("<xts:string id="IDS_OTHERRUN_ERR_NO_PRINTER" encode="javascript"/>");
- g_okCounter = 0;
- return false;
- }
-
- <!-- make sure the user doesn't send two run requests -->
- if (!onClickOK('<xts:string id="IDS_OTHERRUN_REQUEST_SUBMITTED" encode="javascript"><xts:param name="objName"><xsl:value-of select="xtsext:javascriptencode(string(key('env-param', 'm_name')))"/></xts:param></xts:string>')) {
- return false;
- }
- return true;
- }
-
- </script>
- </dp:script>
- <!-- main form. Used when going to the advanced run with options dialog -->
- <utml:form name="pform" method="post" action="{$gateway}">
- <utml:exclusion-list><xsl:value-of select="' m_ro_saveOutput m_ro_print m_ro_email m_ro_mobile '"/></utml:exclusion-list>
- <utml:read-only>false</utml:read-only>
- <utml:input type="hidden" name="ifrmcmd" value='execute' utml:update="false"/>
- <utml:input type="hidden" name="ps_nav_op" value="" utml:update="false"/>
- <utml:input type="hidden" name="visited_run_with_options" value="true" utml:update="false"/>
- <!-- if the user doesn't have a credentail then add the h_CAM_action to create one -->
- <rdb:checkCredential/>
-
- <!-- header -->
- <dp:header>
- <dp:title>
- <xsl:copy-of select="$browserTitle"/>
- </dp:title>
- <dp:description>
- <xts:string id="IDS_OTHERRUN_BASIC_INTRO"/>
- </dp:description>
- </dp:header>
-
- <!-- body -->
- <lyt:layout style="2">
- <!-- format -->
- <lyt:section>
- <ut:formatSelectList/>
- </lyt:section>
- <lyt:section>
- <dp:choice>
- <dp:section1 wrap="wrap">
- <img height="30" width="30">
- <xsl:attribute name="alt"><xts:string id="IDS_ICON_TIP"/></xsl:attribute>
- <xsl:attribute name="src"><xsl:value-of select="$skin_images"/>tip_template.gif</xsl:attribute>
- </img>
- </dp:section1>
- <dp:section2 wrap="wrap">
- <xsl:variable name="link">
- <a href="javascript:advancedOptions()">
- <xsl:text><xts:string id="IDS_OTHERRUN_ADVANCED_OPTIONS"/></xsl:text>
- </a>
- </xsl:variable>
- <xts:string id="IDS_OTHERRUN_ADVANCED_OPTIONS_TEXT">
- <xts:param name="link"><xsl:copy-of select="$link"/></xts:param>
- </xts:string>
- </dp:section2>
- </dp:choice>
- </lyt:section>
- </lyt:layout>
- <!-- a11y -->
- <lyt:layout style="1">
- <lyt:section>
- <ut:a11yOption/>
- </lyt:section>
- </lyt:layout>
-
- <!-- language -->
- <lyt:layout style="1">
- <lyt:section>
- <ut:localeSelectList/>
- </lyt:section>
- </lyt:layout>
-
- <lyt:layout style="1">
- <lyt:section>
- <xsl:call-template name="delivery">
- <xsl:with-param name="form-read-only" select="$form-read-only"/>
- <xsl:with-param name="utml-form-name" select="$utml-form-name"/>
- </xsl:call-template>
- </lyt:section>
- </lyt:layout>
-
- <!-- prompts -->
- <lyt:layout style="1">
- <lyt:section>
- <ut:prompt/>
- </lyt:section>
- </lyt:layout>
- <!-- footer -->
- <dp:footer>
- <df:button df:id="IDS_OTHERRUN_RUN" df:style="href" df:href="javascript:runReport();"/>
- <xsl:choose>
- <xsl:when test="key('env-param', 'ps_nav_stack') and not(key('env-param', 'ps_nav_stack') = '') ">
- <df:button df:id="IDS_CANCEL" df:style="stack-down"/>
- </xsl:when>
- <xsl:otherwise>
- <df:button df:id="IDS_CANCEL" df:style="back-url"/>
- </xsl:otherwise>
- </xsl:choose>
- </dp:footer>
- </utml:form>
- </dp:page>
- </xsl:template>
-
- <ut:promptTemplate showLinks="false"/>
-
-
- <xsl:template name="delivery">
- <xsl:param name="form-read-only"/>
- <xsl:param name="utml-form-name"/>
- <dp:choice title="IDS_OTHERRUN_DELIVERY" id="delivery_radioGroup">
- <utml:radio-group name="delivery">
- <utml:default-value>view</utml:default-value>
- <!-- view the report -->
- <dp:section1>
- <utml:input type="radio" value="view" onclick="clearPrinterField()" id="ctrl_delivery_view"/>
- </dp:section1>
- <dp:section2 for="ctrl_delivery_view"><xts:string id="IDS_OTHERRUN_BASIC_DELIVERY_VIEW"/></dp:section2>
-
- <!-- save the report -->
-
- <xsl:if test="contains(concat(' ', /root/cm:queryResponse/cm:queryReply[1]/*/cm:permissions, ' '), ' write ') and contains(concat(' ', /root/cm:queryResponse/cm:queryReply[1]/*/cm:permissions, ' '), ' traverse ')">
- <dp:section1>
- <utml:input type="radio" value="save" onclick="clearPrinterField()" id="ctrl_delivery_save"/>
- </dp:section1>
- <dp:section2 for="ctrl_delivery_save"><xts:string id="IDS_OTHERRUN_BASIC_DELIVERY_SAVE"/></dp:section2>
- </xsl:if>
-
- <xsl:if test="not($isInteractiveReportObject)">
- <!-- print the report -->
- <dp:section1>
- <utml:input type="radio" value="print" id="ctrl_delivery_print"/>
- </dp:section1>
- <dp:section2 for="ctrl_delivery_print"><xts:string id="IDS_OTHERRUN_BASIC_PRINT_REPORT"/></dp:section2>
- <dp:section3>
- <!-- variable needed by ut:printer -->
- <xsl:variable name="print_checked" select="true()"/>
- <ut:printer/>
- </dp:section3>
- </xsl:if>
-
- <!-- email -->
- <xsl:variable name="userHasEmailAddress" select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply'][3]/*/*[local-name()='email']!=''"/>
- <xsl:variable name="userIsAnonymousUser" select="key('session-param','e_hp')!='' and key('session-param','e_hp')='CAMID("::Anonymous")'"/>
- <xsl:if test="$userHasEmailAddress and not($userIsAnonymousUser) and key('env-param','run_with_options_allowEmailAsAttachment')='true'">
- <dp:section1>
- <utml:input type="radio" value="email" onclick="clearPrinterField()" id="ctrl_delivery_email"/>
- </dp:section1>
- <dp:section2 for="ctrl_delivery_email"><xts:string id="IDS_OTHERRUN_BASIC_DELIVERY_EMAIL"/></dp:section2>
- </xsl:if>
- <!-- only display if mobile services are installed and a user has the mobile capability-->
- <xsl:if test="$mobileSupported and $userCanUseMobileService">
- <!-- mobile -->
- <dp:section1>
- <utml:input type="radio" value="mobile" onclick="clearPrinterField()" id="ctrl_delivery_mobile"/>
- </dp:section1>
- <dp:section2 for="ctrl_delivery_mobile"><xts:string id="IDS_OTHERRUN_BASIC_DELIVERY_MOBILE"/></dp:section2>
- </xsl:if>
-
- </utml:radio-group>
- </dp:choice>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- <!--
- ===============================================================================================
- debug - display debug information
- ===============================================================================================
- -->
- <xts:block id="debug" dependency="format missingObject" condition=".[/root/session/param[@name='debug']='1']" type="exec" mode="output" processor="XSLT" mandatory="false" mimeType="text/html">
- <!-- get the debug logic sheet -->
- <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dbg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/debug/" exclude-result-prefixes="dbg">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <xsl:template match="/">
- <dbg:dumpxml select="/root"/>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- </xts:morphlet>
|