personal_data.xts 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: ps
  5. (C) Copyright IBM Corp. 2014, 2015
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <!--
  9. Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
  10. Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  11. -->
  12. <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">
  13. <!-- Navigation control -->
  14. <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="/logicsheets/formlogic_init.xslt" nodelist="env,credential,system,http"/>
  15. <xts:block id="getDataSourceFromSpec" processor="XSLT" type="exec" dependency="formlogic_init" nodelist="header, env, configProps"
  16. condition=".[ not(/root/env/param[@name = 'ui.LOBDataSource']) and /root/env/param[@name = 'dataSetStoreID'] != '']" mandatory="false">
  17. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  18. <xsl:stylesheet version="1.0"
  19. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  20. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  21. exclude-result-prefixes="xsl send">
  22. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  23. <xsl:template match="/">
  24. <xts:sequence>
  25. <xts:append>
  26. <dataSources>
  27. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  28. <send:request provider="cm">
  29. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  30. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  31. <cm:requests>
  32. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  33. <cm:search>storeID('<xsl:value-of select="/root/env/param[@name='dataSetStoreID']"/>')</cm:search>
  34. <cm:properties>
  35. <cm:property name="specification"/>
  36. </cm:properties>
  37. </cm:query>
  38. </cm:requests>
  39. </cm:query>
  40. </xts:transform>
  41. </send:request>
  42. </xts:transform>
  43. </dataSources>
  44. </xts:append>
  45. </xts:sequence>
  46. </xsl:template>
  47. </xsl:stylesheet>
  48. </xts:block>
  49. <xts:block id="checkDataSources" processor="XSLT" type="exec" dependency="getDataSourceFromSpec" nodelist="dataSources, env"
  50. condition=".[ (/root/dataSources/*) ]" mandatory="false">
  51. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  52. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  53. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
  54. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  55. <xsl:template match="/">
  56. <xts:sequence>
  57. <xts:delete select="/root/dataSources"/>
  58. </xts:sequence>
  59. <xts:sequence>
  60. <xsl:variable name="specDataSourceInfo" select="/root/dataSources/cm:queryResponse/cm:queryReply/cm:dataSet/cm:specification/cm:pdSpec/cm:dataSource"/>
  61. <xsl:choose>
  62. <xsl:when test="$specDataSourceInfo/cm:name != ''">
  63. <xts:append select="/root/env">
  64. <param name="ui.LOBDataSource"><xsl:value-of select="$specDataSourceInfo/cm:name"/></param>
  65. <xsl:if test="$specDataSourceInfo/cm:connection">
  66. <param name="ui.LOBDataSourceConnection"><xsl:value-of select="$specDataSourceInfo/cm:connection"/></param>
  67. </xsl:if>
  68. <xsl:if test="$specDataSourceInfo/cm:signon">
  69. <param name="ui.LOBDataSourceSignon"><xsl:value-of select="$specDataSourceInfo/cm:signon"/></param>
  70. </xsl:if>
  71. </xts:append>
  72. </xsl:when>
  73. </xsl:choose>
  74. </xts:sequence>
  75. </xsl:template>
  76. </xsl:stylesheet>
  77. </xts:block>
  78. <xts:block id="getDataSources" processor="XSLT" type="exec" dependency="checkDataSources" nodelist="dataSources, header, env, configProps"
  79. condition=".[ not(/root/env/param[@name = 'ui.LOBDataSource'])]" mandatory="false">
  80. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  81. <xsl:stylesheet version="1.0"
  82. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  83. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  84. exclude-result-prefixes="xsl send">
  85. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  86. <xsl:template match="/">
  87. <xts:sequence>
  88. <xts:append>
  89. <dataSources>
  90. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  91. <send:request provider="cm">
  92. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  93. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  94. <cm:requests>
  95. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  96. <cm:search>CAMID(':')/dataSource[@capabilities='http://developer.cognos.com/ceba/constants/dataSourceCapabilityEnum#lobData'][permission("execute")]</cm:search>
  97. <cm:properties>
  98. <cm:property name="defaultName"/>
  99. <cm:property name="objectClass"/>
  100. <cm:property name="hidden"/>
  101. </cm:properties>
  102. </cm:query>
  103. </cm:requests>
  104. </cm:query>
  105. </xts:transform>
  106. </send:request>
  107. </xts:transform>
  108. </dataSources>
  109. </xts:append>
  110. </xts:sequence>
  111. </xsl:template>
  112. </xsl:stylesheet>
  113. </xts:block>
  114. <xts:block id="setDataSourceEnvParam" processor="XSLT" type="exec" dependency="getDataSources" nodelist="dataSources, header, env, configProps"
  115. condition=".[ (not(/root/env/param[@name = 'ui.LOBDataSource'])) and (count(/root/dataSources//*[local-name()='queryReply']/*)=1)]" mandatory="false">
  116. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  117. <xsl:stylesheet version="1.0"
  118. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  119. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  120. exclude-result-prefixes="xsl send">
  121. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  122. <xsl:template match="/">
  123. <xts:sequence>
  124. <xts:append select="/root/env">
  125. <xsl:variable name="dataSourceName" select="/root/dataSources/cm:queryResponse/cm:queryReply/*/cm:defaultName"/>
  126. <param name="ui.LOBDataSource"><xsl:value-of select="$dataSourceName"/></param>
  127. </xts:append>
  128. </xts:sequence>
  129. </xsl:template>
  130. </xsl:stylesheet>
  131. </xts:block>
  132. <xts:block id="getDataSourceConnections" processor="XSLT" type="exec" dependency="setDataSourceEnvParam" nodelist="dataSources, header, env, configProps"
  133. condition=".[ (/root/env/param[@name = 'ui.LOBDataSource']) and (not(/root/env/param[@name = 'ui.LOBDataSourceConnection'])) ]" mandatory="false">
  134. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  135. <xsl:stylesheet version="1.0"
  136. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  137. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  138. exclude-result-prefixes="xsl send">
  139. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  140. <xsl:template match="/">
  141. <xts:sequence>
  142. <xts:delete select="/root/dataSources"/>
  143. </xts:sequence>
  144. <xts:sequence>
  145. <xts:append>
  146. <dataSources>
  147. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  148. <send:request provider="cm">
  149. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  150. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  151. <cm:requests>
  152. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  153. <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"/>
  154. <xsl:variable name="sq" select='"&apos;"'/>
  155. <xsl:variable name="cmEncodedDsName" select="xtsext:replace(string($dsName), string($sq), concat($sq,$sq)) "/>
  156. <cm:search>CAMID(':')/dataSource[@name='<xsl:value-of select="$cmEncodedDsName"/>']/dataSourceConnection</cm:search>
  157. <cm:properties>
  158. <cm:property name="defaultName"/>
  159. <cm:property name="objectClass"/>
  160. <cm:property name="hidden"/>
  161. </cm:properties>
  162. </cm:query>
  163. </cm:requests>
  164. </cm:query>
  165. </xts:transform>
  166. </send:request>
  167. </xts:transform>
  168. </dataSources>
  169. </xts:append>
  170. </xts:sequence>
  171. </xsl:template>
  172. </xsl:stylesheet>
  173. </xts:block>
  174. <xts:block id="setDataSourceConnectionEnvParam" processor="XSLT" type="exec" dependency="getDataSourceConnections" nodelist="dataSources, header, env, configProps"
  175. condition=".[ (not(/root/env/param[@name = 'ui.LOBDataSourceConnection'])) and (count(/root/dataSources//*[local-name()='queryReply']/*)=1)]" mandatory="false">
  176. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  177. <xsl:stylesheet version="1.0"
  178. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  179. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  180. exclude-result-prefixes="xsl send">
  181. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  182. <xsl:template match="/">
  183. <xts:sequence>
  184. <xts:append select="/root/env">
  185. <xsl:variable name="dataSourceConnectionName" select="/root/dataSources/cm:queryResponse/cm:queryReply/*/cm:defaultName"/>
  186. <param name="ui.LOBDataSourceConnection"><xsl:value-of select="$dataSourceConnectionName"/></param>
  187. </xts:append>
  188. </xts:sequence>
  189. </xsl:template>
  190. </xsl:stylesheet>
  191. </xts:block>
  192. <xts:block id="getDataSourceSignons" processor="XSLT" type="exec" dependency="setDataSourceConnectionEnvParam" nodelist="dataSources, header, env, configProps"
  193. condition=".[ (/root/env/param[@name = 'ui.LOBDataSourceConnection']) and (not(/root/env/param[@name = 'ui.LOBDataSourceSignon'])) ]" mandatory="false">
  194. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  195. <xsl:stylesheet version="1.0"
  196. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  197. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  198. exclude-result-prefixes="xsl send">
  199. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  200. <xsl:template match="/">
  201. <xts:sequence>
  202. <xts:delete select="/root/dataSources"/>
  203. </xts:sequence>
  204. <xts:sequence>
  205. <xsl:variable name="dataSourceConnection" select="/root/env/param[@name = 'ui.LOBDataSourceConnection'] | /root/dataSources/cm:queryResponse/cm:queryReply/*/cm:defaultName"/>
  206. <xts:append>
  207. <dataSources>
  208. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  209. <send:request provider="cm">
  210. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  211. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  212. <cm:requests>
  213. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  214. <xsl:variable name="dsName" select="/root/env/param[@name = 'ui.LOBDataSource']"/>
  215. <xsl:variable name="sq" select='"&apos;"'/>
  216. <xsl:variable name="cmEncodedDsName" select="xtsext:replace(string($dsName), string($sq), concat($sq,$sq)) "/>
  217. <xsl:variable name="cmEncodedDsConnection" select="xtsext:replace(string($dataSourceConnection), string($sq), concat($sq,$sq)) "/>
  218. <cm:search>CAMID(':')/dataSource[@name='<xsl:value-of select="$cmEncodedDsName"/>']/dataSourceConnection[@name='<xsl:value-of select="$cmEncodedDsConnection"/>']/dataSourceSignon</cm:search>
  219. <cm:properties>
  220. <cm:property name="defaultName"/>
  221. <cm:property name="objectClass"/>
  222. <cm:property name="hidden"/>
  223. </cm:properties>
  224. </cm:query>
  225. </cm:requests>
  226. </cm:query>
  227. </xts:transform>
  228. </send:request>
  229. </xts:transform>
  230. </dataSources>
  231. </xts:append>
  232. </xts:sequence>
  233. </xsl:template>
  234. </xsl:stylesheet>
  235. </xts:block>
  236. <xts:block id="setDataSourceSignonEnvParam" processor="XSLT" type="exec" dependency="getDataSourceSignons" nodelist="dataSources, header, env, configProps"
  237. condition=".[ (not(/root/env/param[@name = 'ui.LOBDataSourceSignon'])) and (count(/root/dataSources//*[local-name()='queryReply']/*)=1) ]" mandatory="false">
  238. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  239. <xsl:stylesheet version="1.0"
  240. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  241. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  242. exclude-result-prefixes="xsl send">
  243. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  244. <xsl:template match="/">
  245. <xts:sequence>
  246. <xts:append select="/root/env">
  247. <xsl:variable name="dataSourceSignonName" select="/root/dataSources/cm:queryResponse/cm:queryReply/*/cm:defaultName"/>
  248. <param name="ui.LOBDataSourceSignon"><xsl:value-of select="$dataSourceSignonName"/></param>
  249. </xts:append>
  250. </xts:sequence>
  251. </xsl:template>
  252. </xsl:stylesheet>
  253. </xts:block>
  254. <!--
  255. ===============================================================================================
  256. getObjects - get object class names
  257. ===============================================================================================
  258. -->
  259. <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">
  260. <xts:logicsheet path="/logicsheets/uiobjects/uiobjects_names.xslt"/>
  261. </xts:block>
  262. <xts:block id="selectDataSource" mode="output" processor="XSLT" type="exec" mimeType="text/html" dependency="classNames checkDataSources"
  263. 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">
  264. <!-- portal specific information -->
  265. <xts:logicsheet path="logicsheets/portal.xsl"/>
  266. <!-- get the new theme stuff -->
  267. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  268. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  269. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  270. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  271. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  272. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  273. <xts:logicsheet path="logicsheets/validation.xslt"/>
  274. <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
  275. <xsl:stylesheet version="1.0"
  276. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  277. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  278. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  279. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  280. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  281. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  282. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  283. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  284. xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
  285. xmlns:out="http://www.w3.org/1999/XSL/Transform"
  286. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  287. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  288. xmlns:x="x"
  289. xmlns:rdb="http://developer.cognos.com/schemas/xts/rdb"
  290. exclude-result-prefixes="rdb xsl cm lyt pf dp df cf cp utml x xts xtsext">
  291. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes" />
  292. <!-- morphlet -->
  293. <xsl:variable name="mname" select="'personal_data.xts'"/>
  294. <pf:modalVariables/>
  295. <xsl:variable name="browserTitle">
  296. <xsl:choose>
  297. <xsl:when test="string(key('env-param', 'dataSetStoreID')) != ''">
  298. <xts:string id="IDS_LOB_DATA_EDIT_TITLE">
  299. <xts:param name="name">
  300. <xsl:value-of select="string(key('env-param', 'dataSetName'))"/>
  301. </xts:param>
  302. </xts:string>
  303. </xsl:when>
  304. <xsl:otherwise>
  305. <xts:string id="IDS_LOB_DATA_IMPORT"/>
  306. </xsl:otherwise>
  307. </xsl:choose>
  308. </xsl:variable>
  309. <xsl:template match="/root">
  310. <xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html></xsl:text>
  311. <dp:page longTitle="$browserTitle">
  312. <dp:meta>
  313. <pf:meta/> <!-- Standard meta tags -->
  314. </dp:meta>
  315. <pf:help context=""/>
  316. <!-- Get date control includes -->
  317. <utml:form name="pform" method="post" action="{$gateway}">
  318. <!-- header -->
  319. <dp:header>
  320. <dp:title>
  321. <xsl:copy-of select="$browserTitle"/>
  322. </dp:title>
  323. </dp:header>
  324. <xsl:variable name="description">
  325. <xsl:choose>
  326. <xsl:when test="/root/env/param[@name='ui.LOBDataSourceConnection']">
  327. <xts:string id="IDS_AMBIGIOUS_SIGNONS"/>
  328. </xsl:when>
  329. <xsl:when test="/root/env/param[@name='ui.LOBDataSource']">
  330. <xts:string id="IDS_AMBIGIOUS_DATASOURCECONNECTION"/>
  331. </xsl:when>
  332. <xsl:otherwise>
  333. <xts:string id="IDS_LOB_SELECT_DATASOURCE_INTRO"/>
  334. </xsl:otherwise>
  335. </xsl:choose>
  336. </xsl:variable>
  337. <xsl:variable name="label">
  338. <xsl:choose>
  339. <xsl:when test="/root/env/param[@name='ui.LOBDataSourceConnection']">
  340. <xts:string id="IDS_PROP_SIGNON_CREDENTIALS"/>
  341. </xsl:when>
  342. <xsl:when test="/root/env/param[@name='ui.LOBDataSource']">
  343. <xts:string id="IDS_PROP_ADVANCED_REPOSITORY_RULES_CONNECT_LABEL"/>
  344. </xsl:when>
  345. <xsl:otherwise>
  346. <xts:string id="IDS_LOB_DSTABLE_DATASOURCE_LABEL"/>
  347. </xsl:otherwise>
  348. </xsl:choose>
  349. </xsl:variable>
  350. <dp:description>
  351. <xsl:value-of select="$description"/>
  352. </dp:description>
  353. <!-- body -->
  354. <lyt:layout style="1">
  355. <lyt:section>
  356. <dp:list width="100%">
  357. <dp:section>
  358. <dp:label>
  359. <xsl:value-of select="$label"/>
  360. </dp:label>
  361. </dp:section>
  362. <dp:section>
  363. <cp:table name="dataSources" iterate="/root/dataSources/cm:queryResponse/cm:queryReply/*" width="100%" align="left" showEmptyMsg="true">
  364. <cp:tableSummary><xts:string id="IDS_LOB_DSTABLE_SUMMARY" encoding="html"/></cp:tableSummary>
  365. <cp:tableHeader>
  366. <!-- radio button -->
  367. <cp:columnHeader width="16"/>
  368. <!-- icon -->
  369. <cp:columnHeader width="16"/>
  370. <!-- name -->
  371. <cp:columnHeader width="100%">
  372. <xts:string id="IDS_LOB_DSTABLE_COLUMN_HEADING"/>
  373. </cp:columnHeader>
  374. </cp:tableHeader>
  375. <cp:tableContent>
  376. <!-- radio button -->
  377. <cp:columnContent>
  378. <span style="position: absolute;margin-top: -9999px;margin-left: -9999px; " >
  379. <xsl:attribute name="id">selectRB_<xsl:value-of select="position()"/></xsl:attribute>
  380. <xts:string id="IDS_SELECT_RADIO_DESC"><xts:param name="name"><xsl:value-of select="cm:defaultName"/></xts:param></xts:string>
  381. </span>
  382. <xsl:variable name="radioBtnName">
  383. <xsl:choose>
  384. <xsl:when test="/root/env/param[@name = 'ui.LOBDataSourceConnection']">
  385. <xsl:value-of select="'ui.LOBDataSourceSignon'"/>
  386. </xsl:when>
  387. <xsl:when test="/root/env/param[@name = 'ui.LOBDataSource']">
  388. <xsl:value-of select="'ui.LOBDataSourceConnection'"/>
  389. </xsl:when>
  390. <xsl:otherwise>
  391. <xsl:value-of select="'ui.LOBDataSource'"/>
  392. </xsl:otherwise>
  393. </xsl:choose>
  394. </xsl:variable>
  395. <input type="radio" name="{$radioBtnName}">
  396. <!-- xsl:attribute name="name"><xsl:value-of select="$radioBtnName"/></xsl:attribute-->
  397. <xsl:attribute name="aria-labelledBy">selectRB_<xsl:value-of select="position()"/></xsl:attribute>
  398. <xsl:attribute name="value"><xsl:value-of select="cm:defaultName"/></xsl:attribute>
  399. <xsl:attribute name="id"><xsl:value-of select="cm:defaultName"/></xsl:attribute>
  400. <xsl:if test="position()=1">
  401. <xsl:attribute name="checked">checked</xsl:attribute>
  402. </xsl:if>
  403. <xsl:attribute name="title">
  404. <xsl:value-of select="xtsext:enforceBTD(cm:defaultName, $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/>
  405. </xsl:attribute>
  406. </input>
  407. </cp:columnContent>
  408. <!-- icon -->
  409. <cp:columnContent valign="top">
  410. <xsl:call-template name="gen-icon">
  411. <xsl:with-param name="showAction" select="false()"/>
  412. <xsl:with-param name="class" select="cm:objectClass"/>
  413. <xsl:with-param name="hiddenObject" select="cm:hidden"/>
  414. </xsl:call-template>
  415. </cp:columnContent>
  416. <!-- name -->
  417. <cp:columnContent scope="row">
  418. <xsl:value-of select="cm:defaultName"/>
  419. </cp:columnContent>
  420. </cp:tableContent>
  421. </cp:table>
  422. </dp:section>
  423. </dp:list>
  424. </lyt:section>
  425. </lyt:layout>
  426. <!-- footer -->
  427. <dp:footer>
  428. <df:button df:id="IDS_CANCEL" df:style="back-url"/>
  429. <xsl:choose>
  430. <xsl:when test="/root/env/param[@name = 'ui.LOBDataSource'] and count(/root/dataSources//*[local-name()='queryReply']/*)&gt;0">
  431. <df:button df:id="IDS_BACK" df:style="href" onclick="window.history.back()" df:href="#"/>
  432. </xsl:when>
  433. <xsl:otherwise>
  434. <df:button df:id="IDS_BACK"/>
  435. </xsl:otherwise>
  436. </xsl:choose>
  437. <xsl:choose>
  438. <xsl:when test="count(/root/dataSources/cm:queryResponse/cm:queryReply/*) &gt; 0">
  439. <df:button df:id="IDS_NEXT" utml:validate="true" df:style="stack-up">
  440. <df:target>
  441. <xsl:value-of select="concat($app, '/personal_data.xts')"/>
  442. </df:target>
  443. </df:button>
  444. </xsl:when>
  445. <xsl:otherwise>
  446. <df:button df:id="IDS_NEXT"/>
  447. </xsl:otherwise>
  448. </xsl:choose>
  449. </dp:footer>
  450. </utml:form>
  451. </dp:page>
  452. </xsl:template>
  453. <!-- Generic templates -->
  454. <pf:variables/>
  455. <pf:gen-icon/>
  456. </xsl:stylesheet>
  457. </xts:block>
  458. <!-- Response -->
  459. <xts:block id="format" mode="output" processor="XSLT" type="exec" mimeType="text/html" dependency="selectDataSource"
  460. 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'] != ''))
  461. ]" mandatory="false">
  462. <xts:logicsheet path="logicsheets/portal.xsl"/>
  463. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  464. <xts:logicsheet path="logicsheets/presentation/main/framework.xsl"/>
  465. <xts:logicsheet path="logicsheets/presentation/main/presentation.xsl"/>
  466. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  467. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  468. <xts:logicsheet path="logicsheets/formlogic_lite.xslt"/>
  469. <xts:logicsheet path="logicsheets/validation.xslt"/>
  470. <xsl:stylesheet version="1.0"
  471. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  472. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  473. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  474. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  475. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  476. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  477. xmlns:mt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/main/presentation/"
  478. xmlns:mf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/main/framework/"
  479. xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
  480. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  481. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  482. xmlns:x="x"
  483. xmlns:rdb="http://developer.cognos.com/schemas/xts/rdb"
  484. exclude-result-prefixes="rdb xsl cm lyt pf dp df mf mt utml x xts xtsext">
  485. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes" />
  486. <!-- morphlet -->
  487. <xsl:variable name="mname" select="'personal_data.xts'"/>
  488. <pf:modalVariables/>
  489. <mf:variables/>
  490. <mf:main-variables/>
  491. <xsl:variable name="browserTitle">
  492. <xsl:choose>
  493. <xsl:when test="string(key('env-param', 'dataSetStoreID')) != ''">
  494. <xts:string id="IDS_LOB_DATA_EDIT_TITLE">
  495. <xts:param name="name">
  496. <xsl:value-of select="string(key('env-param', 'dataSetName'))"/>
  497. </xts:param>
  498. </xts:string>
  499. </xsl:when>
  500. <xsl:otherwise>
  501. <xts:string id="IDS_LOB_DATA_IMPORT"/>
  502. </xsl:otherwise>
  503. </xsl:choose>
  504. </xsl:variable>
  505. <xsl:template match="/root">
  506. <xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html></xsl:text>
  507. <dp:page longTitle="$browserTitle" dp:kbA11y="true">
  508. <dp:meta>
  509. <meta http-equiv="X-UA-Compatible" content="IE=11"/>
  510. </dp:meta>
  511. <dp:script>
  512. <pf:help/>
  513. <link rel="stylesheet" type="text/css" href="{$webRoot}/dojo17/dojo/resources/dojo.css" />
  514. <link rel="stylesheet" type="text/css" href="{$webRoot}/dojo17/dijit/themes/claro/claro.css" />
  515. <link rel="stylesheet" type="text/css" href="{$webRoot}/skins/bux/bux/bux.css" />
  516. <link rel="stylesheet" type="text/css" href="{$webRoot}/dojo17/dojox/grid/enhanced/resources/claro/EnhancedGrid.css" />
  517. <link rel="stylesheet" type="text/css" href="{$webRoot}/dojo17/dojox/grid/enhanced/resources/EnhancedGrid_rtl.css" />
  518. <link rel="stylesheet" type="text/css" href="{$webRoot}/ps/lobdata/dojo/pd/resources/pd.css" />
  519. <script>
  520. var g_pd_webroot = "<xsl:value-of select="xtsext:javascriptencode(string($webRoot))"/>";
  521. var g_pd_gateway = "<xsl:value-of select="xtsext:javascriptencode(string($gateway))"/>";
  522. var g_pd_backURL = "<xsl:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='backURL']))"/>";
  523. var g_pd_productLocale = "<xsl:value-of select="xtsext:javascriptencode(string($productLocale))"/>";
  524. var g_pd_contentLocale = "<xsl:value-of select="xtsext:javascriptencode(string($contentLocale))"/>";
  525. var g_pd_routingServerGroup = "<xsl:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='ui.routingServerGroup']))"/>";
  526. var g_pd_cafcontextid = "<xsl:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='ui.cafcontextid']))"/>";
  527. var g_pd_dataSourceName = "<xsl:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='ui.LOBDataSource']))"/>";
  528. var g_pd_dataSourceConnection = "<xsl:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='ui.LOBDataSourceConnection']))"/>";
  529. var g_pd_dataSourceSignon = "<xsl:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='ui.LOBDataSourceSignon']))"/>";
  530. var g_pd_dataSetName = "<xsl:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='dataSetName']))"/>";
  531. var g_pd_dataSetStoreID = "<xsl:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='dataSetStoreID']))"/>";
  532. var G_Debug = {
  533. F_Print: function(str){
  534. console.debug(str);
  535. },
  536. F_CloseConsole: function(){
  537. }
  538. };
  539. var icdConfig = {
  540. 'productLocale': g_pd_productLocale,
  541. 'contentLocale': g_pd_contentLocale,
  542. 'Gateway': g_pd_gateway,
  543. 'Proxy': g_pd_gateway + "/icd/proxy",
  544. 'ServiceURL': g_pd_gateway + "/icd",
  545. 'WebContentURL': g_pd_webroot,
  546. 'IsCAFEnabled': "true",
  547. 'ThemeFolder': g_pd_webroot + "/skins/bux/bux",
  548. 'ConfiguredExternalSearchEngine': "",
  549. 'IsIndexSearchServiceActive': "true",
  550. 'RssAllowUnsafeCharacters': "false",
  551. 'ZIPIMode': "0",
  552. 'CognosExpressMode':"false",
  553. 'Embedded': false,
  554. 'GuidancePageMF': '',
  555. 'SyncNewWidgetsDefault': null,
  556. 'ViewerConcurrentRequestLimit': null,
  557. 'remUI': '',
  558. 'UIProfile': '{"default":{"enabled":true}}',
  559. 'currentUserRole': 'assemble',
  560. 'IEWhitespaceFix': false
  561. };
  562. </script>
  563. <script src="{$webRoot}/ps/lobdata/config/ibmConfig.js" type="text/javascript"></script>
  564. <script src="{$webRoot}/dojo17/dojo/dojo.js"></script>
  565. <script src="{$webRoot}/dojo17/dojo/pddojo.js"></script>
  566. <script src="{$webRoot}/icd/bux/js/bux/bux.core.js" type="text/javascript"></script>
  567. <script src="{$webRoot}/icd/iwidget/enabler.js" type="text/javascript"></script>
  568. <script src="{$webRoot}/ps/lobdata/pd.require.js" type="text/javascript"></script>
  569. <script src="{$webRoot}/ps/lobdata/pd.extension.js" type="text/javascript"></script>
  570. <script src="{$webRoot}/ps/lobdata/pd.extra.js" type="text/javascript"></script>
  571. <script src="{$webRoot}/camcrypto/base64.js" type="text/javascript"></script>
  572. <script src="{$webRoot}/camcrypto/camcryptoutil.js" type="text/javascript"></script>
  573. <script src="{$webRoot}/camcrypto/sha1.js" type="text/javascript"></script>
  574. <script src="{$webRoot}/camcrypto/authtoken.js" type="text/javascript"></script>
  575. <script>
  576. G_CCHL.F_Init(g_pd_gateway, g_pd_productLocale, g_pd_contentLocale, g_pd_cafcontextid, g_pd_routingServerGroup);
  577. require([
  578. "dojo/dom-class",
  579. "pd/i18n",
  580. "pd/_base",
  581. "dijit/layout/ContentPane",
  582. "dijit/layout/BorderContainer",
  583. "dijit/form/Button",
  584. <xsl:choose>
  585. <xsl:when test="string(key('env-param', 'dataSetStoreID')) != ''">
  586. "pd/ui/metadataEditor",
  587. </xsl:when>
  588. <xsl:otherwise>
  589. "pd/ui/fileUploader",
  590. </xsl:otherwise>
  591. </xsl:choose>
  592. "dojo/domReady!"
  593. ],
  594. function(domClass){
  595. domClass.add(dojo.doc.body, "claro icdUI");
  596. }
  597. );
  598. pd_onClose = function(isProcessing, backUrl) {
  599. if (isProcessing) {
  600. 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"/>');
  601. process.then(function(results){
  602. location.href=backUrl;
  603. });
  604. } else {
  605. location.href=backUrl;
  606. }
  607. };
  608. </script>
  609. </dp:script>
  610. <xsl:variable name="vdshelpid">dshelpid</xsl:variable>
  611. <dp:header helpId="vdshelpid" dp:kbA11y="true">
  612. <dp:focusidOnShiftTab>pd_cancelBtn</dp:focusidOnShiftTab>
  613. <!-- header titles -->
  614. <dp:title><xsl:copy-of select="$browserTitle"/></dp:title>
  615. <!-- description -->
  616. <dp:description>
  617. <xsl:choose>
  618. <xsl:when test="string(key('env-param', 'dataSetStoreID')) != ''">
  619. <xts:string id="IDS_LOB_DATA_EDIT_DESC"/>
  620. </xsl:when>
  621. <xsl:otherwise>
  622. <xts:string id="IDS_LOB_DATA_IMPORT_DESC"/>
  623. </xsl:otherwise>
  624. </xsl:choose>
  625. </dp:description>
  626. <dp:close >
  627. <xsl:variable name="close"><xts:string id="IDS_CLOSE"/></xsl:variable>
  628. <xsl:variable name="backURL" select="xtsext:javascriptencode(string(/root/env/param[@name = 'backURL']))"/>
  629. <a id="pd_closeBtn" role="button">
  630. <dp:closeMarker/>
  631. </a>
  632. </dp:close>
  633. </dp:header>
  634. <br/>
  635. <xsl:variable name="pdWidgetType">
  636. <xsl:choose>
  637. <xsl:when test="string(key('env-param', 'dataSetStoreID')) != ''">
  638. <xsl:value-of select="'pd/ui/metadataEditor'"/>
  639. </xsl:when>
  640. <xsl:otherwise>
  641. <xsl:value-of select="'pd/ui/fileUploader'"/>
  642. </xsl:otherwise>
  643. </xsl:choose>
  644. </xsl:variable>
  645. <xsl:variable name="IDS_LOB_GROUP_LABEL_FILE_UPLOAD">
  646. <xts:string id="IDS_LOB_GROUP_LABEL_FILE_UPLOAD"/>
  647. </xsl:variable>
  648. <xsl:variable name="IDS_LOB_GROUP_LABEL_COLUMN_NAME_SEARCH_BOX">
  649. <xts:string id="IDS_LOB_GROUP_LABEL_COLUMN_NAME_SEARCH_BOX"/>
  650. </xsl:variable>
  651. <xsl:variable name="IDS_LOB_GROUP_LABEL_METADATA_PANE">
  652. <xts:string id="IDS_LOB_GROUP_LABEL_METADATA_PANE"/>
  653. </xsl:variable>
  654. <xsl:variable name="IDS_LOB_GROUP_LABEL_METADATA_TABLE">
  655. <xts:string id="IDS_LOB_GROUP_LABEL_METADATA_TABLE"/>
  656. </xsl:variable>
  657. <xsl:variable name="IDS_LOB_GROUP_LABEL_PREVIEW_PANE">
  658. <xts:string id="IDS_LOB_GROUP_LABEL_PREVIEW_PANE"/>
  659. </xsl:variable>
  660. <xsl:variable name="IDS_LOB_GROUP_LABEL_COMMAND_BUTTONS">
  661. <xts:string id="IDS_LOB_GROUP_LABEL_COMMAND_BUTTONS"/>
  662. </xsl:variable>
  663. <div data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="gutters:true, liveSplitters:false" id="pd_import_dialog_div">
  664. <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'top'" aria-label="{$IDS_LOB_GROUP_LABEL_FILE_UPLOAD}">
  665. <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>
  666. </div>
  667. <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}">
  668. <div data-dojo-type="dijit/layout/BorderContainer">
  669. <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}">
  670. <div id="pd_column_combobox_div"/>
  671. </div>
  672. <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}"/>
  673. </div>
  674. </div>
  675. <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}"/>
  676. <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'bottom'" aria-label="{$IDS_LOB_GROUP_LABEL_COMMAND_BUTTONS}">
  677. <table role="presentation" cellspacing="5" class="dialogButtonBar">
  678. <tr>
  679. <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>
  680. <td></td>
  681. <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>
  682. <td width="100%"></td>
  683. </tr>
  684. </table>
  685. </div>
  686. </div>
  687. </dp:page>
  688. </xsl:template>
  689. <!-- Generic templates -->
  690. <pf:variables/>
  691. <pf:gen-icon/>
  692. </xsl:stylesheet>
  693. </xts:block>
  694. <!-- debug -->
  695. <xts:block id="debug" dependency="format" condition=".[/root/session/param[@name='debug']='1']" type="exec" mode="output" processor="XSLT" mandatory="false" mimeType="text/html">
  696. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  697. <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">
  698. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  699. <xsl:template match="/">
  700. <dbg:dumpxml select="/root"/>
  701. </xsl:template>
  702. </xsl:stylesheet>
  703. </xts:block>
  704. </xts:morphlet>