new_packageconfiguration.xts 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  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. 2005, 2011
  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:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" messageBase="messages/portal.xml, messages/portalRL.xml">
  13. <!--
  14. ===============================================================================================
  15. formlogic_init - standard form logic initialization
  16. ===============================================================================================
  17. -->
  18. <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="/logicsheets/formlogic_init.xslt" nodelist="env,credential,system,http"/>
  19. <!--
  20. ===============================================================================================
  21. Query for the default destination container
  22. ===============================================================================================
  23. -->
  24. <xts:block id="getContent" processor="XSLT" type="exec" dependency="formlogic_init">
  25. <xts:logicsheet path="logicsheets/portal.xsl"/>
  26. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  27. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  28. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  29. xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
  30. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  31. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
  32. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  33. <xsl:key name="env-param" match="/root/env/param" use="@name"/>
  34. <xsl:template match="/">
  35. <xts:sequence>
  36. <xts:append>
  37. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  38. <send:request provider="cm">
  39. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  40. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  41. <cm:search>
  42. <xsl:value-of select="key('env-param','m_obj')"/>
  43. </cm:search>
  44. <cm:properties>
  45. <cm:property name="defaultName"/>
  46. <cm:property name="defaultScreenTip"/>
  47. <cm:property name="defaultDescription"/>
  48. <cm:property name="searchPath"/>
  49. <cm:property name="ancestors"/>
  50. <cm:property name="permissions"/>
  51. <cm:property name="memberDisplayCountDefault"/>
  52. <cm:property name="memberDisplayCountLimit"/>
  53. <cm:property name="defaultAnalysis"/>
  54. </cm:properties>
  55. </cm:query>
  56. </xts:transform>
  57. </send:request>
  58. </xts:transform>
  59. </xts:append>
  60. <xsl:if test="string(key('env-param','so.searchPath'))!=''">
  61. <xts:append>
  62. <selectedAnalysis>
  63. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  64. <send:request provider="cm">
  65. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  66. <cm:query>
  67. <cm:search><xsl:value-of select="key('env-param','so.searchPath')"/></cm:search>
  68. <cm:properties>
  69. <cm:property name="defaultName"/>
  70. <cm:property name="searchPath"/>
  71. <cm:property name="ancestors"/>
  72. </cm:properties>
  73. </cm:query>
  74. </xts:transform>
  75. </send:request>
  76. </xts:transform>
  77. </selectedAnalysis>
  78. </xts:append>
  79. </xsl:if>
  80. </xts:sequence>
  81. </xsl:template>
  82. </xsl:stylesheet>
  83. </xts:block>
  84. <xts:block id="buildPkgCfgSettings" type="exec" mode="interpret" processor="XSLT" dependency="formlogic_init getContent" path="/portal/packageConfiguration/settings.xml"/>
  85. <!--
  86. ===============================================================================================
  87. renderPage - render the page
  88. ===============================================================================================
  89. -->
  90. <xts:block id="render_page" mode="output" processor="XSLT" type="exec" mimeType="text/html" dependency="formlogic_init getContent buildPkgCfgSettings">
  91. <!-- get the presentation theme -->
  92. <xts:logicsheet path="logicsheets/portal.xsl"/>
  93. <xts:logicsheet path="portal/packageConfiguration/packageConfiguration.xslt"/>
  94. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  95. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  96. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  97. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  98. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  99. <!-- apply the form logic -->
  100. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  101. <xts:logicsheet path="logicsheets/validation.xslt"/> <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
  102. <xsl:stylesheet version="1.0"
  103. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  104. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  105. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  106. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  107. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  108. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  109. xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
  110. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  111. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  112. xmlns:pkgcfg="http://developer.cognos.com/schemas/xts/pkgcfg"
  113. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  114. exclude-result-prefixes="xsl cm pf df dp lyt utml cf cp xtsext">
  115. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  116. <!-- current file name -->
  117. <xsl:variable name="mname" select="'new_packageconfiguration.xts'"/>
  118. <!-- add any theme variables -->
  119. <pf:variables/>
  120. <!-- start the output -->
  121. <xsl:template match="/root">
  122. <xsl:variable name="wizardTitle">
  123. <xts:string id="IDS_NEW_PACKAGECONFIGURATION_TITLE"/>
  124. </xsl:variable>
  125. <xsl:variable name="browserTitle">
  126. <xsl:text/>
  127. <xts:string id="IDS_NEW_SETTINGS_TITLE">
  128. <xts:param name="wizardTitle">
  129. <xsl:value-of select="$wizardTitle"/>
  130. </xts:param>
  131. </xts:string>
  132. <xsl:text/>
  133. </xsl:variable>
  134. <xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html></xsl:text><dp:page longTitle="$browserTitle">
  135. <dp:meta>
  136. <!-- Standard meta tags -->
  137. <pf:meta/>
  138. </dp:meta>
  139. <dp:script>
  140. <script language="javascript">
  141. <pkgcfg:scripts/>
  142. function validate()
  143. {
  144. document.pform.ifrmcmd.value = "create";
  145. return validatePkgCfg();
  146. }
  147. </script>
  148. <script language="javascript" src="{$webcontent}/{$app}/js/utilities.js"/>
  149. <!-- Help system -->
  150. <pf:help context="HID_NEW_PACKAGE_CONFIG"/>
  151. <script language="javascript" src="{$webcontent}/{$app}/js/list.js"></script>
  152. </dp:script>
  153. <utml:form name="pform" method="post" action="{$gateway}">
  154. <utml:exclusion-list><xsl:value-of select="' memberDisplayCountDefault memberDisplayCountLimit'"/></utml:exclusion-list>
  155. <utml:input type="hidden" name="ifrmcmd" value="" utml:update="false"/>
  156. <utml:input type="hidden" name="m_ppc_defaultAnalysis">
  157. <xsl:choose>
  158. <xsl:when test="key('env-param','so.searchPath')">
  159. <xsl:attribute name="value"><xsl:value-of select="key('env-param','so.searchPath')"/></xsl:attribute>
  160. </xsl:when>
  161. </xsl:choose>
  162. </utml:input>
  163. <utml:input type="hidden" name="m_ppc_defaultName">
  164. <xsl:attribute name="value">
  165. <xts:string id="IDS_ACT_PACKAGECONFIGURATION_OF"><xts:param name="curName"><xsl:value-of select="/root/cm:queryResponse/*/cm:defaultName"/></xts:param></xts:string>
  166. </xsl:attribute>
  167. </utml:input>
  168. <utml:input type="hidden" name="m_ppc_defaultScreenTip">
  169. <xsl:attribute name="value"><xsl:value-of select="/root/cm:queryResponse/*/cm:defaultScreenTip"/></xsl:attribute>
  170. </utml:input>
  171. <utml:input type="hidden" name="m_ppc_defaultDescription">
  172. <xsl:attribute name="value"><xsl:value-of select="/root/cm:queryResponse/*/cm:defaultDescription"/></xsl:attribute>
  173. </utml:input>
  174. <utml:input type="hidden" name="so.select" value="analysis" utml:update="false"/>
  175. <utml:input type="hidden" name="so.return.m" utml:update="false">
  176. <xsl:attribute name="value"><xsl:value-of select="concat($app,'/',$mname)"/></xsl:attribute>
  177. </utml:input>
  178. <utml:input type="hidden" name="so.defaultObject" utml:update="false">
  179. <xsl:attribute name="value">
  180. <xsl:if test="key('env-param','so.searchPath')"><xsl:value-of select="key('env-param','so.searchPath')"/></xsl:if>
  181. </xsl:attribute>
  182. </utml:input>
  183. <utml:input type="hidden" name="so.defaultLocation" utml:update="false">
  184. <xsl:attribute name="value">
  185. <xsl:if test="not(key('env-param','so.searchPath'))"><xsl:value-of select="key('env-param','m_obj')"/></xsl:if>
  186. </xsl:attribute>
  187. </utml:input>
  188. <utml:input type="hidden" name="m_return" utml:update="false">
  189. <utml:value>
  190. <xsl:if test="key('env-param', 'm_return')">
  191. <xsl:value-of select="key('env-param', 'm_return')"/>
  192. </xsl:if>
  193. </utml:value>
  194. </utml:input>
  195. <!-- ================================================================ -->
  196. <!-- H E A D E R -->
  197. <!-- ================================================================ -->
  198. <dp:header>
  199. <dp:title>
  200. <xsl:value-of select="$browserTitle"/>
  201. </dp:title>
  202. <dp:description>
  203. <xts:string id="IDS_PACKAGECONFIGURATION_INTRO"/>
  204. </dp:description>
  205. </dp:header>
  206. <!-- ================================================================ -->
  207. <!-- B O D Y -->
  208. <!-- ================================================================ -->
  209. <lyt:layout style="1">
  210. <lyt:section>
  211. <pkgcfg:defaultAnalysis/>
  212. </lyt:section>
  213. </lyt:layout>
  214. <lyt:layout style="1">
  215. <lyt:section>
  216. </lyt:section>
  217. </lyt:layout>
  218. <lyt:layout style="1">
  219. <lyt:section>
  220. <pkgcfg:settingsList/>
  221. <pkgcfg:settingsInput/>
  222. </lyt:section>
  223. </lyt:layout>
  224. <!-- ================================================================ -->
  225. <!-- F O O T E R -->
  226. <!-- ================================================================ -->
  227. <dp:footer>
  228. <df:button df:id="IDS_CANCEL" df:style="stack-down"/>
  229. <df:button df:id="IDS_BACK"/>
  230. <df:button df:id="IDS_NEXT"/>
  231. <df:button df:id="IDS_FINISH" utml:validate="true" df:style="submit" df:nav_op="stack_down"/>
  232. </dp:footer>
  233. </utml:form>
  234. </dp:page>
  235. </xsl:template>
  236. </xsl:stylesheet>
  237. </xts:block>
  238. <!--
  239. ===============================================================================================
  240. debug - display debug information
  241. ===============================================================================================
  242. -->
  243. <xts:block id="debug" dependency="render_page" condition=".[/root/session/param[@name='debug']='1']" type="exec" mode="output" processor="XSLT" mandatory="false" mimeType="text/html">
  244. <!-- get the debug logic sheet -->
  245. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  246. <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">
  247. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  248. <xsl:template match="/">
  249. <dbg:dumpxml select="/root"/>
  250. </xsl:template>
  251. </xsl:stylesheet>
  252. </xts:block>
  253. </xts:morphlet>