advancedRunTimeOptions.xts 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <?xml version="1.0" encoding="UTF-8"?>
  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:morphlet version="1.0" xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/QSRVUITextPL.xml,messages/QSRVUITextRL.xml,messages/portal.xml,messages/portalRL.xml" requiredCapability="canUseQueryStudio">
  13. <xts:block id="page" type="exec" mode="output" processor="XSLT" mimeType="text/html">
  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:xts="http://developer.cognos.com/schemas/xts/" 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:import href="qs/logicsheets/markupTemplates.xsl"/>
  29. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  30. <!-- add any theme variables -->
  31. <df:variables/>
  32. <pf:variables/>
  33. <!-- start the output -->
  34. <xsl:template match="/root">
  35. <dp:page>
  36. <dp:script>
  37. <qsdialog:headerIncludes dlgSize="295" featureName="AdvancedRunTimeOptions"/>
  38. <script type="text/javascript">
  39. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/dialogs/CAdvancedRunTimeOptions.js</xsl:attribute>
  40. <xsl:text/>//<xsl:text/>
  41. </script>
  42. </dp:script>
  43. <form style="margin:0px" name="f" method="POST" onsubmit="return false;">
  44. <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
  45. <tr>
  46. <td width="100%" height="0%">
  47. <!-- dialog header -->
  48. <dp:header help="false">
  49. <!-- header titles -->
  50. <dp:title>
  51. <xts:string id="ADVANCED_RUN_TIME_OPTIONS_TITLE"/>
  52. </dp:title>
  53. <!-- close link for the header -->
  54. <dp:close>
  55. <a href="javascript:goDialogManager.getWindowManager().hideDialogFrame()">
  56. <dp:closeMarker/>
  57. </a>
  58. </dp:close>
  59. <!-- description (hint text) -->
  60. <dp:description>
  61. <xts:string id="RUN_TIME_QUERY_OPTIONS_DESCRIPTION"/>
  62. </dp:description>
  63. </dp:header>
  64. </td>
  65. </tr>
  66. <tr>
  67. <td width="100%" height="100%" valign="top">
  68. <!-- query options -->
  69. <lyt:layout style="1" title="QUERY_OPTIONS_TITLE" border="no">
  70. <lyt:section>
  71. <table>
  72. <tr>
  73. <td>
  74. <input name="autoFooterSummary" type="checkbox" value="true">
  75. <xsl:if test="not(/root/env/param[@name='autoFooterSummary']='false')">
  76. <xsl:attribute name="checked">true</xsl:attribute>
  77. </xsl:if>
  78. </input>
  79. </td>
  80. <td class="formText">
  81. <xts:string id="QUERY_OPTIONS_MEASURE_SUMMARIES"/>
  82. </td>
  83. </tr>
  84. <tr id="autoSummarizeDetailValues">
  85. <td>
  86. <input name="autoSummary" type="checkbox" value="true">
  87. <xsl:if test="not(/root/env/param[@name='autoSummary']='false')">
  88. <xsl:attribute name="checked">true</xsl:attribute>
  89. </xsl:if>
  90. </input>
  91. </td>
  92. <td class="formText">
  93. <xts:string id="QUERY_OPTIONS_DETAIL_SUMMARIES"/>
  94. </td>
  95. </tr>
  96. </table>
  97. </lyt:section>
  98. </lyt:layout>
  99. <!-- drill options -->
  100. <lyt:layout style="1" title="DRILL_OPTIONS_TITLE" border="no">
  101. <lyt:section>
  102. <!-- description (hint text) -->
  103. <dp:description>
  104. <xts:string id="DRILL_OPTIONS_DESCRIPTION"/>
  105. </dp:description>
  106. <dp:choice>
  107. <dp:section1>
  108. <input name="enableDrill" type="checkbox" value="true">
  109. <xsl:if test="/root/env/param[@name='enableDrill']='true'">
  110. <xsl:attribute name="checked">true</xsl:attribute>
  111. </xsl:if>
  112. </input>
  113. </dp:section1>
  114. <dp:section2>
  115. <xts:string id="DRILL_OPTIONS_ENABLE"/>
  116. </dp:section2>
  117. <dp:section1>
  118. <input name="enableModelDrill" type="checkbox" value="true">
  119. <xsl:if test="/root/env/param[@name='enableModelDrill']='true'">
  120. <xsl:attribute name="checked">true</xsl:attribute>
  121. </xsl:if>
  122. </input>
  123. </dp:section1>
  124. <dp:section2>
  125. <xts:string id="MODEL_DRILL_OPTIONS_ENABLE"/>
  126. </dp:section2>
  127. </dp:choice>
  128. </lyt:section>
  129. </lyt:layout>
  130. </td>
  131. </tr>
  132. <tr>
  133. <td width="100%" height="0%">
  134. <qsdialog:defaultButtons/>
  135. </td>
  136. </tr>
  137. </table>
  138. <script type="text/javascript">&lt;!--
  139. // Set all values in the form
  140. var oRunTimeQueryOptions = goDialogManager.getFeatureRegistry().getRegisteredFeature("AdvancedRunTimeOptions");
  141. oRunTimeQueryOptions.setFormFieldValues(document.forms['f']);
  142. //--&gt;</script>
  143. </form>
  144. </dp:page>
  145. </xsl:template>
  146. </xsl:stylesheet>
  147. </xts:block>
  148. </xts:morphlet>