123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (C) Copyright IBM Corp. 2014, 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/" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" messageBase="messages/portal.xml, messages/portalRL.xml" includeConfig="true">
- <!-- Navigation control -->
- <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="/logicsheets/formlogic_init.xslt" nodelist="env,credential,system,http"/>
-
-
- <xts:block id="getDataSourceFromSpec" processor="XSLT" type="exec" dependency="formlogic_init" nodelist="header, env, configProps"
- condition=".[ not(/root/env/param[@name = 'ui.LOBDataSource']) and /root/env/param[@name = 'dataSetStoreID'] != '']" 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/"
- exclude-result-prefixes="xsl send">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append>
- <dataSources>
- <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>
- <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <cm:search>storeID('<xsl:value-of select="/root/env/param[@name='dataSetStoreID']"/>')</cm:search>
- <cm:properties>
- <cm:property name="specification"/>
- </cm:properties>
- </cm:query>
- </cm:requests>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </dataSources>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <xts:block id="checkDataSources" processor="XSLT" type="exec" dependency="getDataSourceFromSpec" nodelist="dataSources, env"
- condition=".[ (/root/dataSources/*) ]" mandatory="false">
- <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: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:delete select="/root/dataSources"/>
- </xts:sequence>
- <xts:sequence>
- <xsl:variable name="specDataSourceInfo" select="/root/dataSources/cm:queryResponse/cm:queryReply/cm:dataSet/cm:specification/cm:pdSpec/cm:dataSource"/>
- <xsl:choose>
- <xsl:when test="$specDataSourceInfo/cm:name != ''">
- <xts:append select="/root/env">
- <param name="ui.LOBDataSource"><xsl:value-of select="$specDataSourceInfo/cm:name"/></param>
- <xsl:if test="$specDataSourceInfo/cm:connection">
- <param name="ui.LOBDataSourceConnection"><xsl:value-of select="$specDataSourceInfo/cm:connection"/></param>
- </xsl:if>
- <xsl:if test="$specDataSourceInfo/cm:signon">
- <param name="ui.LOBDataSourceSignon"><xsl:value-of select="$specDataSourceInfo/cm:signon"/></param>
- </xsl:if>
- </xts:append>
- </xsl:when>
- </xsl:choose>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <xts:block id="getDataSources" processor="XSLT" type="exec" dependency="checkDataSources" nodelist="dataSources, header, env, configProps"
- condition=".[ not(/root/env/param[@name = 'ui.LOBDataSource'])]" 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/"
- exclude-result-prefixes="xsl send">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append>
- <dataSources>
- <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>
- <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <cm:search>CAMID(':')/dataSource[@capabilities='http://developer.cognos.com/ceba/constants/dataSourceCapabilityEnum#lobData'][permission("execute")]</cm:search>
- <cm:properties>
- <cm:property name="defaultName"/>
- <cm:property name="objectClass"/>
- <cm:property name="hidden"/>
- </cm:properties>
- </cm:query>
- </cm:requests>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </dataSources>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- <xts:block id="setDataSourceEnvParam" processor="XSLT" type="exec" dependency="getDataSources" nodelist="dataSources, header, env, configProps"
- condition=".[ (not(/root/env/param[@name = 'ui.LOBDataSource'])) and (count(/root/dataSources//*[local-name()='queryReply']/*)=1)]" 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/"
- exclude-result-prefixes="xsl send">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append select="/root/env">
- <xsl:variable name="dataSourceName" select="/root/dataSources/cm:queryResponse/cm:queryReply/*/cm:defaultName"/>
- <param name="ui.LOBDataSource"><xsl:value-of select="$dataSourceName"/></param>
- </xts:append>
-
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- <xts:block id="getDataSourceConnections" processor="XSLT" type="exec" dependency="setDataSourceEnvParam" nodelist="dataSources, header, env, configProps"
- condition=".[ (/root/env/param[@name = 'ui.LOBDataSource']) and (not(/root/env/param[@name = 'ui.LOBDataSourceConnection'])) ]" 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/"
- exclude-result-prefixes="xsl send">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:delete select="/root/dataSources"/>
- </xts:sequence>
- <xts:sequence>
- <xts:append>
- <dataSources>
- <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>
- <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <xsl:variable name="dsName" select="/root/env/param[@name = 'ui.LOBDataSource'] | /root/dataSources/cm:queryResponse/cm:queryReply/cm:dataSet/cm:specification/cm:pdSpec/cm:dataSource/cm:name"/>
- <xsl:variable name="sq" select='"'"'/>
- <xsl:variable name="cmEncodedDsName" select="xtsext:replace(string($dsName), string($sq), concat($sq,$sq)) "/>
- <cm:search>CAMID(':')/dataSource[@name='<xsl:value-of select="$cmEncodedDsName"/>']/dataSourceConnection</cm:search>
- <cm:properties>
- <cm:property name="defaultName"/>
- <cm:property name="objectClass"/>
- <cm:property name="hidden"/>
- </cm:properties>
- </cm:query>
- </cm:requests>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </dataSources>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- <xts:block id="setDataSourceConnectionEnvParam" processor="XSLT" type="exec" dependency="getDataSourceConnections" nodelist="dataSources, header, env, configProps"
- condition=".[ (not(/root/env/param[@name = 'ui.LOBDataSourceConnection'])) and (count(/root/dataSources//*[local-name()='queryReply']/*)=1)]" 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/"
- exclude-result-prefixes="xsl send">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append select="/root/env">
- <xsl:variable name="dataSourceConnectionName" select="/root/dataSources/cm:queryResponse/cm:queryReply/*/cm:defaultName"/>
- <param name="ui.LOBDataSourceConnection"><xsl:value-of select="$dataSourceConnectionName"/></param>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- <xts:block id="getDataSourceSignons" processor="XSLT" type="exec" dependency="setDataSourceConnectionEnvParam" nodelist="dataSources, header, env, configProps"
- condition=".[ (/root/env/param[@name = 'ui.LOBDataSourceConnection']) and (not(/root/env/param[@name = 'ui.LOBDataSourceSignon'])) ]" 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/"
- exclude-result-prefixes="xsl send">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:delete select="/root/dataSources"/>
- </xts:sequence>
- <xts:sequence>
- <xsl:variable name="dataSourceConnection" select="/root/env/param[@name = 'ui.LOBDataSourceConnection'] | /root/dataSources/cm:queryResponse/cm:queryReply/*/cm:defaultName"/>
- <xts:append>
- <dataSources>
- <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>
- <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <xsl:variable name="dsName" select="/root/env/param[@name = 'ui.LOBDataSource']"/>
- <xsl:variable name="sq" select='"'"'/>
- <xsl:variable name="cmEncodedDsName" select="xtsext:replace(string($dsName), string($sq), concat($sq,$sq)) "/>
- <xsl:variable name="cmEncodedDsConnection" select="xtsext:replace(string($dataSourceConnection), string($sq), concat($sq,$sq)) "/>
- <cm:search>CAMID(':')/dataSource[@name='<xsl:value-of select="$cmEncodedDsName"/>']/dataSourceConnection[@name='<xsl:value-of select="$cmEncodedDsConnection"/>']/dataSourceSignon</cm:search>
- <cm:properties>
- <cm:property name="defaultName"/>
- <cm:property name="objectClass"/>
- <cm:property name="hidden"/>
- </cm:properties>
- </cm:query>
- </cm:requests>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </dataSources>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- <xts:block id="setDataSourceSignonEnvParam" processor="XSLT" type="exec" dependency="getDataSourceSignons" nodelist="dataSources, header, env, configProps"
- condition=".[ (not(/root/env/param[@name = 'ui.LOBDataSourceSignon'])) and (count(/root/dataSources//*[local-name()='queryReply']/*)=1) ]" 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/"
- exclude-result-prefixes="xsl send">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append select="/root/env">
- <xsl:variable name="dataSourceSignonName" select="/root/dataSources/cm:queryResponse/cm:queryReply/*/cm:defaultName"/>
- <param name="ui.LOBDataSourceSignon"><xsl:value-of select="$dataSourceSignonName"/></param>
- </xts:append>
- </xts:sequence>
- </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" dependency="checkDataSources" condition=".[ not(/root/env/param[@name = 'ui.LOBDataSource']) ]" mandatory="false">
- <xts:logicsheet path="/logicsheets/uiobjects/uiobjects_names.xslt"/>
- </xts:block>
- <xts:block id="selectDataSource" mode="output" processor="XSLT" type="exec" mimeType="text/html" dependency="classNames checkDataSources"
- condition=".[ (not(/root/env/param[@name = 'ui.LOBDataSource']) or not(/root/env/param[@name = 'ui.LOBDataSourceConnection']) or not(/root/env/param[@name = 'ui.LOBDataSourceSignon'])) ]" mandatory="false">
- <!-- portal specific information -->
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <!-- get the new theme stuff -->
- <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/framework.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"/>
- <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: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: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:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
- xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
- xmlns:out="http://www.w3.org/1999/XSL/Transform"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:x="x"
- xmlns:rdb="http://developer.cognos.com/schemas/xts/rdb"
- exclude-result-prefixes="rdb xsl cm lyt pf dp df cf cp utml x xts xtsext">
-
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes" />
-
- <!-- morphlet -->
- <xsl:variable name="mname" select="'personal_data.xts'"/>
-
- <pf:modalVariables/>
- <xsl:variable name="browserTitle">
- <xsl:choose>
- <xsl:when test="string(key('env-param', 'dataSetStoreID')) != ''">
- <xts:string id="IDS_LOB_DATA_EDIT_TITLE">
- <xts:param name="name">
- <xsl:value-of select="string(key('env-param', 'dataSetName'))"/>
- </xts:param>
- </xts:string>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_LOB_DATA_IMPORT"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:template match="/root">
- <xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text>
-
- <dp:page longTitle="$browserTitle">
- <dp:meta>
- <pf:meta/> <!-- Standard meta tags -->
- </dp:meta>
- <pf:help context=""/>
-
- <!-- Get date control includes -->
- <utml:form name="pform" method="post" action="{$gateway}">
- <!-- header -->
- <dp:header>
- <dp:title>
- <xsl:copy-of select="$browserTitle"/>
- </dp:title>
- </dp:header>
-
- <xsl:variable name="description">
- <xsl:choose>
- <xsl:when test="/root/env/param[@name='ui.LOBDataSourceConnection']">
- <xts:string id="IDS_AMBIGIOUS_SIGNONS"/>
- </xsl:when>
- <xsl:when test="/root/env/param[@name='ui.LOBDataSource']">
- <xts:string id="IDS_AMBIGIOUS_DATASOURCECONNECTION"/>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_LOB_SELECT_DATASOURCE_INTRO"/>
- </xsl:otherwise>
- </xsl:choose>
-
- </xsl:variable>
- <xsl:variable name="label">
- <xsl:choose>
- <xsl:when test="/root/env/param[@name='ui.LOBDataSourceConnection']">
- <xts:string id="IDS_PROP_SIGNON_CREDENTIALS"/>
- </xsl:when>
- <xsl:when test="/root/env/param[@name='ui.LOBDataSource']">
- <xts:string id="IDS_PROP_ADVANCED_REPOSITORY_RULES_CONNECT_LABEL"/>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_LOB_DSTABLE_DATASOURCE_LABEL"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <dp:description>
- <xsl:value-of select="$description"/>
- </dp:description>
-
- <!-- body -->
- <lyt:layout style="1">
- <lyt:section>
- <dp:list width="100%">
- <dp:section>
- <dp:label>
- <xsl:value-of select="$label"/>
- </dp:label>
- </dp:section>
- <dp:section>
- <cp:table name="dataSources" iterate="/root/dataSources/cm:queryResponse/cm:queryReply/*" width="100%" align="left" showEmptyMsg="true">
- <cp:tableSummary><xts:string id="IDS_LOB_DSTABLE_SUMMARY" encoding="html"/></cp:tableSummary>
- <cp:tableHeader>
- <!-- radio button -->
- <cp:columnHeader width="16"/>
- <!-- icon -->
- <cp:columnHeader width="16"/>
- <!-- name -->
- <cp:columnHeader width="100%">
- <xts:string id="IDS_LOB_DSTABLE_COLUMN_HEADING"/>
- </cp:columnHeader>
- </cp:tableHeader>
- <cp:tableContent>
- <!-- radio button -->
- <cp:columnContent>
- <span style="position: absolute;margin-top: -9999px;margin-left: -9999px; " >
- <xsl:attribute name="id">selectRB_<xsl:value-of select="position()"/></xsl:attribute>
- <xts:string id="IDS_SELECT_RADIO_DESC"><xts:param name="name"><xsl:value-of select="cm:defaultName"/></xts:param></xts:string>
- </span>
- <xsl:variable name="radioBtnName">
- <xsl:choose>
- <xsl:when test="/root/env/param[@name = 'ui.LOBDataSourceConnection']">
- <xsl:value-of select="'ui.LOBDataSourceSignon'"/>
- </xsl:when>
- <xsl:when test="/root/env/param[@name = 'ui.LOBDataSource']">
- <xsl:value-of select="'ui.LOBDataSourceConnection'"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="'ui.LOBDataSource'"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <input type="radio" name="{$radioBtnName}">
- <!-- xsl:attribute name="name"><xsl:value-of select="$radioBtnName"/></xsl:attribute-->
- <xsl:attribute name="aria-labelledBy">selectRB_<xsl:value-of select="position()"/></xsl:attribute>
- <xsl:attribute name="value"><xsl:value-of select="cm:defaultName"/></xsl:attribute>
- <xsl:attribute name="id"><xsl:value-of select="cm:defaultName"/></xsl:attribute>
- <xsl:if test="position()=1">
- <xsl:attribute name="checked">checked</xsl:attribute>
- </xsl:if>
- <xsl:attribute name="title">
- <xsl:value-of select="xtsext:enforceBTD(cm:defaultName, $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/>
- </xsl:attribute>
- </input>
- </cp:columnContent>
- <!-- icon -->
- <cp:columnContent valign="top">
- <xsl:call-template name="gen-icon">
- <xsl:with-param name="showAction" select="false()"/>
- <xsl:with-param name="class" select="cm:objectClass"/>
- <xsl:with-param name="hiddenObject" select="cm:hidden"/>
- </xsl:call-template>
- </cp:columnContent>
- <!-- name -->
- <cp:columnContent scope="row">
- <xsl:value-of select="cm:defaultName"/>
- </cp:columnContent>
- </cp:tableContent>
- </cp:table>
- </dp:section>
- </dp:list>
- </lyt:section>
- </lyt:layout>
- <!-- footer -->
- <dp:footer>
- <df:button df:id="IDS_CANCEL" df:style="back-url"/>
- <xsl:choose>
- <xsl:when test="/root/env/param[@name = 'ui.LOBDataSource'] and count(/root/dataSources//*[local-name()='queryReply']/*)>0">
- <df:button df:id="IDS_BACK" df:style="href" onclick="window.history.back()" df:href="#"/>
- </xsl:when>
- <xsl:otherwise>
- <df:button df:id="IDS_BACK"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="count(/root/dataSources/cm:queryResponse/cm:queryReply/*) > 0">
- <df:button df:id="IDS_NEXT" utml:validate="true" df:style="stack-up">
- <df:target>
- <xsl:value-of select="concat($app, '/personal_data.xts')"/>
- </df:target>
- </df:button>
- </xsl:when>
- <xsl:otherwise>
- <df:button df:id="IDS_NEXT"/>
- </xsl:otherwise>
- </xsl:choose>
- </dp:footer>
- </utml:form>
- </dp:page>
- </xsl:template>
-
- <!-- Generic templates -->
- <pf:variables/>
- <pf:gen-icon/>
- </xsl:stylesheet>
- </xts:block>
-
- <!-- Response -->
- <xts:block id="format" mode="output" processor="XSLT" type="exec" mimeType="text/html" dependency="selectDataSource"
- condition=".[ (/root/env/param[@name = 'ui.LOBDataSource'] and /root/env/param[@name = 'ui.LOBDataSourceConnection'] and /root/env/param[@name = 'ui.LOBDataSourceSignon'] and (/root/env/param[@name = 'ui.LOBDataSource'] != ''))
- ]" mandatory="false">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/main/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/main/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
- <xts:logicsheet path="logicsheets/formlogic_lite.xslt"/>
- <xts:logicsheet path="logicsheets/validation.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: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:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
- xmlns:mt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/main/presentation/"
- xmlns:mf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/main/framework/"
- 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:x="x"
- xmlns:rdb="http://developer.cognos.com/schemas/xts/rdb"
- exclude-result-prefixes="rdb xsl cm lyt pf dp df mf mt utml x xts xtsext">
-
-
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes" />
-
- <!-- morphlet -->
- <xsl:variable name="mname" select="'personal_data.xts'"/>
-
- <pf:modalVariables/>
-
- <mf:variables/>
- <mf:main-variables/>
-
- <xsl:variable name="browserTitle">
- <xsl:choose>
- <xsl:when test="string(key('env-param', 'dataSetStoreID')) != ''">
- <xts:string id="IDS_LOB_DATA_EDIT_TITLE">
- <xts:param name="name">
- <xsl:value-of select="string(key('env-param', 'dataSetName'))"/>
- </xts:param>
- </xts:string>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_LOB_DATA_IMPORT"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:template match="/root">
- <xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text>
- <dp:page longTitle="$browserTitle" dp:kbA11y="true">
- <dp:meta>
- <meta http-equiv="X-UA-Compatible" content="IE=11"/>
- </dp:meta>
- <dp:script>
- <pf:help/>
- <link rel="stylesheet" type="text/css" href="{$webRoot}/dojo17/dojo/resources/dojo.css" />
- <link rel="stylesheet" type="text/css" href="{$webRoot}/dojo17/dijit/themes/claro/claro.css" />
- <link rel="stylesheet" type="text/css" href="{$webRoot}/skins/bux/bux/bux.css" />
- <link rel="stylesheet" type="text/css" href="{$webRoot}/dojo17/dojox/grid/enhanced/resources/claro/EnhancedGrid.css" />
- <link rel="stylesheet" type="text/css" href="{$webRoot}/dojo17/dojox/grid/enhanced/resources/EnhancedGrid_rtl.css" />
- <link rel="stylesheet" type="text/css" href="{$webRoot}/ps/lobdata/dojo/pd/resources/pd.css" />
- <script>
- var g_pd_webroot = "<xsl:value-of select="xtsext:javascriptencode(string($webRoot))"/>";
- var g_pd_gateway = "<xsl:value-of select="xtsext:javascriptencode(string($gateway))"/>";
- var g_pd_backURL = "<xsl:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='backURL']))"/>";
- var g_pd_productLocale = "<xsl:value-of select="xtsext:javascriptencode(string($productLocale))"/>";
- var g_pd_contentLocale = "<xsl:value-of select="xtsext:javascriptencode(string($contentLocale))"/>";
- var g_pd_routingServerGroup = "<xsl:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='ui.routingServerGroup']))"/>";
- var g_pd_cafcontextid = "<xsl:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='ui.cafcontextid']))"/>";
- var g_pd_dataSourceName = "<xsl:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='ui.LOBDataSource']))"/>";
- var g_pd_dataSourceConnection = "<xsl:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='ui.LOBDataSourceConnection']))"/>";
- var g_pd_dataSourceSignon = "<xsl:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='ui.LOBDataSourceSignon']))"/>";
- var g_pd_dataSetName = "<xsl:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='dataSetName']))"/>";
- var g_pd_dataSetStoreID = "<xsl:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='dataSetStoreID']))"/>";
-
- var G_Debug = {
- F_Print: function(str){
- console.debug(str);
- },
- F_CloseConsole: function(){
- }
- };
-
- var icdConfig = {
- 'productLocale': g_pd_productLocale,
- 'contentLocale': g_pd_contentLocale,
- 'Gateway': g_pd_gateway,
- 'Proxy': g_pd_gateway + "/icd/proxy",
- 'ServiceURL': g_pd_gateway + "/icd",
- 'WebContentURL': g_pd_webroot,
- 'IsCAFEnabled': "true",
- 'ThemeFolder': g_pd_webroot + "/skins/bux/bux",
-
- 'ConfiguredExternalSearchEngine': "",
- 'IsIndexSearchServiceActive': "true",
- 'RssAllowUnsafeCharacters': "false",
- 'ZIPIMode': "0",
- 'CognosExpressMode':"false",
- 'Embedded': false,
- 'GuidancePageMF': '',
- 'SyncNewWidgetsDefault': null,
- 'ViewerConcurrentRequestLimit': null,
- 'remUI': '',
- 'UIProfile': '{"default":{"enabled":true}}',
- 'currentUserRole': 'assemble',
- 'IEWhitespaceFix': false
- };
- </script>
- <script src="{$webRoot}/ps/lobdata/config/ibmConfig.js" type="text/javascript"></script>
- <script src="{$webRoot}/dojo17/dojo/dojo.js"></script>
- <script src="{$webRoot}/dojo17/dojo/pddojo.js"></script>
- <script src="{$webRoot}/icd/bux/js/bux/bux.core.js" type="text/javascript"></script>
- <script src="{$webRoot}/icd/iwidget/enabler.js" type="text/javascript"></script>
-
- <script src="{$webRoot}/ps/lobdata/pd.require.js" type="text/javascript"></script>
- <script src="{$webRoot}/ps/lobdata/pd.extension.js" type="text/javascript"></script>
- <script src="{$webRoot}/ps/lobdata/pd.extra.js" type="text/javascript"></script>
-
- <script src="{$webRoot}/camcrypto/base64.js" type="text/javascript"></script>
- <script src="{$webRoot}/camcrypto/camcryptoutil.js" type="text/javascript"></script>
- <script src="{$webRoot}/camcrypto/sha1.js" type="text/javascript"></script>
- <script src="{$webRoot}/camcrypto/authtoken.js" type="text/javascript"></script>
- <script>
- G_CCHL.F_Init(g_pd_gateway, g_pd_productLocale, g_pd_contentLocale, g_pd_cafcontextid, g_pd_routingServerGroup);
-
- require([
- "dojo/dom-class",
- "pd/i18n",
- "pd/_base",
- "dijit/layout/ContentPane",
- "dijit/layout/BorderContainer",
- "dijit/form/Button",
- <xsl:choose>
- <xsl:when test="string(key('env-param', 'dataSetStoreID')) != ''">
- "pd/ui/metadataEditor",
- </xsl:when>
- <xsl:otherwise>
- "pd/ui/fileUploader",
- </xsl:otherwise>
- </xsl:choose>
- "dojo/domReady!"
- ],
- function(domClass){
- domClass.add(dojo.doc.body, "claro icdUI");
- }
- );
-
- pd_onClose = function(isProcessing, backUrl) {
- if (isProcessing) {
- var process = pd.messageBox(pd.statics.MB_INFO, '<xts:string id="IDS_MYDS_BACKGROUND_IMPORT_CLOSE" encode="javascript"/>', '<xts:string id="IDS_MYDS_BACKGROUND_IMPORT_CLOSE_DETAILS" encode="javascript"/>');
- process.then(function(results){
- location.href=backUrl;
- });
- } else {
- location.href=backUrl;
- }
- };
- </script>
- </dp:script>
- <xsl:variable name="vdshelpid">dshelpid</xsl:variable>
- <dp:header helpId="vdshelpid" dp:kbA11y="true">
- <dp:focusidOnShiftTab>pd_cancelBtn</dp:focusidOnShiftTab>
- <!-- header titles -->
- <dp:title><xsl:copy-of select="$browserTitle"/></dp:title>
- <!-- description -->
- <dp:description>
- <xsl:choose>
- <xsl:when test="string(key('env-param', 'dataSetStoreID')) != ''">
- <xts:string id="IDS_LOB_DATA_EDIT_DESC"/>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_LOB_DATA_IMPORT_DESC"/>
- </xsl:otherwise>
- </xsl:choose>
- </dp:description>
- <dp:close >
- <xsl:variable name="close"><xts:string id="IDS_CLOSE"/></xsl:variable>
- <xsl:variable name="backURL" select="xtsext:javascriptencode(string(/root/env/param[@name = 'backURL']))"/>
- <a id="pd_closeBtn" role="button">
- <dp:closeMarker/>
- </a>
- </dp:close>
- </dp:header>
- <br/>
- <xsl:variable name="pdWidgetType">
- <xsl:choose>
- <xsl:when test="string(key('env-param', 'dataSetStoreID')) != ''">
- <xsl:value-of select="'pd/ui/metadataEditor'"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="'pd/ui/fileUploader'"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="IDS_LOB_GROUP_LABEL_FILE_UPLOAD">
- <xts:string id="IDS_LOB_GROUP_LABEL_FILE_UPLOAD"/>
- </xsl:variable>
- <xsl:variable name="IDS_LOB_GROUP_LABEL_COLUMN_NAME_SEARCH_BOX">
- <xts:string id="IDS_LOB_GROUP_LABEL_COLUMN_NAME_SEARCH_BOX"/>
- </xsl:variable>
- <xsl:variable name="IDS_LOB_GROUP_LABEL_METADATA_PANE">
- <xts:string id="IDS_LOB_GROUP_LABEL_METADATA_PANE"/>
- </xsl:variable>
- <xsl:variable name="IDS_LOB_GROUP_LABEL_METADATA_TABLE">
- <xts:string id="IDS_LOB_GROUP_LABEL_METADATA_TABLE"/>
- </xsl:variable>
- <xsl:variable name="IDS_LOB_GROUP_LABEL_PREVIEW_PANE">
- <xts:string id="IDS_LOB_GROUP_LABEL_PREVIEW_PANE"/>
- </xsl:variable>
- <xsl:variable name="IDS_LOB_GROUP_LABEL_COMMAND_BUTTONS">
- <xts:string id="IDS_LOB_GROUP_LABEL_COMMAND_BUTTONS"/>
- </xsl:variable>
- <div data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="gutters:true, liveSplitters:false" id="pd_import_dialog_div">
- <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'top'" aria-label="{$IDS_LOB_GROUP_LABEL_FILE_UPLOAD}">
- <div data-dojo-type="{$pdWidgetType}" data-dojo-props="dataSetStoreID: g_pd_dataSetStoreID ,dataSetName: g_pd_dataSetName, repositoryName: g_pd_dataSourceName, repositoryConnection: g_pd_dataSourceConnection, repositorySignon: g_pd_dataSourceSignon"></div>
- </div>
- <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'left', splitter:true" style="width: 400px;" aria-label="{$IDS_LOB_GROUP_LABEL_METADATA_PANE}">
- <div data-dojo-type="dijit/layout/BorderContainer">
- <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'top'" data-dojo-id="pd_columnComboboxContainer" aria-label="{$IDS_LOB_GROUP_LABEL_COLUMN_NAME_SEARCH_BOX}">
- <div id="pd_column_combobox_div"/>
- </div>
- <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'" data-dojo-id="pd_columnGridContainer" aria-label="{$IDS_LOB_GROUP_LABEL_METADATA_TABLE}"/>
- </div>
- </div>
- <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'" data-dojo-id="pd_previewContainer" aria-label="{$IDS_LOB_GROUP_LABEL_PREVIEW_PANE}"/>
- <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'bottom'" aria-label="{$IDS_LOB_GROUP_LABEL_COMMAND_BUTTONS}">
- <table role="presentation" cellspacing="5" class="dialogButtonBar">
- <tr>
- <td><button data-dojo-type="dijit/form/Button" data-dojo-props="label: PDMSG.IPT.IDS_IPT_PUBLISH_BUTTON" data-dojo-id="pd_publishBtn" disabled="disabled"></button></td>
- <td></td>
- <td><button data-dojo-type="dijit/form/Button" data-dojo-props="label: PDMSG.IPT.IDS_IPT_CANCEL_BUTTON" data-dojo-id="pd_cancelBtn"></button></td>
- <td width="100%"></td>
- </tr>
- </table>
- </div>
- </div>
- </dp:page>
- </xsl:template>
-
- <!-- Generic templates -->
- <pf:variables/>
- <pf:gen-icon/>
- </xsl:stylesheet>
- </xts:block>
-
-
- <!-- debug -->
- <xts:block id="debug" dependency="format" condition=".[/root/session/param[@name='debug']='1']" type="exec" mode="output" processor="XSLT" mandatory="false" mimeType="text/html">
- <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>
|