report_options_popup.xts 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454
  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, 2014
  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/portalRL.xml,messages/AGS.xml" resolverBase="prompting" includeConfig="true" requiredCapability="canUseEventStudio">
  9. <!--
  10. ================================================================================
  11. decode the agent items (which contain the agentOptions)
  12. ===============================================================================================
  13. -->
  14. <xts:block id="decodeAgentDefinition" processor="XSLT" type="exec" condition=".[/root/env/param[@name = 'agent_definition_blob']]" mandatory="false">
  15. <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
  16. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  17. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="xsl xtsext xts">
  18. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  19. <xsl:template match="/">
  20. <xts:sequence>
  21. <xsl:if test="/root/env/param[@name = 'agent_definition_blob']">
  22. <xts:append select="/root">
  23. <xsl:value-of select="xtsext:web64decode( xtsext:cafaction('sign_unwrap_settemplatename_decodeagentdefinition_settemplateid_addreport001', string( /root/env/param[@name = 'agent_definition_blob'])), true() )" disable-output-escaping="yes"/>
  24. </xts:append>
  25. </xsl:if>
  26. </xts:sequence>
  27. </xsl:template>
  28. </xsl:stylesheet>
  29. </xts:block>
  30. <!--
  31. ===============================================================================================
  32. formlogic_init - standard form logic initialization
  33. ===============================================================================================
  34. -->
  35. <xts:block id="formlogic_init" type="exec" dependency="decodeAgentDefinition" mode="interpret" processor="XSLT" path="/logicsheets/formlogic_init.xslt"/>
  36. ===============================================================================================
  37. Main content request
  38. ===============================================================================================
  39. -->
  40. <xts:block id="getContent" processor="XSLT" type="exec" dependency="formlogic_init">
  41. <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
  42. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  43. <xts:logicsheet path="portal/runWithOptions/logicsheets/request.xslt"/>
  44. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  45. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/" xmlns:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:rdr="http://developer.cognos.com/schemas/xts/rdr/" exclude-result-prefixes="xsl cml dt cm rdr">
  46. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  47. <cml:variables/>
  48. <cml:object-predicates/>
  49. <xsl:template match="/">
  50. <xts:sequence>
  51. <!-- page definition -->
  52. <rdr:Requests>
  53. <rdr:Request type="pageDefinition"/>
  54. <!-- Use long hand query instead of the rdr:request way. This is because we do not want
  55. the executionPrompt property included. See bug 490342.0 for more information -->
  56. <!-- Report/Query/Job/ information -->
  57. <cm:query>
  58. <cm:search>
  59. <xsl:choose>
  60. <xsl:when test="/root/env/param[@name='selected_path']">
  61. <xsl:value-of select="/root/env/param[@name='selected_path']"/>
  62. </xsl:when>
  63. <xsl:otherwise>
  64. <xsl:value-of select="/root/env/param[@name='m_ro_selected_path']"/>
  65. </xsl:otherwise>
  66. </xsl:choose>
  67. </cm:search>
  68. <cm:properties>
  69. <cm:property name="defaultName"/>
  70. <cm:property name="searchPath"/>
  71. <cm:property name="permissions"/>
  72. <cm:property name="ancestors"/>
  73. <cm:property name="base"/>
  74. <cm:property name="canBurst"/>
  75. <cm:property name="parent"/>
  76. <cm:property name="parameters"/>
  77. <cm:property name="executionFormat"/>
  78. <cm:property name="executionLocale"/>
  79. <cm:property name="executionPageOrientation"/>
  80. <cm:property name="executionPageDefinition"/>
  81. <cm:property name="runAsOwner"/>
  82. <cm:property name="triggerName"/>
  83. <cm:property name="defaultTriggerDescription"/>
  84. </cm:properties>
  85. <cm:options>
  86. <cm:refProps>
  87. <cm:refProp refPropName="base">
  88. <cm:properties>
  89. <cm:property name="defaultName"/>
  90. <cm:property name="searchPath"/>
  91. <cm:property name="permissions"/>
  92. <cm:property name="canBurst"/>
  93. <cm:property name="triggerName"/>
  94. <cm:property name="defaultTriggerDescription"/>
  95. </cm:properties>
  96. </cm:refProp>
  97. <cm:refProp refPropName="parent">
  98. <cm:properties>
  99. <cm:property name="searchPath"/>
  100. <cm:property name="permissions"/>
  101. </cm:properties>
  102. </cm:refProp>
  103. </cm:refProps>
  104. </cm:options>
  105. </cm:query>
  106. <rdr:Request type="credential"/>
  107. <rdr:Request type="burstCapability"/>
  108. <rdr:Request type="accountOptions" mode="report"/>
  109. </rdr:Requests>
  110. </xts:sequence>
  111. </xsl:template>
  112. </xsl:stylesheet>
  113. </xts:block>
  114. <!--
  115. ===============================================================================================
  116. createDeliveryOptionsQueries - generate queries for any delivery options that may have been defined. Queries generated
  117. will:
  118. 1. get the defaultName and userName for any selected recipient(s)
  119. 2. get the printer defaultName and printerAddress when print is set to true
  120. 3. get the report defaultName and ancestors when saving a report view
  121. ===============================================================================================
  122. -->
  123. <xts:block id="createDeliveryOptionsQueries" processor="XSLT" type="exec" dependency="getContent" condition=".[/root/agent_definition/agentOptions]" mandatory="false">
  124. <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
  125. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  126. <xts:logicsheet path="portal/runWithOptions/logicsheets/request.xslt"/>
  127. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  128. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/" xmlns:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:rdr="http://developer.cognos.com/schemas/xts/rdr/" exclude-result-prefixes="xsl cml dt cm rdr">
  129. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  130. <cml:variables/>
  131. <xsl:template match="/">
  132. <xts:sequence>
  133. <!-- get the delivery option CM queries-->
  134. <xts:append>
  135. <deliveryOptionsQueries>
  136. <xts:transform src="transforms/portal/options/generateCMQueriesForDeliveryInfo.xslt" processor="XSLT">
  137. <root>
  138. <!-- only query CM for delivery options when UIHelpers is empty-->
  139. <checkUIHelpers>false</checkUIHelpers>
  140. <queryReply><xsl:copy-of select="/root/agent_definition/*[local-name()='agentOptions']"/></queryReply>
  141. <xsl:copy-of select="/root/agent_definition/*[local-name()='agentOptions']/*[local-name()='UIHelpers']"/>
  142. </root>
  143. </xts:transform>
  144. </deliveryOptionsQueries>
  145. </xts:append>
  146. </xts:sequence>
  147. </xsl:template>
  148. </xsl:stylesheet>
  149. </xts:block>
  150. <!--
  151. ===============================================================================================
  152. processDeliveryOptionsQueries:
  153. Query CM for the necessary information to build the delivery options summaries
  154. ===============================================================================================
  155. -->
  156. <xts:block id="processDeliveryOptionsQueries" dependency="createDeliveryOptionsQueries" type="exec" mode="interpret" processor="XSLT" condition=".[/root/deliveryOptionsQueries/*[local-name()='query']]" mandatory="false" nodelist="header,env,http,cookies,deliveryOptionsQueries">
  157. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  158. <xsl:stylesheet version="1.0"
  159. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  160. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  161. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  162. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
  163. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  164. <xsl:template match="/">
  165. <xts:sequence>
  166. <xts:append>
  167. <deliveryOptionsInfo>
  168. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  169. <send:request provider="cm" requester="AGS:report_options_popup">
  170. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  171. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  172. <cm:requests>
  173. <xsl:copy-of select="/root/deliveryOptionsQueries/*[local-name()='query']"/>
  174. </cm:requests>
  175. </cm:query>
  176. </xts:transform>
  177. </send:request>
  178. </xts:transform>
  179. </deliveryOptionsInfo>
  180. </xts:append>
  181. </xts:sequence>
  182. </xsl:template>
  183. </xsl:stylesheet>
  184. </xts:block>
  185. <!--
  186. ===========================================================================================================
  187. createROParamsForAgentDefaults
  188. create the m_ro_* parameters for the agent defaults. Only create these when the agent defaults have been overridden and the report
  189. options have not
  190. ===========================================================================================================
  191. -->
  192. <xts:block id="createROParams" dependency="processDeliveryOptionsQueries" processor="XSLT" type="exec" condition=".[not(/root/env/param[@name='override_default_run_options']='true') and /root/agent_definition/agentOptions/form-vars/param[@name='override_default_options']='true']" mandatory="false">
  193. <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
  194. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  195. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  196. <xts:logicsheet path="logicsheets/portal.xsl"/>
  197. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:x="x" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" 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:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="xts xtsext xsl x cm dt pf cf cp">
  198. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  199. <pf:variables/>
  200. <xsl:variable name="reportIsBurstable" select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply'][2]/*[local-name()='report']/*[local-name()='canBurst']='true'"/>
  201. <xsl:variable name="burstOptionSet" select="/root/agent_definition/agentOptions/*[local-name()='options']/*[local-name()='value']/*[local-name()='item'][name='burst']/*[local-name()='value']='true'"/>
  202. <xsl:template match="/">
  203. <xts:sequence>
  204. <!-- when the agent defaults have been overridden and the report options have not then
  205. the m_ro_* options must be created. This ensures the UI summary string is rendered properly-->
  206. <xts:append select="/root/env">
  207. <xts:transform src="transforms/portal/options/generateParams.xslt" processor="XSLT">
  208. <xsl:element name="root">
  209. <!-- copy the run options that we have -->
  210. <xsl:copy-of select="/root/agent_definition/agentOptions/options"/>
  211. </xsl:element>
  212. </xts:transform>
  213. </xts:append>
  214. <!-- generate the summary strings for the email options-->
  215. <xsl:choose>
  216. <!-- the UI helper params are present so use them -->
  217. <xsl:when test="/root/agent_definition/agentOptions/*[local-name()='UIHelpers']">
  218. <xts:append select="/root/env">
  219. <param name="emailSummary"><xsl:value-of select="/root/agent_definition/agentOptions/*[local-name()='UIHelpers']/*[local-name()='emailSummary']"/></param>
  220. <param name="emailRecipientsCount"><xsl:value-of select="/root/agent_definition/agentOptions/*[local-name()='UIHelpers']/*[local-name()='emailRecipientsCount']"/></param>
  221. <param name="emailDescription"><xsl:value-of select="/root/agent_definition/agentOptions/*[local-name()='UIHelpers']/*[local-name()='emailRecipients']"/></param>
  222. <param name="printerSummary"><xsl:value-of select="/root/agent_definition/agentOptions/*[local-name()='UIHelpers']/*[local-name()='printerSummary']"/></param>
  223. <param name="hasRecipients"><xsl:value-of select="/root/agent_definition/agentOptions/*[local-name()='UIHelpers']/*[local-name()='hasRecipients']"/></param>
  224. </xts:append>
  225. </xsl:when>
  226. <!-- let's now generate the UI helper params-->
  227. <xsl:otherwise>
  228. <xsl:call-template name="dt:generateUIHelpersFromOptions">
  229. <xsl:with-param name="queryReplyPath" select="/root/agent_definition/*[local-name()='agentOptions']"/>
  230. <xsl:with-param name="deliveryInfo" select="/root/deliveryOptionsInfo/*[local-name()='queryResponse']"/>
  231. <xsl:with-param name="appendPath" select="'/root/env'"/>
  232. <xsl:with-param name="currentReply" select="'1'"/>
  233. <xsl:with-param name="genParams" select="true()"/>
  234. </xsl:call-template>
  235. </xsl:otherwise>
  236. </xsl:choose>
  237. </xts:sequence>
  238. </xsl:template>
  239. <dt:generateUIHelpersFromOptions/>
  240. </xsl:stylesheet>
  241. </xts:block>
  242. <!--
  243. ===============================================================================================
  244. createDeliveryOptionsBlob - the email options page expects a deliveryOptionsBlob so make sure we build it here
  245. ===============================================================================================
  246. -->
  247. <xts:block id="createDeliveryOptionsBlob" processor="XSLT" type="exec" dependency="createROParams" condition=".[(not(/root/env/param[@name='controller_state']) or /root/env/param[@name='controller_state']='') and not(/root/env/param[@name='deliveryOptions'])]" mandatory="false">
  248. <xts:logicsheet path="logicsheets/portal.xsl"/>
  249. <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
  250. <xsl:stylesheet version="1.0"
  251. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  252. xmlns:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/"
  253. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  254. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  255. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" exclude-result-prefixes="xsl dt pf xtsext cm">
  256. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  257. <pf:variables/>
  258. <pf:serialize-xml/>
  259. <xsl:template match="/">
  260. <xts:sequence>
  261. <xsl:if test="/root/agent_definition/agentOptions/*[local-name()='options']">
  262. <xts:append>
  263. <extractedOptions>
  264. <xts:transform src="transforms/portal/options/extractEmailOptions.xslt" processor="XSLT">
  265. <xsl:copy-of select="/root/agent_definition/agentOptions/*[local-name()='options']"/>
  266. </xts:transform>
  267. </extractedOptions>
  268. </xts:append>
  269. </xsl:if>
  270. <!-- create the /root/env/param[@name="deliveryOptions"] blob to be used by email options dialog-->
  271. <xts:append select="/root/env">
  272. <xts:transform src="portal/controls/create_web64_param.xslt" processor="XSLT">
  273. <param name="deliveryOptions">
  274. <passport><xsl:value-of select="$passport"/></passport>
  275. <markup>
  276. <xts:transform name="XMLEncode">
  277. <xts:transform src="transforms/portal/options/buildOptions.xslt" processor="XSLT">
  278. <root>
  279. <xts:queryNode select="/root/extractedOptions/emailOptions/*"/>
  280. </root>
  281. </xts:transform>
  282. </xts:transform>
  283. </markup>
  284. </param>
  285. </xts:transform>
  286. </xts:append>
  287. </xts:sequence>
  288. </xsl:template>
  289. </xsl:stylesheet>
  290. </xts:block>
  291. <!--
  292. ===============================================================================================
  293. HTML output
  294. ===============================================================================================
  295. -->
  296. <xts:block id="format" mode="output" processor="XSLT" type="exec" dependency="createDeliveryOptionsBlob" mimeType="text/html">
  297. <xts:logicsheet path="logicsheets/portal.xsl"/>
  298. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  299. <xts:logicsheet path="ags/logicsheets/dialogs.xsl"/>
  300. <xts:logicsheet path="logicsheets/presentation/dialog/ui-templates.xsl"/>
  301. <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
  302. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  303. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  304. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  305. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  306. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  307. <xts:logicsheet path="logicsheets/presentation/dialog/confirm.xslt"/>
  308. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  309. <xts:logicsheet path="logicsheets/validation.xslt"/>
  310. <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
  311. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  312. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  313. <xsl:stylesheet version="1.0"
  314. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  315. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  316. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  317. xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
  318. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  319. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  320. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  321. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  322. xmlns:ut="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/ui-templates/"
  323. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  324. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  325. xmlns:dc="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/confirm/1/"
  326. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  327. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  328. xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
  329. xmlns:thm="http://developer.cognos.com/schemas/xts/logicsheets/xslt/theme/"
  330. xmlns:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/"
  331. xmlns:agsdlg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/ags/dialog/"
  332. exclude-result-prefixes="xsl cf cp df dp dc lyt cm cml thm utml xtsext ut dt agsdlg">
  333. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  334. <!-- Global template variables -->
  335. <pf:variables/>
  336. <dp:variables/>
  337. <xsl:variable name="mname" select="'report_options_popup.xts'"/>
  338. <xsl:variable name="allowPDF"><xsl:if test="not(/root/session/param[@name='capabilities']/canGeneratePDFOutput)">false</xsl:if></xsl:variable>
  339. <xsl:variable name="allowXML"><xsl:if test="not(/root/session/param[@name='capabilities']/canGenerateXMLOutput)">false</xsl:if></xsl:variable>
  340. <xsl:variable name="allowCSV"><xsl:if test="not(/root/session/param[@name='capabilities']/canGenerateCSVOutput)">false</xsl:if></xsl:variable>
  341. <xsl:variable name="allowXLS"><xsl:if test="not(/root/session/param[@name='capabilities']/canGenerateXLSOutput)">false</xsl:if></xsl:variable>
  342. <xsl:variable name="restrictedUser" select="$allowPDF='false' or $allowXML='false' or $allowCSV='false' or $allowXLS='false'"/>
  343. <!-- start the output -->
  344. <xsl:template match="/root">
  345. <xsl:variable name="browserTitle">
  346. <xts:string id="DIALOG_SELECT_REPORT_OPTIONS_TITLE">
  347. <xts:param name="objectName">
  348. <xsl:value-of select="key('env-param', 'taskName')"/>
  349. </xts:param>
  350. </xts:string>
  351. </xsl:variable>
  352. <xsl:text disable-output-escaping="yes">&lt;!DOCTYPE html&gt;</xsl:text>
  353. <dp:page longTitle="$browserTitle">
  354. <dp:meta>
  355. <pf:meta/>
  356. <!-- Standard meta tags -->
  357. </dp:meta>
  358. <!-- get the JavaScript needed for the prompt controls -->
  359. <dp:script>
  360. <pf:help context="ug_cr_as_ag_wrk_chng_rprt_optns" eventStudio="true"/>
  361. <script language="javascript">
  362. function onOverrideClicked()
  363. {
  364. toggledynamicDiv('disabledFooter');toggledynamicDiv('enabledFooter');
  365. document.pform.ps_nav_op.value = 'maintain';
  366. document.pform.m.value = '/ags/report_run_options.xts';
  367. document.pform.submit();
  368. }
  369. function init() {
  370. <xsl:if test="$restrictedUser">
  371. onOverrideClicked();
  372. </xsl:if>
  373. showDynamicDiv('defaultOptions');
  374. }
  375. </script>
  376. </dp:script>
  377. <utml:form name="pform" method="post" action="{$gateway}">
  378. <utml:read-only>false</utml:read-only>
  379. <utml:input type="hidden" name="hid" id="hid" utml:update="false" value="ug_cr_as_ag_wrk_chng_rprt_optns"/>
  380. <!-- header -->
  381. <dp:header>
  382. <dp:title>
  383. <xsl:value-of select="$browserTitle"/>
  384. </dp:title>
  385. <dp:description>
  386. <xts:string id="DIALOG_SELECT_REPORT_AGENT_INTRO"/>
  387. </dp:description>
  388. </dp:header>
  389. <!-- body -->
  390. <lyt:layout style="2">
  391. <lyt:section width="40%">
  392. <dp:choice width="100%">
  393. <dp:section1>
  394. <utml:input type="checkbox" name="override_default_run_options" id="override_default_run_options" value="true" utml:track="true" utml:default-condition="key('env-param', 'override_default_run_options')='true'" onclick="onOverrideClicked();"/>
  395. </dp:section1>
  396. <dp:section2>
  397. <xts:string id="IDS_STEP_RUN_OVERRIDE_DEFAULT_OPTIONS"/>
  398. </dp:section2>
  399. <dp:section3 width="100%">
  400. <agsdlg:defaultReportOptionsDiv/>
  401. </dp:section3>
  402. </dp:choice>
  403. </lyt:section>
  404. </lyt:layout>
  405. <!-- footer(s) -->
  406. <cf:dynamicDiv name="enabledFooter" visible="true" initialize="false">
  407. <dp:footer>
  408. <df:button df:id="IDS_OK" utml:validate="true" df:style="stack-down"/>
  409. <df:button df:id="IDS_CANCEL" df:style="stack-down"/>
  410. </dp:footer>
  411. </cf:dynamicDiv>
  412. <cf:dynamicDiv name="disabledFooter" visible="false" initialize="false">
  413. <dp:footer>
  414. <dp:button state="inactive">
  415. <dp:buttonText><xts:string id="IDS_OK"/></dp:buttonText>
  416. </dp:button>
  417. <df:button df:id="IDS_CANCEL" df:style="stack-down"/>
  418. </dp:footer>
  419. </cf:dynamicDiv>
  420. </utml:form>
  421. </dp:page>
  422. </xsl:template>
  423. </xsl:stylesheet>
  424. </xts:block>
  425. <!--
  426. ===============================================================================================
  427. debug - display debug information
  428. ===============================================================================================
  429. -->
  430. <xts:block id="debug" dependency="format" condition=".[/root/session/param[@name='debug']='1']" type="exec" mode="output" processor="XSLT" mandatory="false" mimeType="text/html">
  431. <!-- get the debug logic sheet -->
  432. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  433. <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">
  434. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  435. <xsl:template match="/">
  436. <dbg:dumpxml select="/root"/>
  437. </xsl:template>
  438. </xsl:stylesheet>
  439. </xts:block>
  440. </xts:morphlet>