suppress.xts 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. <xts:morphlet resolverBase="prompting" xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/QSRVUITextPL.xml,messages/portal.xml,messages/portalRL.xml" requiredCapability="canUseQueryStudio">
  2. <!--
  3. Licensed Materials - Property of IBM
  4. BI and PM: qs
  5. (C) Copyright IBM Corp. 2001, 2017
  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:block id="browserDetection" path="qs/browserDetection.xslt" mode="interpret" type="exec" processor="XSLT" contentId="browserDetection" partId="1"/>
  13. <xts:block id="format" type="exec" mode="output" processor="XSLT" mimeType="text/html" dependency="browserDetection">
  14. <!-- get the debug logic sheet -->
  15. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  16. <!-- get the new theme stuff -->
  17. <xts:logicsheet path="logicsheets/portal.xsl"/>
  18. <xts:logicsheet path="qs/logicsheets/dialogIncludes.xsl"/>
  19. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  20. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  21. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  22. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  23. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  24. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  25. <!-- apply the form logic -->
  26. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  27. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/" xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/" xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/" xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/" xmlns:dbg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/debug/" xmlns:qsdialog="http://developer.cognos.com/schemas/xts/logicsheets/xslt/qs/dialog/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="xsl xts lyt pf dp df cp cf dbg qsdialog xtsext">
  28. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  29. <!-- Default variables (like skin) and prompt variables -->
  30. <qsdialog:variables/>
  31. <qsdialog:promptVariables/>
  32. <!-- add any theme variables -->
  33. <df:variables/>
  34. <pf:variables/>
  35. <!-- start the output -->
  36. <xsl:template match="/root">
  37. <!--Get HTML output for the HEAD section -->
  38. <dp:page>
  39. <script type="text/javascript">
  40. goDialogManager.getApplicationFrame().cfgSet("suppressionUncheckedError", "<xts:string id="SUPPRESSION_ALL_UNCHECKED" encode="javascript"/>");
  41. </script>
  42. <dp:script>
  43. <qsdialog:headerIncludes dlgSize="280" featureName="Suppress" setupParameters="env"/>
  44. </dp:script>
  45. <xsl:variable name="sCurrentView">
  46. <xsl:choose>
  47. <xsl:when test="/root/env/param[@name='xxCurrentView']='DIALOG_LIST'"><xts:string id="DIALOG_LIST"/></xsl:when>
  48. <xsl:otherwise><xts:string id="DIALOG_CROSSTAB"/></xsl:otherwise>
  49. </xsl:choose>
  50. </xsl:variable>
  51. <form style="margin:0px" name="f" method="POST" onsubmit="return false;">
  52. <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
  53. <tr>
  54. <td colspan="2" valign="top">
  55. <!-- dialog header -->
  56. <dp:header help="false">
  57. <!-- header titles -->
  58. <dp:title>
  59. <xts:string id="MENU_EDIT_COLUMN_SUPPRESS"/>
  60. </dp:title>
  61. <!-- close link for the header -->
  62. <dp:close>
  63. <a href="javascript:goDialogManager.cancelDialog()">
  64. <dp:closeMarker/>
  65. </a>
  66. </dp:close>
  67. </dp:header>
  68. </td>
  69. </tr>
  70. <tr>
  71. <td colspan="2" valign="top">
  72. <lyt:layout style="1" border="no" joinSection="true">
  73. <lyt:section>
  74. <dp:input>
  75. <dp:section1>
  76. <xts:string id="DIALOG_CURRENT_VIEW"/>
  77. </dp:section1>
  78. <dp:section2>
  79. <xsl:value-of select="$sCurrentView"/>
  80. </dp:section2>
  81. </dp:input>
  82. </lyt:section>
  83. </lyt:layout>
  84. </td>
  85. </tr>
  86. <tr>
  87. <td valign="top">
  88. <lyt:layout style="1" border="no" joinSection="true">
  89. <lyt:section>
  90. <span nocOnly="disabled">
  91. <dp:choice title="SUPPRESS_THE_FOLLOWING">
  92. <dp:section1>
  93. <input type="radio" name="suppressionType" value="SUPPRESS_OFF">
  94. <xsl:if test="/root/env/param[@name='xxSuppressionType']='SUPPRESS_OFF'">
  95. <xsl:attribute name="checked">true</xsl:attribute>
  96. </xsl:if>
  97. </input>
  98. </dp:section1>
  99. <dp:section2>
  100. <xts:string id="SUPPRESS_OFF"/>
  101. </dp:section2>
  102. <xsl:choose>
  103. <xsl:when test="/root/env/param[@name='xxCurrentView']='DIALOG_LIST'">
  104. <!-- List -->
  105. <dp:section1>
  106. <input type="radio" name="suppressionType" value="SUPPRESS_ROWS">
  107. <xsl:if test="/root/env/param[@name='xxSuppressionType']='SUPPRESS_ROWS'">
  108. <xsl:attribute name="checked">true</xsl:attribute>
  109. </xsl:if>
  110. </input>
  111. </dp:section1>
  112. <dp:section2>
  113. <xts:string id="ROWS"/>
  114. </dp:section2>
  115. </xsl:when>
  116. <xsl:otherwise>
  117. <!-- Crosstab -->
  118. <!-- Don't show rows and columns if multi-edge support is off -->
  119. <xsl:if test="/root/env/param[@name='xxIsMultiEdgeNullSuppressionAllowed']='true'">
  120. <dp:section1>
  121. <input type="radio" name="suppressionType" value="SUPPRESS_ROWS_AND_COLUMNS">
  122. <xsl:if test="/root/env/param[@name='xxSuppressionType']='SUPPRESS_ROWS_AND_COLUMNS'">
  123. <xsl:attribute name="checked">true</xsl:attribute>
  124. </xsl:if>
  125. </input>
  126. </dp:section1>
  127. <dp:section2>
  128. <xts:string id="ROWS_AND_COLUMNS"/>
  129. </dp:section2>
  130. </xsl:if>
  131. <!-- Don't show rows if multi-edge support is off and columns is selected-->
  132. <xsl:if test="/root/env/param[@name='xxIsMultiEdgeNullSuppressionAllowed']='true' or /root/env/param[@name='xxSuppressionType'] != 'SUPPRESS_COLUMNS'">
  133. <dp:section1>
  134. <input type="radio" name="suppressionType" value="SUPPRESS_ROWS">
  135. <xsl:if test="/root/env/param[@name='xxSuppressionType']='SUPPRESS_ROWS'">
  136. <xsl:attribute name="checked">true</xsl:attribute>
  137. </xsl:if>
  138. </input>
  139. </dp:section1>
  140. <dp:section2>
  141. <xts:string id="ROWS_ONLY"/>
  142. </dp:section2>
  143. </xsl:if>
  144. <!-- Don't show columns if multi-edge support is off and rows is selected-->
  145. <xsl:if test="/root/env/param[@name='xxIsMultiEdgeNullSuppressionAllowed']='true' or /root/env/param[@name='xxSuppressionType'] != 'SUPPRESS_ROWS'">
  146. <dp:section1>
  147. <input type="radio" name="suppressionType" value="SUPPRESS_COLUMNS">
  148. <xsl:if test="/root/env/param[@name='xxSuppressionType']='SUPPRESS_COLUMNS'">
  149. <xsl:attribute name="checked">true</xsl:attribute>
  150. </xsl:if>
  151. </input>
  152. </dp:section1>
  153. <dp:section2>
  154. <xts:string id="COLUMNS_ONLY"/>
  155. </dp:section2>
  156. </xsl:if>
  157. </xsl:otherwise>
  158. </xsl:choose>
  159. </dp:choice>
  160. </span>
  161. </lyt:section>
  162. </lyt:layout>
  163. </td>
  164. <xsl:if test="/root/env/param[@name='xxIsAccessToNullSuppressionOptionsAllowed']='true'">
  165. <td valign="top">
  166. <lyt:section>
  167. <dp:choice title="SUPPRESS_TYPE_OF_VALUES">
  168. <dp:section>
  169. <dp:section1>
  170. <input type="checkbox" name="suppressZeroValues" value="SUPPRESS_ZERO_VALUES">
  171. <xsl:if test="/root/env/param[@name='xxSuppressionValuesZero']='true'">
  172. <xsl:attribute name="checked">true</xsl:attribute>
  173. </xsl:if>
  174. </input>
  175. </dp:section1>
  176. <dp:section2>
  177. <xts:string id="SUPPRESS_ZERO_VALUES"/>
  178. </dp:section2>
  179. </dp:section>
  180. <dp:section>
  181. <dp:section1>
  182. <input type="checkbox" name="suppressDivideByZero" value="SUPPRESS_DIVIDE_BY_ZERO">
  183. <xsl:if test="/root/env/param[@name='xxSuppressionValuesDivideByZero']='true'">
  184. <xsl:attribute name="checked">true</xsl:attribute>
  185. </xsl:if>
  186. </input>
  187. </dp:section1>
  188. <dp:section2>
  189. <xts:string id="SUPPRESS_DIVIDE_BY_ZERO"/>
  190. </dp:section2>
  191. </dp:section>
  192. <dp:section>
  193. <dp:section1>
  194. <input type="checkbox" name="suppressMissingValues" value="SUPPRESS_MISSING_VALUES">
  195. <xsl:if test="/root/env/param[@name='xxSuppressionValuesMissing']='true'">
  196. <xsl:attribute name="checked">true</xsl:attribute>
  197. </xsl:if>
  198. </input>
  199. </dp:section1>
  200. <dp:section2>
  201. <xts:string id="SUPPRESS_MISSING_VALUES"/>
  202. </dp:section2>
  203. </dp:section>
  204. <dp:section>
  205. <dp:section1>
  206. <input type="checkbox" name="suppressOverflowValues" value="SUPPRESS_OVERFLOW_VALUES">
  207. <xsl:if test="/root/env/param[@name='xxSuppressionValuesOverflow']='true'">
  208. <xsl:attribute name="checked">true</xsl:attribute>
  209. </xsl:if>
  210. </input>
  211. </dp:section1>
  212. <dp:section2>
  213. <xts:string id="SUPPRESS_OVERFLOW_VALUES"/>
  214. </dp:section2>
  215. </dp:section>
  216. </dp:choice>
  217. </lyt:section>
  218. </td>
  219. </xsl:if>
  220. </tr>
  221. <tr>
  222. <td colspan="2">
  223. <!-- Use default buttons [ OK = execute() and CANCEL = hideDialogFrame() ] -->
  224. <qsdialog:defaultButtons/>
  225. </td>
  226. </tr>
  227. <!--dbg:dumpxml select="/"/-->
  228. </table>
  229. </form>
  230. </dp:page>
  231. </xsl:template>
  232. </xsl:stylesheet>
  233. </xts:block>
  234. </xts:morphlet>