123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: Viewer
- (C) Copyright IBM Corp. 2001, 2011
- US Government Users Restricted Rights - Use, duplication or
- disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/viewer.xml, messages/portal.xml, messages/portalRL.xml" requiredCapability="canUseCognosViewer">
- <!-- 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"
- condition=".[/root/updateSession]"
- mandatory="false"/>
- <xts:block id="get-object" type="exec" mode="interpret" condition=".[string(/root/env/param[@name='initializeSave'])='true']" processor="XSLT" mandatory="false">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
- xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/root">
- <xts:sequence>
- <xts:append>
- <source>
- <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:search>
- <xsl:value-of select="/root/env/param[@name='ui.object']"/>
- </cm:search>
- <cm:properties>
- <cm:property name="defaultName"/>
- <cm:property name="searchPath"/>
- <cm:property name="permissions"/>
- <cm:property name="base"/>
- <cm:property name="executionFormat"/>
- <cm:property name="executionPrompt"/>
- <cm:property name="defaultOutputFormat"/>
- <cm:property name="format"/>
- <cm:property name="burstKey"/>
- <cm:property name="locale"/>
- <cm:property name="ancestors"/>
- <cm:property name="searchPathForURL"/>
- <cm:property name="routingServerGroup"/>
- <cm:property name="metadataModelPackage"/>
- <cm:property name="metadataModel"/>
- </cm:properties>
- <cm:options schemaInfo="true">
- <cm:refProps>
- <cm:refProp refPropName="base">
- <cm:properties>
- <cm:property name="searchPath"/>
- <cm:property name="permissions"/>
- </cm:properties>
- </cm:refProp>
- </cm:refProps>
- </cm:options>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </source>
- </xts:append>
- <xts:delete select="/root/env/param[@name='initializeSave']"/>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <xts:block id="formlogic_init" dependency="get-object" type="exec" mode="interpret" processor="XSLT" path="/logicsheets/formlogic_init.xslt"/>
- <!--
- ================================================================================
- checkDuplicate
- Before we call the reportServer to do the save, query CM to check if an object
- with the same name already exists
- ================================================================================
- -->
- <xts:block id="checkDuplicate" processor="XSLT" type="exec" mode="interpret" dependency="formlogic_init" nodelist="env, header" condition=".[/root/env/param[@name='visited_save_as'] = 'true' and string(/root/env/param[@name='currentAction']) != 'overwrite']" 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:xtsext="xalan://com.cognos.xts.ext.XTSExt">
- <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="saveAsName">
- <xsl:choose>
- <xsl:when test="key('env-param','err_rename') != ''"><xsl:value-of select="key('env-param','err_rename')"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="key('env-param','m_ro_saveAsName')"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="saveAsPath">
- <xsl:choose>
- <xsl:when test="string(key('env-param','so.searchPath')) != ''">
- <xsl:value-of select="key('env-param','so.searchPath')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="key('env-param','m_ro_saveAsPath')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append>
- <checkDuplicate>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <query xmlns="http://developer.cognos.com/schemas/xts-cm/1/">
- <search>
- <xsl:value-of select="concat($saveAsPath, '/*[@defaultName="', $saveAsName, '"]')"/>
- </search>
- <properties>
- <property name="defaultName"/>
- </properties>
- </query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </checkDuplicate>
- </xts:append>
- <xts:delete select="/root/env/param[@name='m_ro_saveAsName']"/>
- <xts:append select="/root/env">
- <param name="m_ro_saveAsName"><xsl:value-of select="$saveAsName"/></param>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <xts:block id="launchSaveAsPage" processor="XSLT" type="exec" mode="output" dependency="setSession get-object" mimeType="text/html" contentId="callrv" partId="1" condition=".[/root/source]" mandatory="false">
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:cm="http://developer.cognos.com/schemas/bibus/3/"
- 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 cm xtsext req-params">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <xsl:key name="env-param" match="/root/env/param" use="@name"/>
- <xsl:template match="/">
- <xsl:variable name="folder">
- <xsl:choose>
- <xsl:when test="key('env-param', 'ui.folder') and key('env-param', 'ui.folder')!=''">
- <xsl:value-of select="key('env-param', 'ui.folder')"/>
- </xsl:when>
- <xsl:when test="/root/env/param[@name='modelPath']">
- <xsl:value-of select="/root/packageBase//*[local-name()='parent']//*[local-name()='searchPath']"/>
- </xsl:when>
- <xsl:when test="/root/source/*/*/*[local-name()='ancestors']/*[local-name()='ancestorInfo'][*[local-name()='objectClass']='folder' or *[local-name()='objectClass']='package']">
- <xsl:value-of select="/root/*[local-name()='source']/*/*/*[local-name()='ancestors']/*[local-name()='ancestorInfo'][*[local-name()='objectClass']='folder' or *[local-name()='objectClass']='package'][position() = last()]/*[local-name()='searchPath']" disable-output-escaping="yes"/>
- </xsl:when>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="reportName">
- <xsl:value-of select="/root/*[local-name()='source']/*[local-name()='queryResponse']/*/*[local-name()='defaultName']"/>
- </xsl:variable>
- <html>
- <xsl:attribute name="lang"><xsl:value-of select="/root/user/param[@name='productLocale']"/></xsl:attribute>
- <head>
- <script language="javascript">
- function createFormField(sName, sValue)
- {
- var formField = document.createElement("input");
- formField.setAttribute("type", "hidden");
- formField.setAttribute("name", sName);
- formField.setAttribute("value", sValue);
- return(formField);
- }
- function submitForm()
- {
- <xsl:variable name="cvId">
- <xsl:value-of select="key('env-param', 'cv.id')"/>
- </xsl:variable>
- var viewerDialogForm = document.getElementById("launchSaveAs");
- var oCognosViewerObject = parent.oCV<xsl:value-of select="$cvId"/>;
- if (oCognosViewerObject)
- {
- viewerDialogForm.appendChild(createFormField("ui.conversation", oCognosViewerObject.getConversation()));
- viewerDialogForm.appendChild(createFormField("m_tracking", oCognosViewerObject.getTracking()));
- }
- else if (window.opener)
- {
- viewerDialogForm.appendChild(createFormField("ui.conversation", window.opener.oCV<xsl:value-of select="$cvId"/>.getConversation()));
- viewerDialogForm.appendChild(createFormField("m_tracking", window.opener.oCV<xsl:value-of select="$cvId"/>.getTracking()));
- }
- viewerDialogForm.submit();
- }
- </script>
- </head>
- <body onload="submitForm();">
- <form action="{/root/http/param[@name='SCRIPT_NAME']}" name="launchSaveAs" id="launchSaveAs" method="post" style="height:100%;margin:0px">
- <xsl:for-each select="/root/env/param[not(@name='m')]">
- <input type="hidden" name="{./@name}" value="{.}"/>
- </xsl:for-each>
- <input type="hidden" name="m" value="portal/save_as_run_option.xts"/>
- <input type="hidden" name="m_ro_saveAsName">
- <xsl:attribute name="value"><xts:string id="IDS_ACT_CUSTOM_OF"><xts:param name="curName"><xsl:value-of select="$reportName"/></xts:param></xts:string></xsl:attribute>
- </input>
- <input type="hidden" name="m_return" value="portal/viewer-saveAs.xts"/>
- <input type="hidden" name="save_how" value=""/>
- <input type="hidden" name="ps_nav_stack" value=""/>
- <input type="hidden" name="ps_nav_source" value="portal/viewer-saveAs.xts"/>
- <input type="hidden" name="ps_nav_op" value="push"/>
- <input type="hidden" name="m_ro_saveAsPath" value="{$folder}"/>
- <input type="hidden" name="tempPath" value="{$folder}"/>
- <input type="hidden" name="saveAsPathText" value="{$folder}"/>
- <input type="hidden" name="ifrmcmd" value="execute"/>
- <input type="hidden" name="changed_m_ro_prompt" value="0"/>
- <input type="hidden" name="m_ro_prompt" value="false"/>
- <input type="hidden" name="m_ro_saveAsType" value="reportView"/>
- <input type="hidden" name="m_class" value="reportView"/>
- <input type="hidden" name="specify_format" value="checked"/>
- </form>
- </body>
- </html>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <xts:block id="sendRequest" processor="XSLT" type="exec" mode="output" dependency="checkDuplicate" mimeType="text/html" contentId="callSaveAs" partId="1" condition=".[not(/root/source) and string(/root/checkDuplicate/*[local-name()='queryResponse']/*/*[local-name()='defaultName']) = '' and not(/root/env/param[@name='executeSaveAs']='true') ]" mandatory="false">
- <xts:logicsheet path="logicsheets/portal.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" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" exclude-result-prefixes="xsl dlgctrl xtsext req-params">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <xsl:key name="env-param" match="/root/env/param" use="@name"/>
- <pf:variables/>
- <xsl:template match="/">
- <xsl:variable name="saveAsPath">
- <xsl:choose>
- <xsl:when test="string(key('env-param','so.searchPath')) != ''">
- <xsl:value-of select="key('env-param','so.searchPath')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="key('env-param','m_ro_saveAsPath')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="saveAsOption">
- <saveAs>
- <objectClass>reportView</objectClass>
- <objectNames>
- <objectName>
- <locale>
- <xsl:choose>
- <xsl:when test="/root/*[local-name()='conversation']/*/*[local-name()='options']/*[local-name()='item']/*[local-name()='name']='outputLocale'">
- <xsl:value-of select="/root/*[local-name()='conversation']/*/*[local-name()='options']/*[local-name()='item'][/*[local-name()='name']='outputLocale']/*[local-name()='value']/*[local-name()='value']"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/root/user/param[@name='contentLocale']"/>
- </xsl:otherwise>
- </xsl:choose>
- </locale>
- <value><xsl:value-of select="xtsext:xmlencode(string(/root/env/*[@name='m_ro_saveAsName']))"/></value>
- </objectName>
- </objectNames>
- <parentSearchPath><xsl:value-of select="xtsext:xmlencode(string($saveAsPath))"/></parentSearchPath>
- </saveAs>
- </xsl:variable>
- <html>
- <head>
- <link rel="stylesheet" type="text/css" href="{$skin_root}/portal/default.css"/>
- <link rel="stylesheet" type="text/css" href="{$skin_root}/qs/RVReport.css"/>
- <script language="javascript">
- function finish()
- {
- var form = document.getElementById("executeSaveAs");
- if (typeof form != "undefined" && form != null)
- {
- if (typeof form.pageVisited != "undefined" && form.pageVisited != null && form.pageVisited.value.length > 0)
- {
- window.history.go(+1);
- return;
- }
- else if (typeof form.pageVisited != "undefined" && form.pageVisited != null)
- {
- <!-- set the page visited value so if the user hits the back button in the browser it'll have a value -->
- form.pageVisited.value = "true";
- }
- }
- var oCognosViewerObject = parent.oCV<xsl:value-of select="key('env-param', 'cv.id')"/>;
- <xsl:choose>
- <xsl:when test="/root/env/param[@name='visited_save_as'] = 'true'">
- if (oCognosViewerObject)
- {
- oCognosViewerObject.closeActiveHTTPConnection();
- <xsl:if test="key('env-param','run.continueConversation')='false'">
- <!--so the viewer framework doesn't cancel the request when we exit, set it to keep the session alive-->
- oCognosViewerObject.setKeepSessionAlive(true);
- </xsl:if>
- }
- form.submit();
- setTimeout('document.progress.src="<xsl:value-of select="xtsext:javascriptencode($brand_images)"/>progress.gif"',1);
- </xsl:when>
- <xsl:otherwise>
- if(typeof parent.destroyCModal == "function")
- {
- parent.destroyCModal();
- }
- else if (window.opener)
- {
- window.close();
- }
- if(oCognosViewerObject.getStatus() == "working" || oCognosViewerObject.getStatus() == "stillWorking")
- {
- oCognosViewerObject.getWorkingDialog.show();
- }
- </xsl:otherwise>
- </xsl:choose>
- }
- </script>
- </head>
- <body onload="finish();">
- <form action="{/root/http/param[@name='SCRIPT_NAME']}" name="executeSaveAs" id="executeSaveAs" method="post" style="display:none;height:100%;margin:0px">
- <input type="hidden" name="pageVisited" value=""/>
- <input type="hidden" name="b_action" value="cognosViewer"/>
- <input type="hidden" name="ui.action" value="saveAs"/>
- <input type="hidden" name="cv.responseFormat" value="closeDialog"/>
- <input type="hidden" name="cv.id" value="{key('env-param','cv.id')}"/>
- <input type="hidden" name="m_tracking" value="{key('env-param','m_tracking')}"/>
- <input type="hidden" name="ui.conversation" value="{key('env-param','ui.conversation')}"/>
- <input type="hidden" name="ui.routingServerGroup" value="{key('env-param','ui.routingServerGroup')}"/>
- <input type="hidden" name="run.continueConversation" value="{key('env-param','run.continueConversation')}"/>
- <input type="hidden" name="ui.backURL">
- <xsl:attribute name="value">
- <xsl:choose>
- <xsl:when test="string(key('env-param','ui.backURL')) != ''">
- <xsl:value-of select="key('env-param','ui.backURL')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="key('env-param','backURL')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- </input>
- <input type="hidden" name="run.saveAs" value="{$saveAsOption}"/>
- </form>
- <table id="workingStatus" cellspacing="0" height="100%" width="100%" cellpadding="0" align="center" valign="middle">
- <tr>
- <td width="100%" height="100%" align="center" valign="middle">
- <!-- start of indicator-->
- <table align="center" cellspacing="0" cellpadding="0" style="vertical-align:middle; border:1px outset;" class="busyBody">
- <tr>
- <td rowspan="2">
- <img src="{$brand_images}progress.gif" style="margin:5px;" width="48" height="48" name="progress"/>
- </td>
- <td nowrap="nowrap">
- <span class="busyUpdatingStr">
- <xts:string id="GOTO_WORKING"/>
- </span>
- </td>
- </tr>
- <tr>
- <td nowrap="nowrap">
- <span class="busyUpdatingStr">
- <xts:string id="RV_PLEASE_WAIT"/>
- </span>
- </td>
- </tr>
- <tr>
- <td style="height:7px;" colspan="2"/>
- </tr>
- </table>
- <!-- end of indicator-->
- </td>
- </tr>
- </table>
- </body>
- </html>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <xts:block id="duplicateFound" processor="XSLT" type="exec" mode="output" dependency="checkDuplicate" mimeType="text/html" contentId="callrv" partId="1" condition=".[not(/root/source) and string(/root/checkDuplicate/*[local-name()='queryResponse']/*/*[local-name()='defaultName']) != '']" mandatory="false">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/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:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
- xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- exclude-result-prefixes="xsl xts lyt pf dp df xtsext">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <!-- current file name -->
- <xsl:variable name="mname" select="'viewer-saveAs.xts'"/>
- <!-- add any theme variables -->
- <pf:variables/>
- <xsl:variable name="browserTitle"><xts:string id="IDS_COGNOS_REPORTS"/></xsl:variable>
- <xsl:template match="/">
- <dp:page longTitle="$browserTitle">
- <dp:meta>
- <pf:meta/> <!-- Standard meta tags -->
- </dp:meta>
- <dp:script>
- <pf:help context=""/> <!-- Help system -->
- <script language="javascript">
- function closePage()
- {
- if(typeof parent.destroyCModal == "function")
- {
- parent.destroyCModal();
- }
- else if (window.opener)
- {
- window.close();
- }
- }
- function setCurrentAction(str)
- {
- document.pform.currentActionValue.value = str;
- }
- </script>
- </dp:script>
- <form name="pform" method="post" action="{$gateway}">
- <input type="hidden" name="currentActionValue" value="overwrite"/>
- <!-- dialog header -->
- <dp:header>
- <!-- header titles-->
- <dp:title showName="false">
- <xsl:value-of select="$browserTitle"/>
- </dp:title>
- <!-- header introduction -->
- <dp:close>
- <xsl:variable name="close"><xts:string id="IDS_CLOSE"/></xsl:variable>
- <a href="javascript:closePage();"><img height="16" width="16" class="dialogClose" vspace="2" border="0" src="{$skin_images}close.gif" alt="{$close}" onmouseover="this.className = 'dialogCloseOver'" onmouseout="this.className = 'dialogClose'"/></a>
- </dp:close>
- </dp:header>
- <lyt:layout style="1">>
- <lyt:section>
- <dp:group>
- <dp:groupItem valign="top">
- <img height="32" width="32" border="0">
- <xsl:attribute name="src">
- <xsl:value-of select="$webcontent"/>/<xsl:value-of select="$app"/>
- <xsl:text/>/images/msg_warning.gif<xsl:text/>
- </xsl:attribute>
- <xsl:attribute name="alt"><xts:string id="IDS_STATUS_WARN"/></xsl:attribute>
- </img>
- </dp:groupItem>
- <dp:groupItem>
- <!-- used for alignment -->
- <dp:text/><xsl:text> </xsl:text>
- </dp:groupItem>
- <dp:groupItem valign="top">
- <dp:text nospace="nospace" wrap="wrap">
- <xts:string id="IDS_DUPLICATE_ERROR_RENAME_REPLACE_ERROR"><xts:param name="entryName"><xsl:value-of select="key('env-param','m_ro_saveAsName')"/></xts:param></xts:string>
- <br/>
- <table border="0" cellspacing="0" cellpadding="1">
- <tr>
- <td class="formText">
- <input type="radio" id="inputCurrentAction" name="currentAction" value="overwrite" onClick="document.getElementById('inputNewName').disabled = true; javascript:setCurrentAction('overwrite')">
- <xsl:if test="string(key('env-param','currentAction')) = '' or string(key('env-param','currentAction')) = 'overwrite'">
- <xsl:attribute name="checked">true</xsl:attribute>
- </xsl:if>
- </input>
- </td>
- <td class="formText">
- <label for="inputCurrentAction"><xts:string id="IDS_DUPLICATE_ERROR_REPLACE_ENTRY_OPTION"/></label>
- </td>
- </tr>
- <tr>
- <td valign="top" class="formText">
- <input type="radio" name="currentAction" value="rename" onClick="document.getElementById('inputNewName').disabled = false; javascript:setCurrentAction('rename');">
- <xsl:if test="string(key('env-param','currentAction')) = 'rename'">
- <xsl:attribute name="checked">true</xsl:attribute>
- </xsl:if>
- <xsl:attribute name="title"><xts:string id="IDS_DUPLICATE_ERROR_RENAME_ENTRY_OPTION"/></xsl:attribute>
- </input>
- </td>
- <td class="formText">
- <label for="inputNewName"><xts:string id="IDS_DUPLICATE_ERROR_RENAME_ENTRY_OPTION"/></label><br/>
- <input name="err_rename" id="inputNewName" size='45' onFocus="javascript:setCurrentAction('rename'); document.pform.currentAction[1].checked = true;">
- <xsl:if test="string(key('env-param','currentAction')) = '' or string(key('env-param','currentAction')) != 'rename'">
- <xsl:attribute name="disabled">true</xsl:attribute>
- </xsl:if>
- <xsl:attribute name="value">
- <xsl:value-of select="key('env-param','m_ro_saveAsName')"/>
- </xsl:attribute>
- </input>
- </td>
- </tr>
- <tr>
- <td>
- <img height="5" width="1" alt="">
- <xsl:attribute name="src"><xsl:value-of select="$webcontent"/>/images/space.gif</xsl:attribute>
- </img>
- </td>
- </tr>
- <tr>
- <td colspan='2' class="formText"><xts:string id="IDS_DUPLICATE_ERROR_CONTINUE"/><br/></td>
- </tr>
- </table>
- </dp:text>
- </dp:groupItem>
- </dp:group>
- </lyt:section>
- </lyt:layout>
- <dp:footer>
- <!-- Default. Use Ok/Cancel buttons -->
- <df:button df:id="IDS_DUPLICATE_ERROR_OK" df:style="href" df:href="javascript:document.pform.submit();"/>
- <df:button df:id="IDS_DUPLICATE_ERROR_CANCEL" df:style="href" df:href="javascript:closePage();"/>
- </dp:footer>
- <xsl:for-each select="/root/env/param[@name != 'm']">
- <input name="{@name}" type="hidden" value="{.}"/>
- </xsl:for-each>
- <input type="hidden" name="m" value="portal/viewer-saveAs.xts"/>
- <input type="hidden" name="b_action" value="xts.run"/>
- </form>
- </dp:page>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- debug - display debug information
- ===============================================================================================
- -->
- <xts:block id="debug" dependency="launchSaveAsPage duplicateFound" 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"/>
- <xsl:template match="/">
- <dbg:dumpxml select="/root"/>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- </xts:morphlet>
|