suppressionDialog.xts 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530
  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/AGS.xml,messages/portalRL.xml" requiredCapability="canUseEventStudio">
  9. <!--
  10. ===============================================================================================
  11. formlogic_init - standard form logic initialization
  12. ===============================================================================================
  13. -->
  14. <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="/logicsheets/formlogic_init.xslt" condition=".[ not( contains( /root/env/param[@name = 'm'], substring-before(/root/env/param[@name='ps_nav_source'], '.') ) )]" mandatory="false"/>
  15. <!--
  16. ================================================================================
  17. decode the agent items
  18. ===============================================================================================
  19. -->
  20. <xts:block id="decode_agent_definition" dependency="formlogic_init" processor="XSLT" type="exec">
  21. <xts:logicsheet path="ags/logicsheets/agentDefinition.xsl"/>
  22. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:agsad="http://developer.cognos.com/schemas/xts/logicsheets/xslt/ags/agentDefinition/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
  23. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  24. <xsl:template match="/">
  25. <xts:sequence>
  26. <agsad:decodeAgentDefinition clean="false"/>
  27. </xts:sequence>
  28. </xsl:template>
  29. </xsl:stylesheet>
  30. </xts:block>
  31. <!--
  32. ================================================================================
  33. render_page
  34. Render the HTML page
  35. ===============================================================================================
  36. -->
  37. <xts:block id="render_page" dependency="decode_agent_definition" processor="XSLT" type="exec" mode="output" mimeType="text/html">
  38. <!-- portal specific information -->
  39. <xts:logicsheet path="logicsheets/portal.xsl"/>
  40. <!-- Get the new theme framework. -->
  41. <xts:logicsheet path="ags/logicsheets/dialogs.xsl"/>
  42. <xts:logicsheet path="ags/logicsheets/agentDefinition.xsl"/>
  43. <xts:logicsheet path="logicsheets/presentation/dialog/ui-templates.xsl"/>
  44. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  45. <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
  46. <xts:logicsheet path="logicsheets/presentation/dialog/confirm.xslt"/>
  47. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  48. <!-- apply the form logic -->
  49. <!-- Prevent the href from appearing in the status bar. -->
  50. <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
  51. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  52. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  53. <!-- Generic logicsheets -->
  54. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  55. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  56. <xsl:stylesheet version="1.0"
  57. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  58. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  59. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  60. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  61. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  62. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  63. xmlns:agsad="http://developer.cognos.com/schemas/xts/logicsheets/xslt/ags/agentDefinition/"
  64. xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
  65. xmlns:agsdlg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/ags/dialog/"
  66. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  67. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  68. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  69. xmlns:dlgctrl="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/controller-templates/"
  70. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  71. exclude-result-prefixes="pf xtsext lyt dp df agsad utml agsdlg xts cp cf dlgctrl cm">
  72. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  73. <!-- add any theme variables -->
  74. <pf:variables/>
  75. <pf:serialize-xml/>
  76. <!-- start the output -->
  77. <xsl:template match="/">
  78. <xsl:variable name="wizardTitle"><xts:string id="DIALOG_SUPPRESSION_TITLE"/></xsl:variable>
  79. <xsl:text disable-output-escaping="yes">&lt;!DOCTYPE html&gt;</xsl:text>
  80. <dp:page longTitle="$wizardTitle">
  81. <link href="{$skin_root}/ags/ags.css" type="text/css" rel="stylesheet"/>
  82. <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
  83. <dp:meta/>
  84. <dp:script>
  85. <pf:help context="ug_cr_as_ag_wrk_mng_tsk_ex" eventStudio="true"/>
  86. <script type="text/javascript" src="../ags/help.js">//</script>
  87. </dp:script>
  88. <utml:form name="pform" method="post" action="{$gateway}">
  89. <utml:input name="hid" id="hid" type="hidden" utml:update="false" value="ug_cr_as_ag_wrk_mng_tsk_ex"/>
  90. <!-- a hidden div for adding controls into dynamically -->
  91. <div id="hidden_div" style="display:none"/>
  92. <!-- the rest of the code -->
  93. <!-- first time in-->
  94. <utml:input type="hidden" name="inWizard" id="inWizard" utml:update="false">
  95. <utml:value>true</utml:value>
  96. </utml:input>
  97. <utml:excludes>Action_topic_filter</utml:excludes>
  98. <dp:header>
  99. <dp:title showName="false">
  100. <xsl:value-of select="$wizardTitle"/>
  101. </dp:title>
  102. <!--dp:description>
  103. <xts:string id="DIALOG_SUPPRESSION_DESCRIPTION_EVENT"/>
  104. </dp:description-->
  105. <dp:close>
  106. <a href="#" onclick="onCancel();">
  107. <dp:closeMarker/>
  108. </a>
  109. </dp:close>
  110. </dp:header>
  111. <lyt:layout style="1">
  112. <lyt:section>
  113. <table cellpadding="0" cellspacing="0" height="100%" style="overflow:auto;width:100%;display:none" id="taskExecutionRulesPane">
  114. <tr>
  115. <td valign="bottom">
  116. <cp:tabset tabwidth="70">
  117. <cp:select>taskExecutionRules</cp:select>
  118. <cp:tab name="taskExecutionRules" position="start">
  119. <a href="#" onclick="javascript:alert('Clicked Task Execution Rules')" onmouseover="status=''; return true;">
  120. <cp:label><xts:string id="DIALOG_SUPPRESSION_EVENT_SELECTION_TAB"/></cp:label>
  121. </a>
  122. </cp:tab>
  123. <cp:tab name="setEventKey" position="end" var-name="true">
  124. <a href="#" onclick="setTabVisible('taskExecutionRulesPane',false);setTabVisible('setEventKeyPane',true);" onmouseover="status=''; return true;">
  125. <cp:label><xts:string id="DIALOG_SUPPRESSION_EVENT_KEY_TAB"/></cp:label>
  126. </a>
  127. </cp:tab>
  128. </cp:tabset>
  129. <dp:list>
  130. <dp:section width="100%">
  131. <dp:hint wrap="wrap">
  132. <xts:string id="DIALOG_SUPPRESSION_DESCRIPTION_EVENT"/>
  133. </dp:hint>
  134. </dp:section>
  135. <dp:section>
  136. <dp:group title="DIALOG_SUPPRESSION_AGENT_TASKS">
  137. <dp:groupItem>
  138. <!-- this is filled by the js -->
  139. <utml:select name="ad_select_display" size="1" onChange="getActionTopicFilterElementProcessor().doSelectAction()"/>
  140. </dp:groupItem>
  141. </dp:group>
  142. </dp:section>
  143. <dp:section>
  144. <dp:list title="DIALOG_SUPPRESSION_TITLE_EVENT">
  145. <dp:section>
  146. <utml:radio-group name="main_radio_group" width="100%">
  147. <dp:choice width="100%" noSpace="true">
  148. <dp:section1><utml:input type="radio" value="event_status" checked="true" onClick="failTaskRadioProcess(false)"/></dp:section1>
  149. <dp:section2><xts:string id="DIALOG_SUPPRESSION_EVENT_STATUS"/></dp:section2>
  150. <dp:section3>
  151. <dp:list>
  152. <xsl:attribute name="id">event_rules_table</xsl:attribute>
  153. <dp:section width="100%">
  154. <dp:choice noSpace="true">
  155. <dp:section1 valign="center">
  156. <utml:input type="checkbox" value="new" onClick="changeTaskLevelFilterState();checkTheBox(this)">
  157. <utml:name>Filter_new</utml:name>
  158. </utml:input>
  159. </dp:section1>
  160. <dp:section2 valign="center">
  161. <agsdlg:box noSpace="true">
  162. <agsdlg:boxSection valign="center">
  163. <img border="0" id="icon_new_event.gif" src="../ags/images/summary/icon_new_event.gif"/>
  164. </agsdlg:boxSection>
  165. <agsdlg:boxSection hgap="1"/>
  166. <agsdlg:boxSection valign="center">
  167. <xts:string id="DIALOG_SUPPRESSION_NEW_EVENTS"/>
  168. </agsdlg:boxSection>
  169. </agsdlg:box>
  170. </dp:section2>
  171. </dp:choice>
  172. </dp:section>
  173. <dp:section>
  174. <dp:choice noSpace="true">
  175. <dp:section1 valign="center">
  176. <utml:input type="checkbox" value="Filter_ongoing_group" onClick="changeTaskLevelFilterState();ongoingClicked(this.checked);">
  177. <utml:name>Filter_ongoing_group</utml:name>
  178. </utml:input>
  179. </dp:section1>
  180. <dp:section2 valign="center">
  181. <agsdlg:box noSpace="true">
  182. <agsdlg:boxSection valign="center">
  183. <img border="0" id="icon_ongoing_event.gif" src="../ags/images/summary/icon_ongoing_event.gif"/>
  184. </agsdlg:boxSection>
  185. <agsdlg:boxSection hgap="1"/>
  186. <agsdlg:boxSection valign="center">
  187. <xts:string id="DIALOG_SUPPRESSION_ONGOING_EVENTS"/>
  188. </agsdlg:boxSection>
  189. </agsdlg:box>
  190. </dp:section2>
  191. <dp:section3 noSpace="true">
  192. <dp:list width="100%">
  193. <dp:section width="100%">
  194. <dp:hint wrap="wrap">
  195. <xts:string id="DIALOG_SUPPRESSION_ONGOING_EVENTS_CHANGE"/>
  196. </dp:hint>
  197. </dp:section>
  198. <dp:section>
  199. <img height="5" width="1">
  200. <xsl:attribute name="src"><xsl:value-of select="'{$webcontent}'"/>/images/space.gif</xsl:attribute>
  201. </img>
  202. </dp:section>
  203. <dp:section width="100%">
  204. <utml:select id="Filter_ongoing_specified_value" name="Filter_ongoing_specified_value" size="1" onChange="processActionTopicState();">
  205. <utml:option value="allOngoing" selected="selected">
  206. <xts:string id="DIALOG_SUPPRESSION_ONGOING_EVENTS_ANY"/>
  207. </utml:option>
  208. <utml:option value="changed">
  209. <xts:string id="DIALOG_SUPPRESSION_ONGOING_EVENTS_CHANGE_NAME"/>
  210. </utml:option>
  211. <utml:option value="unchanged">
  212. <xts:string id="DIALOG_SUPPRESSION_ONGOING_EVENTS_UNCHANGE_NAME"/>
  213. </utml:option>
  214. </utml:select>
  215. </dp:section>
  216. <dp:section>
  217. <img height="5" width="1">
  218. <xsl:attribute name="src"><xsl:value-of select="'{$webcontent}'"/>/images/space.gif</xsl:attribute>
  219. </img>
  220. </dp:section>
  221. <dp:section>
  222. <div id="actionTopicDropArea">
  223. <dp:group>
  224. <dp:groupItem>
  225. <dp:list>
  226. <dp:section>
  227. <agsdlg:insertButton targetId="Action_topic_filter" >
  228. <div focusable='1' name="Action_topic_filter" id="Action_topic_filter" style="width:300px;height:64px;overflow:auto;" />
  229. </agsdlg:insertButton>
  230. </dp:section>
  231. <dp:section>
  232. <dp:text align="right" nospace='true'>
  233. <a href="#" align="right" onclick="getActionTopicFilterElementProcessor().remove();"><xts:string id="IDS_REMOVE"/></a>
  234. </dp:text>
  235. </dp:section>
  236. </dp:list>
  237. </dp:groupItem>
  238. </dp:group>
  239. </div>
  240. <dp:group valign="top">
  241. <dp:groupItem valign="top">
  242. <dp:message wrap="true">
  243. <dp:image>
  244. <img alt="" border="0" src="../ags/images/tip_template.gif"/>
  245. </dp:image>
  246. <dp:messageText><xts:string id="DIALOG_SUPPRESSION_ONGOING_EVENTS_TIP"/>&#160;<a href="#" onclick="setTabVisible('taskExecutionRulesPane',false);setTabVisible('setEventKeyPane',true);" onmouseover="status=''; return true;"><xts:string id="DIALOG_SUPPRESSION_ONGOING_EVENTS_TIP_LINK"/></a></dp:messageText>
  247. </dp:message>
  248. </dp:groupItem>
  249. </dp:group>
  250. </dp:section>
  251. </dp:list>
  252. </dp:section3>
  253. </dp:choice>
  254. </dp:section>
  255. <dp:section>
  256. <dp:choice noSpace="true">
  257. <dp:section1 valign="center">
  258. <utml:input type="checkbox" value="deleted" onClick="changeTaskLevelFilterState();checkTheBox(this)">
  259. <utml:name>Filter_deleted</utml:name>
  260. </utml:input>
  261. </dp:section1>
  262. <dp:section2 valign="center">
  263. <agsdlg:box noSpace="true">
  264. <agsdlg:boxSection valign="center">
  265. <img border="0" id="icon_ongoing_event.gif" src="../ags/images/summary/icon_ceased_event.gif"/>
  266. </agsdlg:boxSection>
  267. <agsdlg:boxSection hgap="1"/>
  268. <agsdlg:boxSection valign="center">
  269. <xts:string id="DIALOG_SUPPRESSION_CEASED_EVENTS"/>
  270. </agsdlg:boxSection>
  271. </agsdlg:box>
  272. </dp:section2>
  273. </dp:choice>
  274. </dp:section>
  275. <dp:section>
  276. <dp:choice noSpace="true">
  277. <xsl:attribute name="id">taskLevelFilterSection</xsl:attribute>
  278. <dp:section1 valign="center">
  279. <utml:input type="checkbox" value="action_task_filter_checkbox" id="action_task_filter_checkbox" name="action_task_filter_checkbox" onClick="checkTheBox(this)">
  280. <utml:name>Task_filter</utml:name>
  281. </utml:input>
  282. </dp:section1>
  283. <dp:section2 width="100%" valign="center">
  284. <agsdlg:box noSpace="true">
  285. <agsdlg:boxSection valign="center">
  286. <img border="0" id="icon_conditional_event.gif" src="../ags/images/summary/icon_conditional_event.gif"/>
  287. </agsdlg:boxSection>
  288. <agsdlg:boxSection hgap="1"/>
  289. <agsdlg:boxSection valign="center"><xts:string id="DIALOG_SUPPRESSION_ITEM_TRUE"/></agsdlg:boxSection>
  290. </agsdlg:box>
  291. </dp:section2>
  292. <dp:section3 noSpace="true">
  293. <dp:list width="100%" section3_align="right">
  294. <dp:section>
  295. <dp:hint wrap="wrap">
  296. <xts:string id="DIALOG_SUPPRESSION_ITEM_TRUE_HINT"/>
  297. </dp:hint>
  298. </dp:section>
  299. <dp:section width="100%">
  300. <agsdlg:insertButton targetId="task_filter_input">
  301. <input type="text" name="task_filter_input" id="task_filter_input" style="width:100%" oncontextmenu="event.cancel=true;event.returnValue=false;return false;" onblur="event.cancelBubble=true;event.returnValue=false;return false;"/>
  302. </agsdlg:insertButton>
  303. </dp:section>
  304. <!-- Only if we have any parameters we show the section below -->
  305. <dp:section width="100%">
  306. <dp:text align="right" width="100%" nospace='true'>
  307. <a href="#" align="right" onclick="updateTaskLevelFilter('')"><xts:string id="IDS_REMOVE"/></a>
  308. </dp:text>
  309. </dp:section>
  310. </dp:list>
  311. </dp:section3>
  312. </dp:choice>
  313. </dp:section>
  314. <dp:section>
  315. <dp:choice>
  316. <dp:section1 valign="center">
  317. <utml:input type="checkbox" value="nil" onClick="changeTaskLevelFilterState();checkTheBox(this)">
  318. <utml:name>Filter_nil</utml:name>
  319. </utml:input>
  320. </dp:section1>
  321. <dp:section2 valign="center">
  322. <agsdlg:box noSpace="true">
  323. <agsdlg:boxSection valign="center">
  324. <img border="0" id="icon_empty_event.gif" src="../ags/images/summary/icon_empty_event.gif"/>
  325. </agsdlg:boxSection>
  326. <agsdlg:boxSection hgap="1"/>
  327. <agsdlg:boxSection valign="center">
  328. <xts:string id="DIALOG_SUPPRESSION_NO_EVENTS"/>
  329. </agsdlg:boxSection>
  330. </agsdlg:box>
  331. </dp:section2>
  332. </dp:choice>
  333. </dp:section>
  334. </dp:list>
  335. </dp:section3>
  336. <dp:section1 valign="center"><utml:input type="radio" value="failed_task" onClick="failTaskRadioProcess(true)"/></dp:section1>
  337. <dp:section2 valign="center">
  338. <agsdlg:box noSpace="true">
  339. <agsdlg:boxSection valign="center">
  340. <img border="0" id="icon_failed_event.gif" src="../ags/images/summary/icon_failed_event.gif"/>
  341. </agsdlg:boxSection>
  342. <agsdlg:boxSection hgap="1"/>
  343. <agsdlg:boxSection valign="center">
  344. <xts:string id="DIALOG_SUPPRESSION_FAILED_TASKS"/>
  345. </agsdlg:boxSection>
  346. </agsdlg:box>
  347. </dp:section2>
  348. </dp:choice>
  349. </utml:radio-group>
  350. </dp:section>
  351. </dp:list>
  352. </dp:section>
  353. </dp:list>
  354. </td>
  355. </tr>
  356. </table>
  357. <table cellpadding="0" cellspacing="0" height="100%" style="overflow:auto;width:100%;display:none" id="setEventKeyPane">
  358. <tr>
  359. <td valign="bottom">
  360. <cp:tabset tabwidth="70">
  361. <cp:select>setEventKey</cp:select>
  362. <cp:tab name="taskExecutionRules" position="start">
  363. <a href="#" onclick="setTabVisible('setEventKeyPane',false);setTabVisible('taskExecutionRulesPane',true);" onmouseover="status=''; return true;">
  364. <cp:label><xts:string id="DIALOG_SUPPRESSION_EVENT_SELECTION_TAB"/></cp:label>
  365. </a>
  366. </cp:tab>
  367. <cp:tab name="setEventKey" position="end">
  368. <a href="#" onclick="javascript:alert('Clicked event key pane')" onmouseover="status=''; return true;">
  369. <cp:label><xts:string id="DIALOG_SUPPRESSION_EVENT_KEY_TAB"/></cp:label>
  370. </a>
  371. </cp:tab>
  372. </cp:tabset>
  373. <dp:list width="100%" section3_align="right">
  374. <dp:section width="100%">
  375. <dp:hint wrap="true"><xts:string id="DIALOG_SUPPRESSION_DROP_DESCRIPTION_EVENT"/></dp:hint>
  376. </dp:section>
  377. <dp:section>
  378. <img border="0" height="10" width="0" src="../ags/images/spacer.gif"/>
  379. </dp:section>
  380. <dp:section width="100%">
  381. <dp:label wrap="true"><xts:string id="DIALOG_SUPPRESSION_EVENT_KEY"/></dp:label>
  382. </dp:section>
  383. <dp:section width="100%">
  384. <utml:radio-group name="Event_Key" width="100%">
  385. <dp:choice width="100%" noSpace="true">
  386. <dp:section1><utml:input type="radio" value="event_key_all" onClick="getEventKeyElementProcessor().selectAll();"/></dp:section1>
  387. <dp:section2><xts:string id="DIALOG_SUPPRESSION_EVENT_KEY_ALL"/></dp:section2>
  388. <dp:section1><utml:input type="radio" value="event_key_selected" onClick="document.getElementById('event_keys_div').disabled = false;getEventKeyElementProcessor().list.setDisabled(false);"/></dp:section1>
  389. <dp:section2><xts:string id="DIALOG_SUPPRESSION_EVENT_KEY_SELECTED"/></dp:section2>
  390. <dp:section3 width="100%">
  391. <div id="event_keys_div" style="width:100%">
  392. <dp:list width="100%">
  393. <dp:section width="100%">
  394. <agsdlg:insertButton targetId="Summary_event_key" >
  395. <div focusable='1' name="Summary_event_key" id="Summary_event_key" style="width:100%; height:100px;overflow:auto;"/>
  396. </agsdlg:insertButton>
  397. </dp:section>
  398. <!-- Only if we have any parameters we show the section below -->
  399. <dp:section width="100%">
  400. <dp:text align="right" width="100%" nospace='true'>
  401. <a href="#" align="right" onclick="getEventKeyElementProcessor().remove();"><xts:string id="IDS_REMOVE"/></a>
  402. </dp:text>
  403. </dp:section>
  404. </dp:list>
  405. </div>
  406. </dp:section3>
  407. </dp:choice>
  408. </utml:radio-group>
  409. </dp:section>
  410. </dp:list>
  411. </td>
  412. </tr>
  413. </table>
  414. </lyt:section>
  415. </lyt:layout>
  416. <dp:footer>
  417. <df:button df:id="IDS_OK" df:style="href" df:href="#" onclick="doFinish();" />
  418. <df:button df:id="IDS_CANCEL" df:style="href" df:href="#" onclick="cf.hideDialogFrame();"/>
  419. </dp:footer>
  420. </utml:form>
  421. <dp:script>
  422. <script type="text/javascript" src="../ags/suppression.js">//</script>
  423. <script type="text/javascript" src="../ags/supressValidation.js">//</script>
  424. <script type="text/javascript" src="../ags/nonDuplicationItems.js">//</script>
  425. <script type="text/javascript" src="../ags/dragDropHandler.js">//</script>
  426. <script type="text/javascript" src="../common/framework/ui/CUIStyle.js">//</script>
  427. <script type="text/javascript" src="../ags/CList.js">//</script>
  428. <!-- load agent actions to javascript -->
  429. <!-- we only want to load up the agent definition when we first enter here -->
  430. <agsad:agentDefinition agent-path="/root/agent_definition"/>
  431. <script language="javascript">
  432. function init() {
  433. parent.setAgentDefinition(undefined);
  434. //call the method to load the agents
  435. loadAgentActions();
  436. if (parent.getAgentDefinition().getActionCount() == 0) {
  437. //There are no tasks to manage so do not show the dialog.
  438. alert('<xts:string id="DIALOG_SUPPRESSION_NO_TASKS_WARNING" encode="javascript"/>');
  439. return;
  440. }
  441. initActionTopicFilter();
  442. initEventKey();
  443. setTabVisible('setEventKeyPane',false);
  444. setTabVisible('taskExecutionRulesPane',true);
  445. droppy.registerDropZone("task_filter_input","","", true, '', "", false);
  446. droppy.setDropZoneValue(getSelectedAction().taskLevelFilter,'task_filter_input');
  447. droppy.registerDropHandler('task_filter_input',updateTaskLevelFilter);
  448. if (getSelectedAction().runCondition == "runOnFailure") {
  449. document.pform.main_radio_group[1].checked = true;
  450. failTaskRadioProcess(true);
  451. }
  452. // mark all keys as selected
  453. <xsl:choose>
  454. <xsl:when test="key('env-param','event_key_all')!=''">
  455. getEventKeyElementProcessor().indicateAll();
  456. </xsl:when>
  457. <xsl:otherwise>
  458. getEventKeyElementProcessor().indicateSelected();
  459. </xsl:otherwise>
  460. </xsl:choose>
  461. //parent.updateEventKeyListValues();
  462. //This function is used to fix scroll bar issue of dialogIFrame in Standards mode.
  463. resetMargin();
  464. cf.showDialogFrame('550');
  465. }
  466. function resetMargin(){
  467. var elementArray = document.getElementsByTagName("body");
  468. var iframeBody = elementArray[0];
  469. iframeBody.style.margin = "0px";
  470. }
  471. </script>
  472. </dp:script>
  473. </dp:page>
  474. </xsl:template>
  475. <agsad:displayDetails/>
  476. </xsl:stylesheet>
  477. </xts:block>
  478. <!--
  479. ================================================================================
  480. debug
  481. ================================================================================
  482. -->
  483. <xts:block id="debug" type="exec" mode="output" processor="XSLT" mandatory="false" mimeType="text/html" condition=".[/root/session/param[@name = 'debug'] = '1']" dependency="render_page">
  484. <!-- Get the debug logic sheet -->
  485. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  486. <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">
  487. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  488. <xsl:template match="/">
  489. <dbg:dumpxml select="/root"/>
  490. </xsl:template>
  491. </xsl:stylesheet>
  492. </xts:block>
  493. </xts:morphlet>