123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (C) Copyright IBM Corp. 2005, 2011
- 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" requiredCapability="canUseDataSourcesTool">
- <!--
- ===============================================================================================
- formlogic_init - standard form logic initialization
- ===============================================================================================
- -->
- <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="/logicsheets/formlogic_init.xslt" nodelist="env,credential,system,http"/>
- <!--
- ================================================================================
- encrypt the password when we're called by transformer.
- ================================================================================
- -->
- <xts:block id="encrypt_password" path="/portal/encryptConnectionPasswords.xslt" dependency="formlogic_init" type="exec" mode="interpret" processor="XSLT" mandatory="false" condition=".[/root/env/param[@name='from_transf'] and /root/env/param[@name='from_transf']!='' and (/root/env/param[@name='m_cube_password' or @name='test_cube_password' or @name='m_connection_password' or @name='test_password'] != '')]"/>
- <!--
- ===============================================================================================
- renderPage - render the page
- ===============================================================================================
- -->
- <xts:block id="renderPage" mode="output" processor="XSLT" type="exec" mimeType="text/html" dependency="formlogic_init encrypt_password">
- <!-- get the presentation theme -->
- <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/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:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- 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:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
- xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
- xmlns:ctrl="http://developer.cognos.com/schemas/xts/logicsheets/xslt/controls/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
- exclude-result-prefixes="xsl cm cf cp pf df dp lyt ctrl cml utml 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="'new_connection.xts'"/>
- <!-- add any theme variables -->
- <pf:variables/>
- <!-- start the output -->
- <xsl:template match="/root">
-
- <xsl:variable name="title">
- <xsl:choose>
- <xsl:when test="key('env-param','frmcmd') = 'success'">
- <xts:string id="IDS_WELCOME_DATASOURCE_TITLE_SUCCESS"/>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_WELCOME_DATASOURCE_TITLE"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text><dp:page longTitle="$product_name">
- <dp:meta>
- <pf:meta/> <!-- Standard meta tags -->
- </dp:meta>
- <dp:script>
- <script language="javascript">
- function doCancel()
- {
- window.external.OnClose(1);
- }
-
- function doOK()
- {
- if( window.external.HasSetPassport )
- window.external.SetPassport("<xsl:value-of select="xtsext:javascriptencode(string(/root/cookies/cookie[@name='cam_passport']))"/>");
-
- window.external.OnClose(0);
- }
- </script>
- <!-- Help system -->
- <pf:help context="HID_DATA_SOURCES"/>
- </dp:script>
-
- <utml:form name="pform" method="post" action="{$gateway}">
- <!-- this is required to tell the pages after this that they should render themselves as "wizards" instead of stand-alone dialogs -->
- <utml:input type="hidden" name="is_wizard" value="" utml:update="false"/>
- <utml:input type="hidden" name="from_bmt" value="1" utml:update="false"/>
- <xsl:if test="key('env-param','from_transf') != ''">
- <utml:input type="hidden" name="from_transf" value="1" utml:update="false"/>
- <utml:input type="hidden" name="m_connection_type" value="powercube" utml:update="false"/>
- <utml:input type="hidden" name="m_connection_type_history" value="" utml:update="false"/>
- <!-- we don't need to add the other powercube parameters as they will be carried out -->
- </xsl:if>
-
- <!-- this is the handler of the form command, which happens to be this morphlet... -->
- <dp:header>
- <!-- header titles-->
- <dp:title><xsl:value-of select="$title"/></dp:title>
- <dp:close><a href="javascript:doCancel()"><dp:closeMarker/></a></dp:close>
- </dp:header>
- <xsl:choose>
- <xsl:when test="key('env-param','frmcmd') = 'success'">
- <!-- display success message -->
- <lyt:layout style="1">
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:text wrap="true">
- <xts:string id="IDS_FINISH_DATASOURCE_PARA1"><xts:param name="prodName"><xsl:value-of select="$product_name"/></xts:param></xts:string>
- </dp:text>
- </dp:section>
- </dp:list>
- <br/>
- </lyt:section>
- </lyt:layout>
- </xsl:when>
- <xsl:otherwise>
- <!-- display creation message -->
- <lyt:layout style="1">
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:text wrap="true">
- <xts:string id="IDS_WELCOME_DATASOURCE_PARA1"><xts:param name="prodName"><xsl:value-of select="$product_name"/></xts:param></xts:string>
- </dp:text>
- </dp:section>
- </dp:list>
- <br/>
- <dp:list>
- <dp:section>
- <dp:text wrap="true">
- <xts:string id="IDS_WELCOME_DATASOURCE_PARA2"/>
- </dp:text>
- </dp:section>
- </dp:list>
- <br/>
- <dp:list>
- <dp:section>
- <dp:text wrap="true">
- <xts:string id="IDS_WELCOME_DATASOURCE_PARA3"/>
- </dp:text>
- </dp:section>
- </dp:list>
- </lyt:section>
- </lyt:layout>
- <utml:input type="hidden" name="m_new_class" value="dataSource"/>
- <utml:input type="hidden" name="m_name" value=""/>
- <utml:input type="hidden" name="m_path" value="CAMID(':')"/>
- <utml:input type="hidden" name="m_return">
- <utml:value>
- <xsl:value-of select="concat($app,'/',$mname)"/>
- </utml:value>
- </utml:input>
- </xsl:otherwise>
- </xsl:choose>
- <dp:footer>
- <xsl:choose>
- <xsl:when test="key('env-param','frmcmd') = 'success'">
- <df:button df:id="IDS_CLOSE" df:style="href" df:href="javascript:doOK();"/>
- </xsl:when>
- <xsl:otherwise>
- <df:button df:id="IDS_CANCEL" df:style="href" df:href="javascript:doCancel();"/>
- <df:button df:id="IDS_BACK"/>
- <df:button df:id="IDS_NEXT" df:style="stack-up">
- <df:target>
- <xsl:value-of select="concat($app, '/new_general.xts')"/>
- </df:target>
- </df:button>
- <df:button df:id="IDS_FINISH"/>
- </xsl:otherwise>
- </xsl:choose>
- </dp:footer>
- </utml:form>
- </dp:page>
- </xsl:template>
- </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>
|