123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (C) Copyright IBM Corp. 2005, 2015
- 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" resolverBase="prompting">
- <!--
- ===============================================================================================
- formlogic_init
- ===============================================================================================
- -->
- <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" type="exec" mode="interpret" processor="XSLT" condition=".[/root/env/param[starts-with(@name,'sc_target')]!='']" mandatory="false"/>
- <!--
- ===============================================================================================
- getContent - get our data from Content Manager
- ===============================================================================================
- -->
- <xts:block id="getContent" processor="XSLT" type="exec" dependency="formlogic_init checkParam">
- <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
- <xts:logicsheet path="portal/runWithOptions/logicsheets/request.xslt"/>
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/"
- xmlns:rdr="http://developer.cognos.com/schemas/xts/rdr/"
- exclude-result-prefixes="xsl xtsext rdr 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="/">
- <xsl:variable name="userPrefs" select="/root/session/param"/>
- <xsl:variable name="userPrefsDefault" select="/root/system/param[@name='defaultPortalPreferences']"/>
- <xsl:variable name="maxObjects">
- <xsl:choose>
- <xsl:when test="string(key('env-param','m_pagertotasks')) !='' and string(key('env-param','m_pagerfromtasks')) !=''">
- <xsl:value-of select="(key('env-param','m_pagertotasks') - key('env-param','m_pagerfromtasks')) + 1"/>
- </xsl:when>
- <xsl:when test="$userPrefs[@name='linesPerPage']!=''">
- <xsl:value-of select="$userPrefs[@name='linesPerPage']"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="userPrefsDefault/pref[@name='lines']"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="skipObjects">
- <xsl:choose>
- <xsl:when test="key('env-param','m_pagerfromtasks') and key('env-param','m_pagerfromtasks')!=''">
- <xsl:value-of select="key('env-param','m_pagerfromtasks')-1"/>
- </xsl:when>
- <xsl:when test="key('env-param','m_taskssection')!=''">
- <xsl:choose>
- <xsl:when test="key('env-param','m_taskssection')!='-1'">
- <xsl:value-of select="(key('env-param','m_taskssection') -1)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="($maxObjects) * -1"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>0</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xts:sequence>
- <rdr:Requests>
- <rdr:Request type="runnable">
- <rdr:searchPath>
- <xsl:value-of select="key('env-param', 'm_obj')"/>
- </rdr:searchPath>
- </rdr:Request>
- <rdr:Request type="steps" mode="agent">
- <rdr:searchPath>
- <xsl:value-of select="key('env-param', 'm_obj')"/>
- </rdr:searchPath>
- <rdr:maxObjects><xsl:value-of select="$maxObjects+1"/></rdr:maxObjects>
- <rdr:skipObjects><xsl:value-of select="$skipObjects"/></rdr:skipObjects>
- </rdr:Request>
- <rdr:Request type="credential"/>
- <rdr:Request type="accountOptions"/>
- <rdr:Request type="agentParameters">
- <rdr:searchPath>
- <xsl:value-of select="key('env-param', 'm_obj')"/>
- </rdr:searchPath>
- </rdr:Request>
- <xsl:if test="key('env-param','from_schedule_tool') = 'true'">
- <rdr:Request type="schedule">
- <rdr:searchPath>
- <xsl:value-of select="key('env-param', 'm_obj')"/>
- <xsl:text>/schedule[permission("read")]</xsl:text>
- </rdr:searchPath>
- </rdr:Request>
- </xsl:if>
- </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'])">
- <xts:append>
- <xts:transform src="transforms/portal/parameters/group-parameters.xslt" processor="XSLT">
- <root>
- <xsl:choose>
- <!-- if we're doing a run once, then take the parameters off the schedule -->
- <xsl:when test="key('env-param','from_schedule_tool') = 'true'">
- <xts:queryNode select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply']/*[local-name()='schedule']/*[local-name()='parameters']"/>
- </xsl:when>
- <xsl:otherwise>
- <xts:queryNode select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply'][5]/*/*[local-name()='parameters']"/>
- </xsl:otherwise>
- </xsl:choose>
- </root>
- </xts:transform>
- </xts:append>
- <!-- Search for parameters on the command line identified by starting with "p_"
- Add them to a new PromptValue node -->
- <xts:append select="/root">
- <PromptValues>
- <xsl:for-each select="/root/env/param[starts-with(@name, 'p_')]">
- <xsl:if test=". != ''">
- <xsl:variable name="promptValue">
- <xsl:value-of select="text()"/>
- </xsl:variable>
- <PromptValue name="{substring-after(@name,'_')}">
- <xsl:choose>
- <xsl:when test="contains($promptValue, 'selectChoices')">
- <xsl:value-of select="$promptValue" disable-output-escaping="yes"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$promptValue" disable-output-escaping="no"/>
- </xsl:otherwise>
- </xsl:choose>
- </PromptValue>
- </xsl:if>
- </xsl:for-each>
- </PromptValues>
- </xts:append>
- <xsl:if test="key('env-param','from_schedule_tool') = 'true'">
- <!-- If we're doing a run once, then we need to process the parameters saved on the agent -->
- <xsl:if test="not(key('env-param','step_options_visited'))">
- <dt:splitRunnableParameters queryNode="/root/*[local-name()='queryResponse']/*[local-name()='queryReply'][5]/*/*[local-name()='parameters']"/>
- </xsl:if>
- </xsl:if>
- </xsl:if>
- </xts:sequence>
- <!-- Every time the page is reloaded, delete the following pager parameters from the /root/env. This is required for the pager to work properly. -->
- <xts:sequence>
- <xts:delete select="/root/env/param[@name='pagerfromtasks']"/>
- <xts:delete select="/root/env/param[@name='pagertotasks']"/>
- <xts:delete select="/root/env/param[@name='pagerfrom_dtasks']"/>
- <xts:delete select="/root/env/param[@name='pagerto_dtasks']"/>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- queryDataSourcePrompts - Get the parameter data source connection/signon information from CM
- ===============================================================================================
- -->
- <xts:block id="queryDataSourcePrompts"
- nodeList="credentialParameters,runnableParameters"
- path="/portal/iPrompting/logicsheets/query-datasource.xslt"
- processor="XSLT"
- type="exec"
- dependency="getContent"
- condition=".[/root/credentialParameters or /root/runnableParameters/credentialParameters]"
- mandatory="false">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- </xts:block>
-
- <!--
- ===============================================================================================
- getBaseContent - We need to get the step information from the base object in the case of a view
- ===============================================================================================
- -->
- <xts:block id="getBaseContent" processor="XSLT" type="exec" dependency="getContent" mandatory="false" condition=".[/root/*[local-name()='queryResponse']/*[local-name()='queryReply'][1]/*/*[local-name()='objectClass']='agentDefinitionView']">
- <xts:logicsheet path="portal/runWithOptions/logicsheets/request.xslt"/>
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- 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/"
- exclude-result-prefixes="xsl xtsext rdr">
- <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="steps" mode="agent">
- <rdr:searchPath>
- <xsl:value-of select="/root/cm:queryResponse/cm:queryReply[1]/*/cm:base/*/cm:searchPath"/>
- </rdr:searchPath>
- </rdr:Request>
- </rdr:Requests>
- <xts:replace select="/root/*[local-name()='queryResponse'][1]/*[local-name()='queryReply'][2]">
- <xts:queryNode select="/root/*[local-name()='queryResponse'][2]/*[local-name()='queryReply']"/>
- </xts:replace>
- <xts:delete select="/root/*[local-name()='queryResponse'][2]"/>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- generateDefaults - generate any required default values
- ===============================================================================================
- -->
- <xts:block id="generateDefaults" processor="XSLT" type="exec" dependency="queryDataSourcePrompts">
- <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:bus="http://developer.cognos.com/schemas/bibus/3/"
- xmlns:rs="http://developer.cognos.com/schemas/reportService/1"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
- xmlns:SOAP-ENV="http://www.w3.org/2001/09/soap-envelope"
- SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- exclude-result-prefixes="xsl pf dt cm xtsext">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <pf:variables/>
- <xsl:variable name="the-account" select="/root/cm:queryResponse/cm:queryReply[4]/cm:account"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append select="/root/env">
- <xts:transform src="/portal/runWithOptions/transforms/generateDefaultParams.xslt" processor="XSLT">
- <root>
- <xsl:copy-of select="/root/env"/>
- <xsl:copy-of select="/root/user"/>
- <xsl:copy-of select="/root/system"/>
- <xsl:copy-of select="$the-account"/>
- </root>
- </xts:transform>
- </xts:append>
- <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'][5]/*"/>
- </root>
- </xts:transform>
- </root>
- </xts:transform>
- </xts:append>
-
- <!-- encode the parameters -->
- <xsl:if test="not(key('env-param','parameterDescription'))">
- <xsl:choose>
- <!-- If there are parameters on the runnable (doing a run with options) or on the schedule
- (doing a run once) -->
- <xsl:when test="/root/parameters/* or /root/credentialParameters/*">
- <dt:promptDescription/>
- </xsl:when>
- <!-- if we're doing a run once and there are parameters on the runnable -->
- <xsl:otherwise>
- <dt:promptDescription checkRunnableParameters="true"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:choose>
- <!-- Report parameters were passed in on the command line. Process them, serialize them and
- and add them to an env-param called parameterValues -->
- <xsl:when test="/root/PromptValues">
- <xsl:variable name="parameters-markup">
- <xsl:call-template name="serialize-xml">
- <xsl:with-param name="node-set">
- <xsl:call-template name="SetParameters"/>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:variable>
- <xts:append select="/root/env">
- <param name="parameterValues">
- <xsl:value-of select="$parameters-markup"/>
- </param>
- </xts:append>
- </xsl:when>
- <!-- if we're doing a run once and there are parameters on the schedule, then those parameters
- need to be passed on the execute request -->
- <xsl:when test="/root/cm:queryResponse/cm:queryReply/cm:schedule/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/cm:schedule/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:when>
- <!-- if there are parameters saved on the agent -->
- <xsl:when test="/root/*[local-name()='queryResponse']/*[local-name()='queryReply'][5]/*/*[local-name()='parameters']/*">
- <xsl:variable name="parameters-markup">
- <xsl:call-template name="serialize-xml">
- <xsl:with-param name="node-set" select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply'][5]/*/*[local-name()='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:when>
- </xsl:choose>
- </xsl:if>
- </xts:sequence>
- </xsl:template>
- <pf:serialize-xml/>
- <dt:hierarchicalParmValueItem/>
-
- <!-- template: SetParameters -->
- <xsl:template name="SetParameters">
- <parameterValues xsi:type="bus:parameterValueArray" SOAP-ENC:arrayType="bus:parameterValue[]" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
- xmlns:SOAP-ENV="http://www.w3.org/2001/09/soap-envelope" >
- <xsl:for-each select="/root/PromptValues/PromptValue">
- <item>
- <bus:name xsi:type="xsd:string"><xsl:value-of select="@name"/></bus:name>
- <bus:value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:parmValueItem[]">
- <item xsi:type="bus:simpleParmValueItem">
- <bus:display xsi:type="xsd:string"><xsl:value-of select="."/></bus:display>
- <bus:use xsi:type="xsd:string"><xsl:value-of select="."/></bus:use>
- </item>
- </bus:value>
- </item>
- </xsl:for-each>
- </parameterValues>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- getObjects - get object class names
- ===============================================================================================
- -->
- <xts:block id="classNames" type="exec" mode="input" processor="XML" path="/portal/uiExtensions.xml">
- <xts:logicsheet path="/logicsheets/uiobjects/uiobjects_names.xslt"/>
- </xts:block>
- <!--
- ===============================================================================================
- Render the HTML page
- ===============================================================================================
- -->
- <xts:block id="renderPage" dependency="getBaseContent generateDefaults classNames" mode="output" processor="XSLT" type="exec" mimeType="text/html">
- <xts:logicsheet path="portal/runWithOptions/logicsheets/response.xslt"/>
- <!-- portal specific information -->
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <!-- Dialog specific logicsheets -->
- <xts:logicsheet path="logicsheets/presentation/dialog/recurrenceUI.xslt"/>
- <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"/>
- <xts:logicsheet path="portal/schedule/logicsheets/scheduleVars.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" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:rdb="http://developer.cognos.com/schemas/xts/rdb/"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- 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:ut="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/ui-templates/"
- 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:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
- xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:rui="http://developer.cognos.com/schemas/xts/logicsheet/xslt/presentation/dialog/recurrenceUI/"
- xmlns:x="x"
- exclude-result-prefixes="xsl lyt dp df cp cf cm bus utml xtsext xts rui">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <!-- current file name -->
- <xsl:variable name="mname" select="'runWithOptions/agentDefinition.xts'"/>
- <xsl:variable name="m_class" select="/root/env/param[@name = 'm_class']"/>
- <xsl:variable name="back-url" select="key('env-param','backURL')"/>
- <!-- add any theme variables -->
- <pf:variables/>
- <pf:gen-icon/>
- <rui:variables/>
- <!-- include date control stylesheet and declare any vairables needed -->
- <rui:promptControls form="pform"/>
- <!-- references to the various objects queried from CM -->
- <xsl:variable name="the-object" select="/root/cm:queryResponse/cm:queryReply[1]/*"/>
- <xsl:variable name="the-steps" select="/root/cm:queryResponse/cm:queryReply[2]/*"/>
- <xsl:variable name="the-credential" select="/root/cm:queryResponse/cm:queryReply[3]/cm:credential"/>
- <xsl:variable name="the-schedule" select="/root/cm:queryResponse/cm:queryReply[6]/cm:schedule"/>
- <xsl:variable name="has_execute_permission" select="contains(concat(' ', /root/cm:queryResponse/cm:queryReply[1]/*/cm:permissions, ' '), ' execute ')"/>
- <!-- start the output -->
- <xsl:template match="root">
- <!-- Page and title -->
- <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>
- <!-- include data control scripts -->
- <rui:promptControlsScript/>
- <dp:script>
- <pf:help context="HID_RUNAGENT"/> <!-- Help system -->
- <script language="javascript">
- function runReport()
- {
- var frm = document.pform;
- if (frm.showSummary && frm.showSummary.value == 'n' && !frm.m_ro_prompt.checked)
- {
- frm.ps_nav_op.value = 'submit';
- frm.m.value = 'portal/submit.xts';
- }
- else
- {
- if (frm.m_ro_prompt.checked)
- {
- frm.method.value = 'edit';
- }
- else
- {
- frm.method.value = '';
- }
- frm.ps_nav_op.value = 'push';
- frm.m.value = 'portal/runWithOptions/agent_confirm.xts';
- }
- document.pform.submit();
- }
- </script>
- </dp:script>
- <utml:form name="pform" action="{$gateway}" method="post">
- <!-- Since the date control input variables are not utml input, they would be put into Hidden inputs whenever the page is refreshed and cause
- duplicate. So we exclude them from query values. -->
- <utml:exclusion-list>
- <xsl:value-of select="' p_runDate p_runTime hourstimeFrom minutestimeFrom AMPMtimeFrom txtDatedateFrom '"/>
- </utml:exclusion-list>
- <!-- this defines the form command operation to be performed when all the collected properties are submitted. -->
- <utml:input type="hidden" name="ifrmcmd" value='execute' utml:update="false"/>
- <utml:input type="hidden" name="ps_nav_op" value="" utml:update="false"/>
- <!-- if the user doesn't have a credentail then add the h_CAM_action to create one -->
- <rdb:checkCredential/>
-
- <!-- Dialog header -->
- <dp:header>
- <dp:title>
- <xsl:copy-of select="$browserTitle"/>
- </dp:title>
- <dp:description>
- <rdb:description>
- <className><xts:string id="IDS_OBJ_AGENT_LC"/></className>
- </rdb:description>
- </dp:description>
- </dp:header>
-
- <lyt:layout style="1">
- <lyt:section>
- <div>
- <rdb:nowOrLater/>
- </div>
- </lyt:section>
- </lyt:layout>
- <lyt:layout style="1">
- <lyt:section>
- <!-- itemObject is added because there is difference between agent and job result -->
- <ut:taskSummaryUI objectClass="$the-steps/cm:objectClass" iterate="$the-steps" itemObject="cm:taskObject"/>
- </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"/>
- <cp:tabControl/>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- debug - display debug information
- ===============================================================================================
- -->
- <xts:block id="debug" dependency="renderPage" 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>
|