1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018 |
- <?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">
- <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="/logicsheets/formlogic_init.xslt" nodelist="env,credential,system,http"/>
- <!--
- ===============================================================================================
- callMorphlet - Calls the appropriate morphlet using the passed in params which will return
- markup to be displayed or the expected results
- ===============================================================================================
- -->
- <xts:block id="callMorphlet" processor="XSLT" dependency="formlogic_init" type="exec" condition=".[ /root/env/param[@name='controller_state'] != '' ]" mandatory="false">
- <xts:logicsheet path="logicsheets/presentation/dialog/controller-templates.xsl"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:dlgctrl="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/controller-templates/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:req-params="http://developer.cognos.com/schemas/request/params"
- exclude-result-prefixes="xsl dlgctrl xtsext req-params">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
-
- <xsl:key name="env-param" match="/root/env/param" use="@name"/>
-
- <xsl:variable name="prefix">
- <xsl:choose>
- <xsl:when test="key('env-param', 'm_new_class') != ''">
- <xts:string id="IDS_ADDENTRIES_TITLE_NEW_JOB"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="key('env-param', 'm_name')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:template match="/">
- <xts:sequence>
- <xsl:choose>
- <!-- call email options morphlet for email options -->
- <xsl:when test="starts-with(/root/env/param[@name='controller_state'],'email')">
- <dlgctrl:XTS2Request>
- <dlgctrl:target>/portal/emailOptions/email_options.xts</dlgctrl:target>
- <dlgctrl:stackName>email_options</dlgctrl:stackName>
- <req-params:param name="options">
- <xsl:choose>
- <xsl:when test="key('env-param','deliveryOptions') != ''">
- <xsl:value-of select="key('env-param','deliveryOptions')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="key('env-param','options')"/>
- </xsl:otherwise>
- </xsl:choose>
- </req-params:param>
- <req-params:param name="titlePrefix"><xts:string id="IDS_EMAIL_OPTIONS_TITLE_PREFIX"/></req-params:param>
- <req-params:param name="titlePostfix"><xsl:value-of select="$prefix"/></req-params:param>
- <req-params:param name="defaultTarget"><xsl:value-of select="key('env-param','m')"/></req-params:param>
- <req-params:param name="useJobOptions">true</req-params:param>
- </dlgctrl:XTS2Request>
- </xsl:when>
- <!-- call add entries morphlet for mobile recipients -->
- <xsl:otherwise>
- <dlgctrl:XTS2Request>
- <dlgctrl:target>/portal/addEntries/add_entries.xts</dlgctrl:target>
- <dlgctrl:stackName>job_default_run_options</dlgctrl:stackName>
- <req-params:param name="defaultTarget"><xsl:value-of select="key('env-param','m')"/></req-params:param>
- <req-params:param name="titlePostfix"><xsl:value-of select="key('env-param','m_name')"/></req-params:param>
- <req-params:param name="defaultSearchPath">/directory</req-params:param>
- <req-params:param name="showUsers">true</req-params:param>
- <req-params:param name="withCC">false</req-params:param>
- <req-params:param name="addEntriesUI"><xsl:value-of select="'recipients'"/></req-params:param>
- <req-params:param name="returnProperties">
- <req-params:property name="userName"/>
- </req-params:param>
- </dlgctrl:XTS2Request>
- </xsl:otherwise>
- </xsl:choose>
-
- </xts:sequence>
- <xts:sequence>
- <xts:append select="/root/env">
- <param name="genJobDefinitionSummary">true</param>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- <!--
- ===============================================================================================
- processReponse - Process the response from the callMorphlet block and either displays
- the markup or processes the results
- ===============================================================================================
- -->
- <xts:block id="processResponse" path="/portal/emailOptions/logicsheets/process_email_options.xslt" processor="XSLT" dependency="callMorphlet" type="exec" condition=".[starts-with(/root/env/param[@name='controller_state'],'email')]" 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>
-
- <!--
- ===============================================================================================
- getAddEntriesResponse - Get the response from the addEntries callMorphlet block
- ===============================================================================================
- -->
- <xts:block id="getAddEntriesResponse" path="/portal/mobileOptions/logicsheets/get_add_entries_response.xslt" processor="XSLT" dependency="callMorphlet" type="exec" condition=".[starts-with(/root/env/param[@name='controller_state'],'mobile')]" mandatory="false">
- <xts:logicsheet path="logicsheets/presentation/dialog/controller-templates.xsl"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- </xts:block>
-
- <!--
- ===============================================================================================
- processMobileEntries - Process the response from the addEntries callMorphlet block and processes the results
- ===============================================================================================
- -->
- <xts:block id="processMobileEntries" path="/portal/mobileOptions/logicsheets/process_mobile_entries.xslt" processor="XSLT" dependency="getAddEntriesResponse" type="exec" mandatory="false">
- <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- </xts:block>
- <!--
- ===============================================================================================
- getContent
- ===============================================================================================
- -->
- <xts:block id="getContent" dependency="processResponse processMobileEntries formlogic_init" processor="XSLT" type="exec" condition=".[not(/root/env/param[@name='controller_state']) or /root/env/param[@name='controller_state']='']" mandatory="false">
- <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
- xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
- xmlns:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
-
- <pf:serialize-xml/>
- <pf:variables/>
- <cml:object-predicates/>
-
- <xsl:template match="/">
- <xts:sequence>
- <!-- we always need to expand the blob to get the step name for the title -->
- <xsl:if test="key('env-param','jobOptions')!=''">
- <xts:append>
- <xsl:value-of select="xtsext:web64decode( xtsext:cafaction('sign_unwrap', string( /root/env/param[@name = 'jobOptions'] )), true() )" disable-output-escaping="yes"/>
- </xts:append>
- <xts:append>
- <deliveryOptionsQueries>
- <xts:transform src="transforms/portal/options/generateCMQueriesForDeliveryInfo.xslt" processor="XSLT">
- <root>
- <checkUIHelpers>true</checkUIHelpers>
- <queryReply>
- <xts:queryNode select="/root/*[local-name()='jobOptions']"/>
- </queryReply>
- <xts:queryNode select="/root/*[local-name()='jobOptions']/*[local-name()='UIHelpers']"/>
- </root>
- </xts:transform>
- </deliveryOptionsQueries>
- </xts:append>
- </xsl:if>
- </xts:sequence>
- <xts:sequence>
- <xts:append>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <cm:requests>
- <!-- Page definitions -->
- <cm:query>
- <cm:search>
- <xsl:text>/configuration/pageDefinition</xsl:text>
- <xsl:value-of select="$visibility-predicate"/>
- </cm:search>
- <cm:properties>
- <cm:property name="displaySequence"/>
- <cm:property name="defaultName"/>
- <cm:property name="searchPath"/>
- </cm:properties>
- <cm:sortBy>
- <cm:sort name="displaySequence" order="descending"/>
- </cm:sortBy>
- </cm:query>
- <!-- Get the installed componentID -->
- <cm:query>
- <cm:search>/configuration//dispatcher/installedComponent</cm:search>
- <cm:properties>
- <cm:property name="componentID"/>
- </cm:properties>
- </cm:query>
- <!-- need to get all the archiveLocations -->
- <cm:query>
- <cm:search>
- <xsl:text>/configuration/archiveLocation</xsl:text>
- <xsl:value-of select="$visibility-predicate"/>
- </cm:search>
- <cm:properties>
- <cm:property name="searchPath"/>
- <cm:property name="defaultName"/>
- </cm:properties>
- <cm:sortBy>
- <cm:sort name="defaultName" order="ascending"/>
- </cm:sortBy>
- </cm:query>
- </cm:requests>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </xts:append>
- </xts:sequence>
- <!-- unpack the jobSteps so we can determine what types of job steps are in this job -->
- <xsl:if test="key('env-param','jobSteps')">
- <xts:sequence>
- <xts:append>
- <xsl:value-of select="xtsext:web64decode( xtsext:cafaction('sign_unwrap', string( key('env-param','jobSteps') )), true() )" disable-output-escaping="yes"/>
- </xts:append>
- </xts:sequence>
- </xsl:if>
-
- <!-- get a list of installed components -->
- <xts:sequence>
- <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>
- <!-- if we have a language blob, then unpack it -->
- <xsl:if test="key('env-param','selected_languages')">
- <xts:sequence>
- <xts:append>
- <xsl:value-of select="xtsext:xmldecode( string( /root/env/param[@name = 'selected_languages'] ) )" disable-output-escaping="yes"/>
- </xts:append>
- </xts:sequence>
- </xsl:if>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- queryDeliveryOptionsInfo:
- Query CM for the necessary information to build the delivery options summaries
- ===============================================================================================
- -->
- <xts:block id="queryDeliveryOptionsInfo" dependency="getContent" type="exec" mode="interpret" processor="XSLT" condition=".[/root/deliveryOptionsQueries/*[local-name()='query'] and (not(/root/env/param[@name='controller_state']) or /root/env/param[@name='controller_state']='')]" mandatory="false">
- <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:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
-
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append>
- <deliveryOptionsInfo>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <cm:requests>
- <xsl:copy-of select="/root/deliveryOptionsQueries/*[local-name()='query']"/>
- </cm:requests>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </deliveryOptionsInfo>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- <!--
- ===============================================================================================
- appendParams
- Produce default runOption and form fields under /root/env
- Block should only get executed if
- - it's the first time we hit the page
- ===============================================================================================
- -->
- <xts:block id="appendParams" processor="XSLT" type="exec" dependency="queryDeliveryOptionsInfo" condition=".[not(/root/env/param[@name = 'run_options_visited']) and (not(/root/env/param[@name='controller_state']) or /root/env/param[@name='controller_state']='')]" mandatory="false">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1"
- xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
- xmlns:set="http://exslt.org/sets"
- exclude-result-prefixes="xsl send" extension-element-prefixes="set">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:key name="recipient-search-paths" match="/root/jobOptions/options/value/item[@xsi:type='bus:mobileOptionSearchPathMultipleObjectArray']/value/item" use="."/>
- <pf:variables/>
- <pf:serialize-xml/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:delete select="/root/env/param[@name='m_ro_outputFormat_HTML']"/>
- <xts:delete select="/root/env/param[@name='m_ro_outputF_HTML_Type']"/>
- <xsl:if test="/root/jobOptions/*[local-name()='options']">
- <xts:append>
- <extractedOptions>
- <xts:transform src="transforms/portal/options/extractEmailOptions.xslt" processor="XSLT">
- <xsl:copy-of select="/root/jobOptions/*[local-name()='options']"/>
- </xts:transform>
- </extractedOptions>
- </xts:append>
- </xsl:if>
-
- <xts:append select="/root/env">
- <!-- save the currentEnv to be unpacked once we return from the step options page -->
- <xsl:variable name="jobDefinitionEnv">
- <xsl:call-template name="serialize-xml">
- <xsl:with-param name="node-set" select="/root/env/param[@name != 'jobOptions' and @name != 'jobSteps' and not(starts-with(@name, 'stack_') or @name = 'ps_nav_source' or @name = 'ps_nav_stack' or @name = 'm' or @name = 'ps_nav_op')]"/>
- </xsl:call-template>
- </xsl:variable>
- <param name="jobDefinitionEnv">
- <xsl:value-of select="xtsext:cafaction( concat('sign_wrap_setpassportid_', $passport), xtsext:web64encode( string( $jobDefinitionEnv ), true()))"/>
- </param>
- <!-- web64encode the email options so they can be passed to the email options dialog -->
- <xts:transform src="portal/controls/create_web64_param.xslt" processor="XSLT">
- <param name="deliveryOptions">
- <passport><xsl:value-of select="$passport"/></passport>
- <markup>
- <xts:transform name="XMLEncode">
- <xts:transform src="transforms/portal/options/buildOptions.xslt" processor="XSLT">
- <root>
- <xts:queryNode select="/root/extractedOptions/emailOptions/*"/>
- </root>
- </xts:transform>
- </xts:transform>
- </markup>
- </param>
- </xts:transform>
- <!-- web64encode the mobile options so they can be passed to the mobile options process -->
- <xts:transform src="portal/controls/create_web64_param.xslt" processor="XSLT">
- <param name="mobileOptions">
- <passport><xsl:value-of select="$passport"/></passport>
- <markup>
- <xts:transform name="XMLEncode">
- <xts:transform src="transforms/portal/options/buildOptions.xslt" processor="XSLT">
- <root>
- <xts:queryNode select="/root/extractedOptions/mobileOptions/*"/>
- </root>
- </xts:transform>
- </xts:transform>
- </markup>
- </param>
- </xts:transform>
-
- <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/buildOptions.xslt" processor="XSLT">
- <root>
- <xts:queryNode select="/root/extractedOptions/notEmailOptions/*"/>
- </root>
- </xts:transform>
- <deliverySection>true</deliverySection>
- <jobDefinition>true</jobDefinition>
- <defaultOptions>true</defaultOptions>
- <xsl:choose>
- <!-- existing job with no options set -->
- <xsl:when test="/root/jobOptions/*[local-name()='options'] and not(/root/jobOptions/*[local-name()='options']/*[local-name()='value']/*[local-name()='item']/*[local-name()='name'] = 'outputFormat')">
- <allowRestrictedDefaults>false</allowRestrictedDefaults>
- </xsl:when>
- <!-- or existing job with options set -->
- <xsl:otherwise>
- <allowRestrictedDefaults>true</allowRestrictedDefaults>
- </xsl:otherwise>
- </xsl:choose>
- <preferences>
- <xsl:copy-of select="/root/header/*[local-name() = 'biBusHeader']/*[local-name() = 'userPreferenceVars']/*"/>
- </preferences>
- <capabilities>
- <xsl:copy-of select="/root/session/param[@name='capabilities']/*"/>
- </capabilities>
- <serviceDefaults>
- <xsl:copy-of select="/root/configuration/property[@name='serviceDefaultOptions']/*/value"/>
- </serviceDefaults>
- <system>
- <param name="reportFormats">
- <xsl:copy-of select="/root/system/param[@name='reportFormats']/*"/>
- </param>
- </system>
- <defaultArchiveLocation>
- <!-- the first archive in the cm response is the default -->
- <xsl:copy-of select="/root/cm:queryResponse/cm:queryReply/cm:archiveLocation[1]"/>
- </defaultArchiveLocation>
- </root>
- </xts:transform>
-
- <xsl:choose>
- <!-- if we needed to query CM for missing information, then regenerate the UIHelpers with the new information gotten from CM -->
- <xsl:when test="/root/*[local-name()='deliveryOptionsInfo']">
- <xsl:call-template name="dt:generateUIHelpersFromOptions">
- <xsl:with-param name="queryReplyPath" select="/root/*[local-name()='jobOptions']"/>
- <xsl:with-param name="deliveryInfo" select="/root/deliveryOptionsInfo/*[local-name()='queryResponse']"/>
- <xsl:with-param name="appendPath" select="'/root/env'"/>
- <xsl:with-param name="currentReply" select="'1'"/>
- <xsl:with-param name="genParams" select="true()"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <!-- append summary information to the DOM so our templates can use it -->
- <param name="emailSummary"><xsl:value-of select="/root/jobOptions/*[local-name()='UIHelpers']/*[local-name()='emailSummary']"/></param>
- <param name="emailRecipientsCount"><xsl:value-of select="/root/jobOptions/*[local-name()='UIHelpers']/*[local-name()='emailRecipientsCount']"/></param>
- <param name="emailDescription"><xsl:value-of select="/root/jobOptions/*[local-name()='UIHelpers']/*[local-name()='emailRecipients']"/></param>
- <param name="mobileSummary"><xsl:value-of select="/root/jobOptions/*[local-name()='UIHelpers']/*[local-name()='mobileSummary']"/></param>
- <param name="mobileRecipientsCount"><xsl:value-of select="/root/jobOptions/*[local-name()='UIHelpers']/*[local-name()='mobileRecipientsCount']"/></param>
- <param name="mobileDescription"><xsl:value-of select="/root/jobOptions/*[local-name()='UIHelpers']/*[local-name()='mobileRecipients']"/></param>
- <param name="printerSummary"><xsl:value-of select="/root/jobOptions/*[local-name()='UIHelpers']/*[local-name()='printerSummary']"/></param>
- <param name="hasRecipients"><xsl:value-of select="/root/jobOptions/*[local-name()='UIHelpers']/*[local-name()='hasRecipients']"/></param>
- <param name="a11ySummary"><xsl:value-of select="/root/jobOptions/*[local-name()='UIHelpers']/*[local-name()='a11ySummary']"/></param>
- </xsl:otherwise>
- </xsl:choose>
- </xts:append>
-
- <!-- set the mobileDescription the first time we hit the page -->
- <xsl:if test="not(/root/jobOptions/*[local-name()='UIHelpers']/*[local-name()='mobileRecipients'])">
- <xts:delete select="/root/env/param[@name='mobileDescription']"/>
- <xts:append select="/root/env">
- <param name="mobileDescription"><xts:string id="IDS_OTHERRUN_MOBILE_NO_RECIPIENTS"/></param>
- </xts:append>
- </xsl:if>
-
- <xts:delete select="/root/extractedOptions"/>
- </xts:sequence>
- <!-- recipients -->
- <!-- this sequence converts the list of mobile recipients from the job options found in the bus:mobileOptionSearchPathMultipleObjectArray
- into a format that the add_entries morphlet requires - a <selectedEntries> node. CM is queried to get the required information such as
- userName, class etc...
- -->
- <xts:sequence>
- <xts:append select="/root">
- <xsl:variable name="unique-search-paths" select="set:distinct(/root/jobOptions/options/value/item[@xsi:type='bus:mobileOptionSearchPathMultipleObjectArray']/value/item)"/>
- <selectedEntries>
- <!-- transform the CM result into the same structure that the add entries returns. -->
- <xsl:if test="/root/jobOptions/options/value/item[@xsi:type='bus:mobileOptionSearchPathMultipleObjectArray']">
- <xts:transform src="portal/mobileOptions/transforms/gen-standard-list.xslt" processor="XSLT">
- <root>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT" >
- <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/" xmlns:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/">
- <cm:requests>
- <xsl:for-each select="$unique-search-paths">
- <xsl:if test=". != ''">
- <cm:query>
- <cm:search>
- <xsl:value-of select="."/>
- </cm:search>
- <cm:properties>
- <cm:property name="defaultName"/>
- <cm:property name="searchPath"/>
- <cm:property name="userName"/>
- <cm:property name="objectClass"/>
- <cm:property name="ancestors"/>
- <cm:property name="hidden"/>
- </cm:properties>
- </cm:query>
- </xsl:if>
- </xsl:for-each>
- </cm:requests>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- <action>recipients</action>
- <unknownText><xts:string id="IDS_OTHERRUN_UNKNOWN_RECIPIENT"/></unknownText>
- </root>
- </xts:transform>
- </xsl:if>
- </selectedEntries>
- </xts:append>
- </xts:sequence>
-
- </xsl:template>
- <dt:generateUIHelpersFromOptions/>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- encodeSelectedEntries - web64encode the <selectedEntries> node
- ===============================================================================================
- -->
- <xts:block id="encodeSelectedEntries" path="/portal/mobileOptions/logicsheets/encode_selected_entries.xslt" processor="XSLT" dependency="appendParams" type="exec" condition=".[(not(/root/env/param[@name='controller_state']) or /root/env/param[@name='controller_state']='')]" mandatory="false">
- <xts:logicsheet path="logicsheets/presentation/dialog/controller-templates.xsl"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- </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="appendParams" type="exec" condition=".[(not(/root/env/param[@name='controller_state']) or /root/env/param[@name='controller_state']='') and not(/root/env/param[@name='run_options_visited']) and not(/root/jobOptions/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and *[local-name()='name']='email']/*[local-name()='value']='true')]" 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='controller_state']) or /root/env/param[@name='controller_state']='') and not(/root/env/param[@name='run_options_visited']) and not(/root/jobOptions/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and *[local-name()='name']='email']/*[local-name()='value']='true')]" 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>
- <!--
- ================================================================================
- create an encrypted credention for any option password
- ================================================================================
- -->
- <xts:block id="processOptionPassword" nodelist="env" path="/portal/genOptionCredentials.xslt" dependency="formlogic_init" type="exec" mode="interpret" processor="XSLT" mandatory="false" condition=".[/root/env/param[contains(@name, 'Password_runOption')] != '']"/>
- <!--
- ================================================================================
- Performs option actions (i.e. clear PDF options)
- ================================================================================
- -->
- <xts:block id="perform_action" nodelist="env" path="/transforms/portal/options/perform_action.xslt" processor="XSLT" type="exec" dependency="processOptionPassword" condition=".[/root/env/param[@name='option_op'] != '']" mandatory="false"/>
-
- <!-- HTML output ======================================================= -->
- <xts:block id="format" mode="output" processor="XSLT" type="exec" dependency="perform_action processDefaultEmailOptions appendParams encodeSelectedEntries" mimeType="text/html" condition=".[not(/root/env/param[@name='controller_state']) or /root/env/param[@name='controller_state']='']" mandatory="false">
- <!-- logicsheets -->
- <!-- portal specific information -->
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <!-- Dialog specific logicsheets -->
- <xts:logicsheet path="logicsheets/deploymentlogic.xsl"/>
- <xts:logicsheet path="logicsheets/contentadmin.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/ui-templates.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/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 dt dp df cf cp bus"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- 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:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/"
- xmlns:dpl="http://developer.cognos.com/schemas/xts/logicsheets/deployment/"
- 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:adm="http://developer.cognos.com/schemas/xts/logicsheets/contentadmin/"
- xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
- 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="deployment-method" select="'import'"/>
- <xsl:variable name="IsIndexUpdateServiceInstalled" select="/root/cm:queryResponse/cm:queryReply[2]/cm:installedComponent/cm:componentID/cm:value = 'indexUpdateService'"/>
- <cml:single-object/>
-
- <!-- time varibales needed for the calendar control -->
- <xsl:variable name="mname" select="'job_default_run_options.xts'"/>
- <!-- start the output -->
- <xsl:template match="/root">
- <xsl:variable name="object-name">
- <xsl:choose>
- <xsl:when test=" key('env-param', 'm_new_class') != '' ">
- <xts:string id="IDS_ADDENTRIES_TITLE_NEW_JOB"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="key('env-param', 'm_name')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="browserTitle">
- <xts:string id="IDS_JOB_RUN_OPTIONS_TITLE">
- <xts:param name="obj_name"><span lang="{$contentLocale}"><xsl:value-of select="$object-name"/></span></xts:param>
- </xts:string>
- </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=""/> <!-- Help system -->
- </dp:script>
-
- <script language="javascript" src="{$webcontent}/{$app}/js/runOptions.js"/>
- <script language="javascript" src="{$webcontent}/{$app}/js/jobOptions.js"/>
-
- <script language="javascript">
- <dt:runOptionValidation/>
- g_jobOptions_msg_array = new Array();
- g_jobOptions_msg_array['IDS_PROP_JOB_NO_DEFAULT_SET'] = '<xts:string id="IDS_PROP_JOB_NO_DEFAULT_SET" encode="javascript"/>';
- g_jobOptions_msg_array['IDS_DEPLOYMENT_SELECT_UPGRADE_RADIO_UPGRADE'] = '<xts:string id="IDS_DEPLOYMENT_SELECT_UPGRADE_RADIO_UPGRADE" encode="javascript"/>';
- g_jobOptions_msg_array['IDS_DEPLOYMENT_SELECT_UPGRADE_RADIO_KEEP'] = '<xts:string id="IDS_DEPLOYMENT_SELECT_UPGRADE_RADIO_KEEP" encode="javascript"/>';
- g_jobOptions_msg_array['IDS_DEPLOYMENT_PRESERVE_STOREIDS_RADIO_UPGRADE'] = '<xts:string id="IDS_DEPLOYMENT_PRESERVE_STOREIDS_RADIO_UPGRADE" encode="javascript"/>';
- g_jobOptions_msg_array['IDS_DEPLOYMENT_DO_NOT_PRESERVE_STOREIDS_RADIO_UPGRADE'] = '<xts:string id="IDS_DEPLOYMENT_DO_NOT_PRESERVE_STOREIDS_RADIO_UPGRADE" encode="javascript"/>';
- g_jobOptions_msg_array['IDS_DEPLOYMENT_OPTIONS_INCLUDE_PRESERVE_STOREIDS'] = '<xts:string id="IDS_DEPLOYMENT_OPTIONS_INCLUDE_PRESERVE_STOREIDS" encode="javascript"/>';
- g_jobOptions_msg_array['IDS_DEPLOYMENT_OPTIONS_DO_NOT_INCLUDE_PRESERVE_STOREIDS'] = '<xts:string id="IDS_DEPLOYMENT_OPTIONS_DO_NOT_INCLUDE_PRESERVE_STOREIDS" encode="javascript"/>';
- g_jobOptions_msg_array['IDS_INDEX_UPDATE_FORCE_OPTION_CHANGED_ENTRIES'] = '<xts:string id="IDS_INDEX_UPDATE_FORCE_OPTION_CHANGED_ENTRIES" encode="javascript"/>';
- g_jobOptions_msg_array['IDS_INDEX_UPDATE_FORCE_OPTION_ALL_ENTRIES'] = '<xts:string id="IDS_INDEX_UPDATE_FORCE_OPTION_ALL_ENTRIES" encode="javascript"/>';
- g_jobOptions_msg_array['IDS_LIST_SEPARATOR'] = '<xts:string id="IDS_LIST_SEPARATOR" encode="javascript"/>';
- g_jobOptions_msg_array['IDS_STEP_RUN_PRODUCE_OUTPUTS'] = '<xts:string id="IDS_STEP_RUN_PRODUCE_OUTPUTS" encode="javascript"/>';
- g_jobOptions_msg_array['IDS_OTHERRUN_FORMAT_PDF'] = '<xts:string id="IDS_OTHERRUN_FORMAT_PDF" encode="javascript"/>';
- g_jobOptions_msg_array['IDS_OTHERRUN_FORMAT_CSV'] = '<xts:string id="IDS_OTHERRUN_FORMAT_CSV" encode="javascript"/>';
- g_jobOptions_msg_array['IDS_OTHERRUN_FORMAT_XLS_2002'] = '<xts:string id="IDS_OTHERRUN_FORMAT_XLS_2002" encode="javascript"/>';
- g_jobOptions_msg_array['IDS_OTHERRUN_FORMAT_XML'] = '<xts:string id="IDS_OTHERRUN_FORMAT_XML" encode="javascript"/>';
- g_jobOptions_msg_array['IDS_PROP_RUN_A11Y_SUPPORT'] = '<xts:string id="IDS_PROP_RUN_A11Y_SUPPORT" encode="javascript"/>';
- g_jobOptions_msg_array['IDS_OTHERRUN_SAVE_REPORTS'] = '<xts:string id="IDS_OTHERRUN_SAVE_REPORTS" encode="javascript"/>';
- g_jobOptions_msg_array['IDS_OTHERRUN_PRINT_REPORTS'] = '<xts:string id="IDS_OTHERRUN_PRINT_REPORTS" encode="javascript"/>';
- g_jobOptions_msg_array['IDS_OTHERRUN_BURST_MULTIPLE_REPORTS'] = '<xts:string id="IDS_OTHERRUN_BURST_MULTIPLE_REPORTS" encode="javascript"/>';
- g_jobOptions_msg_array['IDS_OTHERRUN_ENABLE_INTERACTIVITY'] = '<xts:string id="IDS_OTHERRUN_ENABLE_INTERACTIVITY" encode="javascript"/>';
- g_jobOptions_msg_array['IDS_OTHERRUN_SAVE_FILE_SYSTEM'] = '<xts:string id="IDS_OTHERRUN_SAVE_FILE_SYSTEM" encode="javascript"/>';
- g_jobOptions_msg_array['IDS_STEP_RUN_REFRESH_REPORT_CACHE'] = '<xts:string id="IDS_STEP_RUN_REFRESH_REPORT_CACHE" encode="javascript"/>';
- <xsl:variable name="PDFOptionSummary">
- <dt:buildPDFOptionSummary/>
- </xsl:variable>
- var g_PDFOptionSummary = '<xsl:value-of select="xtsext:javascriptencode(string($PDFOptionSummary))"/>';
- <xsl:variable name="outputLocaleSummary">
- <xsl:choose>
- <xsl:when test="key('env-param','m_ro_outputLocale')">
- <xsl:for-each select="key('env-param','m_ro_outputLocale')">
- <xsl:sort select="."/>
- <xsl:variable name="locale" select="."/>
- <xsl:value-of select="/root/config/param[@name='locale']/locale[@type='contentLocale' and id=$locale]/displayName"/>
- <xsl:if test="position() != last()"><xts:string id="IDS_LIST_SEPARATOR"/><xsl:text> </xsl:text></xsl:if>
- </xsl:for-each>
- </xsl:when>
- <xsl:otherwise>
- <xsl:for-each select="/root/languages/language">
- <xsl:sort select="."/>
- <xsl:variable name="locale" select="."/>
- <xsl:value-of select="/root/config/param[@name='locale']/locale[@type='contentLocale' and id=$locale]/displayName"/>
- <xsl:if test="position() != last()"><xts:string id="IDS_LIST_SEPARATOR"/><xsl:text> </xsl:text></xsl:if>
- </xsl:for-each>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- var g_outputLocaleSummary = '<xsl:value-of select="xtsext:javascriptencode(string($outputLocaleSummary))"/>';
- var g_emailSummary = '<xsl:value-of select="xtsext:javascriptencode(string(key('env-param','emailSummary')))"/>: <xsl:value-of select="xtsext:javascriptencode(string(key('env-param','emailDescription')))"/>';
- var g_mobileSummary = '<xsl:value-of select="xtsext:javascriptencode(string(key('env-param','mobileSummary')))"/>: <xsl:value-of select="xtsext:javascriptencode(string(key('env-param','mobileDescription')))"/>';
- <xsl:variable name="archiveSummary">
- <dt:buildArchiveOptionSummary/>
- </xsl:variable>
-
- var g_archiveSummary = '<xsl:value-of select="xtsext:javascriptencode(string($archiveSummary))"/>';
- function init() {
- initJobOptions('<xsl:value-of select="$IsIndexUpdateServiceInstalled"/>');
- initRunOptions();
- }
- </script>
- <utml:form name="pform" method="post" action="{$gateway}">
- <utml:exclusion-list><xsl:value-of select="' selected_languages language deliverySection confirm_m_pdf_userPassword_runOption m_pdf_userPassword_runOption_Encrypted confirm_m_pdf_ownerPassword_runOption m_pdf_ownerPassword_runOption_Encrypted '"/></utml:exclusion-list>
- <utml:read-only>false</utml:read-only>
- <utml:input type="hidden" name="ps_nav_op" value="maintain" utml:update="false"/>
- <utml:input type="hidden" name="controller_state" value="" utml:update="false"/>
- <utml:input type="hidden" name="report_options_collapsed" value="true"/>
- <xsl:if test="$IsIndexUpdateServiceInstalled">
- <utml:input type="hidden" name="index_update_task_options_collapsed" value="true"/>
- </xsl:if>
- <!-- save list of selected mobile recipients -->
- <utml:input type="hidden" name="selectedEntries" utml:update="false">
- <utml:value><xsl:value-of select="key('env-param', 'selectedEntries')"/></utml:value>
- </utml:input>
- <utml:input type="hidden" name="deployment_options_collapsed" value="true"/>
-
- <!-- this will let us know if we've visited this page -->
- <utml:input type="hidden" name="run_options_visited" value="true"/>
- <utml:input type="hidden" name="userHitOK" value="false" utml:update="false"/>
-
- <utml:input type="hidden" name="preserve_pdf_userPwd">
- <xsl:attribute name="value">
- <xsl:choose>
- <xsl:when test="key('env-param','preserve_pdf_userPwd') !=''"><xsl:value-of select="key('env-param','preserve_pdf_userPwd')"/></xsl:when>
- <xsl:when test="key('env-param','m_pdf_userPassword_runOption_Encrypted')!=''">true</xsl:when>
- <xsl:otherwise>false</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- </utml:input>
- <utml:input type="hidden" name="preserve_pdf_ownerPwd">
- <xsl:attribute name="value">
- <xsl:choose>
- <xsl:when test="key('env-param','preserve_pdf_ownerPwd') !=''"><xsl:value-of select="key('env-param','preserve_pdf_ownerPwd')"/></xsl:when>
- <xsl:when test="key('env-param','m_pdf_ownerPassword_runOption_Encrypted')!=''">true</xsl:when>
- <xsl:otherwise>false</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- </utml:input>
- <!-- header -->
- <dp:header>
- <dp:title>
- <xsl:copy-of select="$browserTitle"/>
- </dp:title>
- <dp:description>
- <xts:string id="IDS_JOB_RUN_OPTIONS_INTRO"/>
- </dp:description>
- </dp:header>
-
- <!-- we force the user to select a format when overriding the options, so check for the
- existence of the outputFormat runOption when deciding if options have been overriden -->
- <xsl:variable name="reportOptionsExists" select="/root/jobOptions/*[local-name()='options']/*[local-name()='value']/*[local-name()='item']/*[local-name()='name'] = 'outputLocale'"/>
- <xsl:variable name="override_outputFormat" select="key('env-param','override_outputFormat_option')='true'"/>
- <xsl:variable name="indexUpdateTaskOptionsExists" select="/root/jobOptions/*[local-name()='options']/*[local-name()='value']/*[local-name()='item']/*[local-name()='name'] = 'force'"/>
- <xsl:variable name="deploymentOptionsExists" select="/root/jobOptions/*[local-name()='options']/*[local-name()='value']/*[local-name()='item']/*[local-name()='name'] = 'upgradeClasses' or /root/jobOptions/*[local-name()='options']/*[local-name()='value']/*[local-name()='item']/*[local-name()='name'] = 'preserveStoreIDs'"/>
- <!-- variables to determine what type of tasks are in this job -->
- <xsl:variable name="IndexUpdateJobStepExists" select="/root/*[local-name()='steps']/cm:queryResponse/*[local-name()='jobStepDefinition']/*[local-name()='stepObject']/*[local-name()='contentTask']/*[local-name()='objectClass'] = 'indexUpdateClass'"/>
- <xsl:variable name="importDeploymentJobStepExists" select="/root/*[local-name()='steps']/cm:queryResponse/*[local-name()='jobStepDefinition']/*[local-name()='stepObject']/*[local-name()='importDeployment']/*[local-name()='objectClass'] = 'importDeployment'"/>
- <!-- body -->
- <lyt:layout style="1">
- <!-- report options -->
- <lyt:section>
- <!-- override options -->
- <cf:dynamicExpandingSection name="expandedReportOptions" indent="false" initialize="false" visible="false" title="IDS_JOB_RUN_OPTIONS_REPORT_OPTIONS" onclick="clickReportOptionSection();">
- <dp:choice width="100%">
- <dp:section1>
- <utml:input type="checkbox" name="override_default_options" value="true" utml:track="true" onclick="toggleCheckbox();" id="ctrl_override_default_options">
- <xsl:if test="$reportOptionsExists or $override_outputFormat">
- <xsl:attribute name="checked">checked</xsl:attribute>
- </xsl:if>
- <xsl:if test="$override_outputFormat">
- <xsl:attribute name="disabled">true</xsl:attribute>
- </xsl:if>
- </utml:input>
- </dp:section1>
- <dp:section2 for="ctrl_override_default_options">
- <xts:string id="IDS_STEP_RUN_OVERRIDE_DEFAULT_JOB_OPTIONS"/>
- </dp:section2>
- <dp:section3 width="100%">
- <!-- If the step was previously saved with XLS format but XLS format is now disabled the format control will default
- to XLS single sheet so make sure it's marked as changed -->
- <xsl:if test="key('env-param','m_ro_outputFormat_XLS2000')='XLS' and xtsext:cafaction('get_configsignedreporturls', '') = 'true'">
- <utml:input type="hidden" name="changed_m_ro_outputFormat_XLS2000" value="1"/>
- </xsl:if>
- <!-- report cache -->
- <cf:dynamicDiv name="savePromptCacheDiv">
- <dp:box valign="top" width="100%" noSpace="true">
- <dp:boxSection width="100%">
- <dp:choice>
- <dp:section3>
- <ut:runTo/>
- </dp:section3>
- </dp:choice>
- </dp:boxSection>
- </dp:box>
- </cf:dynamicDiv>
-
- <!-- read only default options -->
- <ut:defaultReportOptionsDiv genCacheDiv="true"/>
-
- <!-- override options -->
- <cf:dynamicDiv name="overrideOptionsDiv">
- <dp:box valign="top" width="100%">
- <dp:boxSection width="50%">
- <dp:choice>
- <dp:section3>
- <!-- format -->
- <ut:format/>
- </dp:section3>
- </dp:choice>
- <br/>
- <!-- a11y -->
- <ut:a11yOption/>
- </dp:boxSection>
- <dp:boxSection width="50%">
- <!-- language -->
- <ut:language/>
- <br/>
-
- <!-- delivery -->
- <ut:delivery/>
-
- <!-- burst -->
- <xsl:if test="key('session-param', 'capabilities')/canUseBursting">
- <br/>
- <ut:burst/>
- </xsl:if>
- </dp:boxSection>
- </dp:box>
- </cf:dynamicDiv>
-
- <cf:dynamicDiv name="overrideCacheOptionsDiv">
- <dp:box valign="top" width="100%">
- <dp:boxSection width="100%">
- <dp:choice>
- <dp:section3>
- <!-- language -->
- <ut:language createHiddenInputs="false"/>
- </dp:section3>
- </dp:choice>
- </dp:boxSection>
- </dp:box>
- </cf:dynamicDiv>
- </dp:section3>
- </dp:choice>
- </cf:dynamicExpandingSection>
- <!-- show the summary of report options if the report options section is collapsed -->
- <cf:dynamicDiv name="collapsedReportOptions" visible="true" initialize="false">
- <dp:list>
- <dp:section>
- <dp:text wrap="true" nospace="true">
- <div id="reportOptionSummary"/>
- </dp:text>
- </dp:section>
- </dp:list>
- </cf:dynamicDiv>
- </lyt:section>
-
-
- <!-- deployment options -->
- <lyt:section>
- <!-- only display this if user has Content Store Capabilities or importDeployment tasks exist in this job -->
- <xsl:if test="$hasCSTCapability or $importDeploymentJobStepExists">
- <cf:dynamicExpandingSection name="expandedDeploymentOptions" indent="false" initialize="false" visible="false" title="IDS_JOB_RUN_OPTIONS_DEPLOYMENT" onclick="clickDeploymentOptionSection();">
- <dp:choice width="100%">
- <dp:section1>
- <utml:input type="checkbox" name="override_default_deployment_options" value="true" utml:track="true" onclick="toggledynamicDiv('overrideDeploymentOptionsDiv');toggledynamicDiv('defaultDeploymentOptionsDiv');" id="ctrl_override_default_deployment_options">
- <xsl:if test="$deploymentOptionsExists">
- <xsl:attribute name="checked">checked</xsl:attribute>
- </xsl:if>
- </utml:input>
- </dp:section1>
- <dp:section2 for="ctrl_override_default_deployment_options">
- <xts:string id="IDS_STEP_RUN_OVERRIDE_DEFAULT_DEPLOYMENT"/>
- </dp:section2>
- <dp:section3 width="100%">
-
- <!-- read only default options -->
- <ut:defaultDeploymentOptionsDiv/>
-
- <!-- override options -->
- <cf:dynamicDiv name="overrideDeploymentOptionsDiv">
- <dpl:archiveDeploymentOptionsRadioButtons/>
- </cf:dynamicDiv>
- </dp:section3>
- </dp:choice>
- </cf:dynamicExpandingSection>
-
- <cf:dynamicDiv name="collapsedDeploymentOptions" visible="true" initialize="false">
- <dp:list>
- <dp:section>
- <dp:text wrap="true" nospace="true">
- <div id="deploymentOptionSummary">
- </div>
- </dp:text>
- </dp:section>
- </dp:list>
- </cf:dynamicDiv>
- </xsl:if>
- </lyt:section>
- <!-- index update options -->
- <!-- Check first if the indexUpdateService are installed -->
- <lyt:section>
- <!-- only display this if user has Content Store Capabilities or indexUpdate tasks exist in this job -->
- <xsl:if test="$IsIndexUpdateServiceInstalled and ($hasCSTCapability or $IndexUpdateJobStepExists)">
- <cf:dynamicExpandingSection name="expandedIndexUpdateTaskOptions" indent="false" initialize="false" visible="false" title="IDS_JOB_RUN_OPTIONS_INDEX_UPDATE" onclick="clickIndexUpdateTaskOptionSection();">
- <dp:choice width="100%">
- <dp:section1>
- <utml:input type="checkbox" name="override_default_index_update_task_options" value="true" utml:track="true" onclick="toggledynamicDiv('overrideIndexUpdateTaskOptionsDiv');toggledynamicDiv('defaultIndexUpdateTaskOptionsDiv');" id="ctrl_override_default_index_update_task_options">
- <xsl:if test="$indexUpdateTaskOptionsExists != ''">
- <xsl:attribute name="checked">checked</xsl:attribute>
- </xsl:if>
- </utml:input>
- </dp:section1>
- <dp:section2 for="ctrl_override_default_index_update_task_options">
- <xts:string id="IDS_STEP_RUN_OVERRIDE_DEFAULT_INDEX_UPDATE_OPTIONS"/>
- </dp:section2>
- <dp:section3 width="100%">
- <!-- read only default options -->
- <ut:defaultIndexUpdateTaskOptionsDiv/>
- <!-- override options -->
- <cf:dynamicDiv name="overrideIndexUpdateTaskOptionsDiv">
- <adm:forceOptionRadioButtons/>
- </cf:dynamicDiv>
- </dp:section3>
- </dp:choice>
- </cf:dynamicExpandingSection>
-
- <!-- show the summary of indexUpdateTask options if the indexUpdateTask options section is collapsed -->
- <cf:dynamicDiv name="collapsedIndexUpdateTaskOptions" visible="true" initialize="false">
- <dp:list>
- <dp:section>
- <dp:text wrap="true" nospace="true">
- <div id="indexUpdateTaskOptionSummary">
- <xsl:variable name="jobOptions" select="/root/jobOptions/*[local-name()='options']/*[local-name()='value']/*[local-name()='item']"/>
- <dp:text>
- <xsl:choose>
- <xsl:when test="not($jobOptions[./*[local-name()='name']='force']/*[local-name()='value']) and not(/root/env/param[starts-with(@name,'m_io_f')])">
- <xts:string id="IDS_PROP_JOB_NO_DEFAULT_SET"/>
- </xsl:when>
- <xsl:when test="$jobOptions[./*[local-name()='name']='force']/*[local-name()='value'] = 'true' or /root/env/param[starts-with(@name,'m_io_f')] = 'true'">
- <xts:string id="IDS_INDEX_UPDATE_FORCE_OPTION_ALL_ENTRIES"/>
- </xsl:when>
- <xsl:when test="$jobOptions[./*[local-name()='name']='force']/*[local-name()='value'] = 'false' or /root/env/param[starts-with(@name,'m_io_f')] = 'false'">
- <xts:string id="IDS_INDEX_UPDATE_FORCE_OPTION_CHANGED_ENTRIES"/>
- </xsl:when>
- </xsl:choose>
- </dp:text>
- </div>
- </dp:text>
- </dp:section>
- </dp:list>
- </cf:dynamicDiv>
- </xsl:if>
- </lyt:section>
- </lyt:layout>
-
-
- <!-- footer -->
- <dp:footer>
- <df:button df:id="IDS_OK" df:style="href" df:href="javascript:onClickOKJobOptions();"/>
- <df:button df:id="IDS_CANCEL" df:style="stack-down"/>
- </dp:footer>
- </utml:form>
- </dp:page>
- </xsl:template>
- <ut:buildRunOptionSummary/>
- <ut:deliveryRunOptions newEmailOptions="true" showDescription="true" jobDefinition="true" showTitle="true" addBehavior="true"/>
- <ut:formatRunOptions reportingExecution="false"/>
- <ut:formatLanguage reportingExecution="false"/>
- <ut:burstTemplate showCheckbox="false" jobDefinition="true"/>
- </xsl:stylesheet>
- </xts:block>
-
- <!--
- ===============================================================================================
- debug - display debug information
- ===============================================================================================
- -->
- <xts:block id="debug" dependency="format processResponse processMobileEntries" 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>
|