notificationList.xts 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: AGS
  5. (C) Copyright IBM Corp. 2005, 2009
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/portal.xml,messages/AGS.xml,messages/portalRL.xml" requiredCapability="canUseEventStudio">
  9. <!--
  10. ================================================================================
  11. formlogic init
  12. ================================================================================
  13. -->
  14. <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="/logicsheets/formlogic_init.xslt"/>
  15. <!--
  16. ================================================================================
  17. decode
  18. ================================================================================
  19. -->
  20. <xts:block id="decode" processor="XSLT" type="exec" mode="interpret" dependency="formlogic_init">
  21. <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
  22. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  23. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
  24. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  25. <xsl:template match="/">
  26. <xts:sequence>
  27. <xsl:choose>
  28. <xsl:when test="/root/env/param[@name = 'agent_definition_blob']">
  29. <!-- decode the agent items -->
  30. <xts:append select="/root">
  31. <xsl:value-of select="xtsext:web64decode( xtsext:cafaction('sign_unwrap_settemplatename_decodeagentdefinition_settemplateid_presave001', string( /root/env/param[@name = 'agent_definition_blob'])), true() )" disable-output-escaping="yes"/>
  32. </xts:append>
  33. <!-- get rid of the blob for the time being -->
  34. <xts:delete select="/root/env/param[@name = 'agent_definition_blob']"/>
  35. </xsl:when>
  36. </xsl:choose>
  37. </xts:sequence>
  38. </xsl:template>
  39. </xsl:stylesheet>
  40. </xts:block>
  41. <!--
  42. ================================================================================
  43. Process
  44. ================================================================================
  45. -->
  46. <xts:block id="process" processor="XSLT" type="exec" mode="interpret" dependency="decode" nodelist="env,agent_definition">
  47. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:xos="http://developer.cognos.com/schemas/xts/output/" exclude-result-prefixes="xsl pf xtsext xos">
  48. <xsl:template match="/">
  49. <xts:sequence>
  50. <xsl:if test="/root/env/param[@name='removeNList'] = '1'">
  51. <xts:delete select="/root/agent_definition/notificationList/item"/>
  52. <xts:append select="/root/agent_definition">
  53. <removeNotificationList/>
  54. </xts:append>
  55. </xsl:if>
  56. <xsl:if test="/root/env/param[@name='changed_allowNotification']">
  57. <!-- If changed then we check to see if alloNotification is there and we use it to get the value-->
  58. <xts:delete select="/root/agent_definition/allowNotification"/>
  59. <xts:append select="/root/agent_definition">
  60. <allowNotification>
  61. <xsl:choose>
  62. <xsl:when test="/root/env/param[@name='allowNotification'='1']">true</xsl:when>
  63. <xsl:otherwise>false</xsl:otherwise>
  64. </xsl:choose>
  65. </allowNotification>
  66. </xts:append>
  67. </xsl:if>
  68. </xts:sequence>
  69. </xsl:template>
  70. </xsl:stylesheet>
  71. </xts:block>
  72. <!--
  73. ================================================================================
  74. Get the notificationList member names
  75. Creates a batch request to CM to retrieve the defaultName property for the searchpathids in /root/agent_definition/notificationList/item.
  76. Only query those that are to be shown in the pager
  77. ================================================================================
  78. -->
  79. <xts:block id="getlist" processor="XSLT" type="exec" mode="interpret" dependency="process">
  80. <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
  81. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  82. <xts:logicsheet path="logicsheets/portal.xsl"/>
  83. <xsl:stylesheet version="1.0"
  84. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  85. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  86. xmlns:cm="http://developer.cognos.com/schemas/bibus/3/"
  87. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  88. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  89. exclude-result-prefixes="cm">
  90. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  91. <pf:variables/>
  92. <xsl:variable name="userPrefs" select="/root/session/param"/>
  93. <xsl:variable name="userPrefsDefault" select="/root/system/param[@name='defaultPortalPreferences']"/>
  94. <!-- the max items to be shown in the pager -->
  95. <xsl:variable name="maxObjects">
  96. <xsl:choose>
  97. <xsl:when test="string(/root/env/param[@name = 'm_pagerto']) !='' and string(/root/env/param[@name = 'm_pagerfrom']) !=''">
  98. <xsl:value-of select="(/root/env/param[@name = 'm_pagerto'] - root/env/param[@name = 'm_pagerfrom']) + 1"/>
  99. </xsl:when>
  100. <xsl:when test="$userPrefs[@name='linesPerPage']!=''">
  101. <xsl:value-of select="$userPrefs[@name='linesPerPage']"/>
  102. </xsl:when>
  103. <xsl:otherwise>
  104. <xsl:value-of select="$userPrefsDefault/pref[@name='lines']"/>
  105. </xsl:otherwise>
  106. </xsl:choose>
  107. </xsl:variable>
  108. <!--- the number of items to be skipped, e.g. if this value is 5, then we start with the item at position 5 and end with the item at position 5+maxObjects, if zero we pass all items to the pager-->
  109. <xsl:variable name="skipObjects">
  110. <xsl:choose>
  111. <xsl:when test="/root/env/param[@name = 'm_pagerfrom'] and /root/env/param[@name = 'm_pagerfrom']!=''">
  112. <xsl:value-of select="(/root/env/param[@name = 'm_pagerfrom'])-1"/>
  113. </xsl:when>
  114. <xsl:when test="key('env-param','m_section')!=''">
  115. <xsl:choose>
  116. <xsl:when test="key('env-param','m_section')!='-1'">
  117. <xsl:value-of select="((key('env-param','m_section')) -1)"/>
  118. </xsl:when>
  119. <xsl:otherwise>
  120. <xsl:value-of select="count(/root/agent_definition/notificationList/item) - ($maxObjects)"/>
  121. </xsl:otherwise>
  122. </xsl:choose>
  123. </xsl:when>
  124. <xsl:otherwise>0</xsl:otherwise>
  125. </xsl:choose>
  126. </xsl:variable>
  127. <xsl:template match="/">
  128. <xts:sequence>
  129. <xsl:call-template name="createPagerItem">
  130. <xsl:with-param name="max" select="$maxObjects+1"/>
  131. <xsl:with-param name="skip" select="$skipObjects"/>
  132. </xsl:call-template>
  133. </xts:sequence>
  134. </xsl:template>
  135. <xsl:template name="createPagerItem">
  136. <xsl:param name="pos" select="1"/>
  137. <xsl:param name="max" select="1"/>
  138. <xsl:param name="skip" select="0"/>
  139. <xsl:variable name="item">
  140. <xsl:value-of select="/root/agent_definition/notificationList/item[$pos]"/>
  141. </xsl:variable>
  142. <xsl:if test="$max > 0 and $item!=''">
  143. <xsl:if test="$pos &gt; $skip">
  144. <xts:append>
  145. <pagerItem>
  146. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  147. <send:request provider="cm" requester="AGS:notificationList">
  148. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  149. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  150. <cm:requests>
  151. <cm:query>
  152. <cm:search>
  153. <xsl:value-of select="$item"/>
  154. </cm:search>
  155. <cm:properties>
  156. <cm:property name="defaultName"/>
  157. </cm:properties>
  158. </cm:query>
  159. </cm:requests>
  160. </cm:query>
  161. </xts:transform>
  162. </send:request>
  163. </xts:transform>
  164. <position type="cm:nonNegativeIntegerProp"><xsl:value-of select="($pos)-1"/></position>
  165. </pagerItem>
  166. </xts:append>
  167. </xsl:if>
  168. <xsl:variable name="newMax">
  169. <xsl:choose>
  170. <xsl:when test="$pos &gt; $skip"><xsl:value-of select="$max - 1"/></xsl:when>
  171. <xsl:otherwise><xsl:value-of select="$max"/></xsl:otherwise>
  172. </xsl:choose>
  173. </xsl:variable>
  174. <xsl:call-template name="createPagerItem">
  175. <xsl:with-param name="pos" select="$pos+1"/>
  176. <xsl:with-param name="max" select="$newMax"/>
  177. <xsl:with-param name="skip" select="$skip"/>
  178. </xsl:call-template>
  179. </xsl:if>
  180. </xsl:template>
  181. </xsl:stylesheet>
  182. </xts:block>
  183. <!--
  184. ===================================================================================================================================
  185. updatePagedItems - the pager needs the position of each item in order to calculate where it is in the virtual list. Update each one by moving the <position/> element into each queryResult
  186. ===================================================================================================================================
  187. -->
  188. <xts:block id="updatePagedItems" processor="XSLT" type="exec" mode="interpret" dependency="getlist" nodelist="env,pagerItem">
  189. <xsl:stylesheet version="1.0"
  190. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  191. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  192. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  193. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  194. exclude-result-prefixes="xsl xtsext xsi cm">
  195. <xsl:template match="/">
  196. <xts:sequence>
  197. <xsl:for-each select="/root/pagerItem/*[local-name()='queryResponse']/returns/item">
  198. <xsl:variable name="pos"><xsl:value-of select="position()"/></xsl:variable>
  199. <xts:append select="/root/pagerItem/*[local-name()='queryResponse']/returns/item[{position()}]/queryResult/item">
  200. <xsl:copy-of select="../../../position"/>
  201. </xts:append>
  202. <xts:delete select="/root/pagerItem[position()]/position']"/>
  203. </xsl:for-each>
  204. <xts:delete select="/root/env/param[@name='pagerfrom']"/>
  205. <xts:delete select="/root/env/param[@name='pagerto']"/>
  206. <xts:delete select="/root/env/param[@name='pagerfrom_d']"/>
  207. <xts:delete select="/root/env/param[@name='pagerto_d']"/>
  208. </xts:sequence>
  209. </xsl:template>
  210. </xsl:stylesheet>
  211. </xts:block>
  212. <!--================================================================================
  213. encode the agent items again
  214. ================================================================================
  215. -->
  216. <xts:block id="encode_agent_definition" dependency="updatePagedItems" processor="XSLT" type="exec">
  217. <xts:logicsheet path="logicsheets/portal.xsl"/>
  218. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="pf xtsext">
  219. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  220. <pf:serialize-xml/>
  221. <pf:variables/>
  222. <xsl:template match="/">
  223. <xts:sequence>
  224. <xsl:variable name="markup">
  225. <xsl:call-template name="serialize-xml">
  226. <xsl:with-param name="node-set" select="/root/agent_definition"/>
  227. </xsl:call-template>
  228. </xsl:variable>
  229. <xts:append select="/root/env">
  230. <param name="agent_definition_blob">
  231. <xsl:value-of select="xtsext:cafaction( concat('sign_wrap_setpassportid_', $passport, '_settemplatename_encodeagentdefinition_settemplateid_seqagenttasks002'), xtsext:web64encode( string( $markup ), true()))"/>
  232. </param>
  233. </xts:append>
  234. <!-- get rid of the set variables -->
  235. <xts:delete select="/root/env/param[@name='changed_allowNotification']"/>
  236. <xts:delete select="/root/env/param[@name='allowNotification']"/>
  237. <xts:delete select="/root/env/param[@name='removeNList']"/>
  238. </xts:sequence>
  239. </xsl:template>
  240. </xsl:stylesheet>
  241. </xts:block>
  242. <!--
  243. ================================================================================
  244. Format the output
  245. ================================================================================
  246. -->
  247. <xts:block id="format" mode="output" processor="XSLT" type="exec" mimeType="text/html" dependency="encode_agent_definition">
  248. <!-- portal specific information -->
  249. <xts:logicsheet path="logicsheets/portal.xsl"/>
  250. <!-- Dialog specific logicsheets -->
  251. <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
  252. <xts:logicsheet path="logicsheets/presentation/main/framework.xsl"/>
  253. <xts:logicsheet path="logicsheets/presentation/main/presentation.xsl"/>
  254. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  255. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  256. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  257. <!-- Generic logicsheets -->
  258. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  259. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  260. <!-- apply the form logic -->
  261. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  262. <xts:logicsheet path="logicsheets/validation.xslt"/>
  263. <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
  264. <xsl:stylesheet version="1.0"
  265. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  266. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  267. xmlns:mf="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mf"
  268. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  269. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  270. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  271. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  272. xmlns:dc="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/confirm/1/"
  273. xmlns:st="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/specializetabs/"
  274. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  275. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  276. xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
  277. xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  278. xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:rdb="http://developer.cognos.com/schemas/xts/rdb"
  279. exclude-result-prefixes="xsl cm cml df dp pf bus dc utml xts xtsext lyt st cf cp mf">
  280. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  281. <pf:variables/>
  282. <mf:variables stateParams="m_section m_pagerfrom m_pagerto"/>
  283. <xsl:variable name="mname" select="'notificationList.xts'"/>
  284. <xsl:variable name="cm-class">account</xsl:variable>
  285. <xsl:template match="/root">
  286. <xsl:variable name="browserTitle">
  287. <xts:string id="DIALOG_NOTIFICATION_TITLE"/>
  288. </xsl:variable>
  289. <dp:page longTitle="$browserTitle">
  290. <link href="{$skin_root}/ags/ags.css" type="text/css" rel="stylesheet"/>
  291. <dp:meta/>
  292. <dp:script>
  293. <pf:help context="ug_cr_as_ag_mng_ntf_lst" eventStudio="true"/>
  294. </dp:script>
  295. <utml:form name="pform" method="post" action="{$gateway}">
  296. <utml:input type="hidden" name="s_nl_pager" id="s_nl_pager"/>
  297. <utml:input type="hidden" name="removeNList" id="removeNList" value="0"/>
  298. <utml:input type="hidden" name="agentItemOp" id="agentItemOp" size="30" value="none"/>
  299. <utml:input type="hidden" name="hid" id="hid" utml:update="false" value="ug_cr_as_ag_mng_ntf_lst"/>
  300. <dp:header help="true">
  301. <dp:title>
  302. <xts:string id="DIALOG_NOTIFICATION_TITLE"/>
  303. </dp:title>
  304. <dp:description>
  305. <xts:string id="DIALOG_NOTIFICATION_DESC"/>
  306. </dp:description>
  307. <dp:close>
  308. <a href="#" onclick="doCancel();">
  309. <dp:closeMarker/>
  310. </a>
  311. </dp:close>
  312. </dp:header>
  313. <!-- ================================================================ -->
  314. <!-- B O D Y -->
  315. <!-- ================================================================ -->
  316. <!-- do the body -->
  317. <body class="reportBody">
  318. <lyt:layout style="1">
  319. <lyt:section valign="top">
  320. <dp:choice title="DIALOG_NOTIFICATION_SUBSCRIPTION" noSpace="true">
  321. <dp:section1 type="hint">
  322. <xts:string id="DIALOG_NOTIFICATION_SUBSCRIPTION_DESC"/>
  323. </dp:section1>
  324. </dp:choice>
  325. <!--Select this option to allow users to add their email address to the alert list for this agent.-->
  326. <dp:choice>
  327. <dp:section1>
  328. <utml:input type="checkbox" name="allowNotification" id="allowNotification" onclick="allowNotificationClicked();" utml:track="true" utml:default-condition="/root/agent_definition/allowNotification = 'true'"/>
  329. </dp:section1>
  330. <dp:section2>
  331. <xts:string id="DIALOG_NOTIFICATION_ALLOW_SUBSCRIBE"/>
  332. </dp:section2>
  333. </dp:choice>
  334. <table border="0" cellspacing="0" cellpadding="0" width="100%" name="slist">
  335. <tr>
  336. <td>
  337. <cf:main-pager-section width="100%" virtualPage="true" form="pform">
  338. <cf:param name="target">concat('/ags/',$mname)</cf:param>
  339. <cf:param name="item-path">/root/pagerItem//queryResult/item</cf:param>
  340. <cf:param name="lines-per-page">
  341. <xsl:value-of select="key('session-param', 'linesPerPage')"/>
  342. </cf:param>
  343. <cf:param name="label"><xts:string id="DIALOG_NOTIFICATION_LIST_LABEL"/></cf:param>
  344. <cf:param name="rows">
  345. <cp:tableHeader session-name="s_nl_pager" sort_track_type="page">
  346. <cp:columnHeader width="20"/>
  347. <cp:columnHeader width="16">
  348. <img align="absmiddle" hspace="4" src="{$skin_images}path.gif"/>
  349. </cp:columnHeader>
  350. <cp:columnHeader width="100%">
  351. <xts:string id="IDS_PERS_TAB_PERSONAL_NAME_HEADER"/>
  352. </cp:columnHeader>
  353. </cp:tableHeader>
  354. <cp:tableContent>
  355. <cp:columnContent>
  356. <xsl:call-template name="gen-icon">
  357. <xsl:with-param name="class">account</xsl:with-param>
  358. </xsl:call-template>
  359. </cp:columnContent>
  360. <cp:columnContent>
  361. <img border="0" align="absmiddle" hspace="4" src="{$skin_images}path.gif"/>
  362. </cp:columnContent>
  363. <cp:columnContent>
  364. <xsl:value-of select="defaultName"/>
  365. </cp:columnContent>
  366. </cp:tableContent>
  367. </cf:param>
  368. </cf:main-pager-section>
  369. </td>
  370. </tr>
  371. <tr>
  372. <td width="100%" align="right" class="formLink" nowrap="nowrap" valign="bottom">
  373. <a href="#" onclick="javascript:resetNList()">
  374. <xts:string id="DIALOG_NOTIFICATION_RESET"/>
  375. </a>
  376. </td>
  377. </tr>
  378. </table>
  379. </lyt:section>
  380. </lyt:layout>
  381. </body>
  382. <dp:footer>
  383. <df:button df:id="IDS_OK" onclick="doOK();" df:style="href" df:href="#"/>
  384. <df:button df:id="IDS_CANCEL" df:style="href" df:href="#" onclick="doCancel();"/>
  385. </dp:footer>
  386. </utml:form>
  387. <dp:script>
  388. <script type="text/javascript" src="../ags/help.js"/>
  389. <script type="text/javascript">
  390. var cf = parent.cf;
  391. function init() {
  392. cf.showDialogFrame("100%");
  393. }
  394. function resetNList()
  395. {
  396. document.pform.removeNList.value="1";
  397. doSubmit('','/ags/notificationList.xts');
  398. }
  399. function allowNotificationClicked()
  400. {
  401. doSubmit('','/ags/notificationList.xts');
  402. }
  403. // function which is called when we ok
  404. function doOK()
  405. {
  406. var msgFrame = cf.getMessageIFrame();
  407. if (msgFrame != null) {
  408. var elmnt = msgFrame.document.getElementById("agent_definition_blob");
  409. if (elmnt == null) {
  410. elmnt = cf.createHiddenInput(msgFrame.document, "agent_definition_blob", "");
  411. msgFrame.pform.appendChild(elmnt);
  412. }
  413. // SEC_INFO: agent_definition_blob is already encoded
  414. elmnt.value = '<xsl:value-of select="/root/env/param[@name='agent_definition_blob']"/>';
  415. }
  416. cf.agentHasChanged(true);
  417. cf.hideDialogFrame();
  418. }
  419. function doSubmit(code,path)
  420. {
  421. document.pform.agentItemOp.value = 'notificationList';
  422. document.pform.ps_nav_op.value = code;
  423. document.pform.m.value=path;
  424. document.pform.submit();
  425. }
  426. function doCancel() {
  427. cf.hideDialogFrame();
  428. }
  429. </script>
  430. </dp:script>
  431. </dp:page>
  432. </xsl:template>
  433. <pf:gen-icon/>
  434. </xsl:stylesheet>
  435. </xts:block>
  436. <!--
  437. ===============================================================================================
  438. debug - display debug information
  439. ===============================================================================================
  440. -->
  441. <xts:block id="debug" dependency="format" condition=".[/root/session/param[@name='debug']='1']" type="exec" mode="output" processor="XSLT" mandatory="false" mimeType="text/html">
  442. <!-- get the debug logic sheet -->
  443. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  444. <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">
  445. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  446. <xsl:template match="/">
  447. <dbg:dumpxml select="/root"/>
  448. </xsl:template>
  449. </xsl:stylesheet>
  450. </xts:block>
  451. </xts:morphlet>