filterTree.xts 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  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/dialogs.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:qsdlg="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 qsdlg xtsext">
  28. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  29. <!-- Default variables (like skin) and prompt variables -->
  30. <qsdlg:variables/>
  31. <qsdlg:promptVariables/>
  32. <xsl:include href="p_include.xsl"/>
  33. <!-- add any theme variables -->
  34. <df:variables/>
  35. <pf:variables/>
  36. <!-- start the output -->
  37. <xsl:template match="/root">
  38. <!--Get HTML output for the HEAD section -->
  39. <dp:page>
  40. <dp:script>
  41. <xsl:call-template name="getPromptCommonIncludes"/>
  42. <xsl:call-template name="getselectWithTreeIncludes">
  43. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  44. <xsl:with-param name="promptContentLocale" select="$contentLocale"/>
  45. </xsl:call-template>
  46. <link rel="stylesheet" type="text/css" href="{$qsdlgskin}/qs/QSRVDialog.css" />
  47. <script type="text/javascript">
  48. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/layout.js</xsl:attribute>
  49. <xsl:text/>//<xsl:text/>
  50. </script>
  51. <script type="text/javascript">
  52. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/dialogs/filterDialog.js</xsl:attribute>
  53. <xsl:text/>//<xsl:text/>
  54. </script>
  55. <script type="text/javascript">
  56. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/classes/CDialogManager.js</xsl:attribute>
  57. <xsl:text/>//<xsl:text/>
  58. </script>
  59. <script type="text/javascript">
  60. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/classes/CWindowManager.js</xsl:attribute>
  61. <xsl:text/>//<xsl:text/>
  62. </script>
  63. <script type="text/javascript">
  64. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/prompting/prompting.js</xsl:attribute>
  65. <xsl:text/>//<xsl:text/>
  66. </script>
  67. <script type="text/javascript">
  68. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/prompting/CTreeIE5NS6.js</xsl:attribute>
  69. <xsl:text/>//<xsl:text/>
  70. </script>
  71. <script type="text/javascript">&lt;!--
  72. var goDialogManager = new CDialogManager();
  73. var cf = getConfigFrame();
  74. var onlyPrompt;
  75. var complexFilterType = "tree";
  76. var ttRoot = null;
  77. var tntMember = new CTreeNodeType(TREE_ITEM, true, "<xsl:value-of select="$webRoot"/>/prompting/reportskin/prompting/images/genericTreeNode.gif", "<xsl:value-of select="$webRoot"/>/prompting/reportskin/prompting/images/genericTreeNode.gif");
  78. tntMember.setRecursiveSelect(false);
  79. var advClosedSize = 400;
  80. var sXXPromptName = "<xsl:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='xxPromptParam']))"/>";
  81. var sFILTER_SEARCH_FOR_VALUES = "<xts:string id="FILTER_SEARCH_FOR_VALUES" encode="javascript"/>";
  82. function execute() { filterTree_execute(); }
  83. function buildFilterExpression() { return filterTree_buildFilterExpression(); }
  84. function init() { filterTree_init(); }
  85. function sendRequestForList() { filterTree_sendRequestForList(); }
  86. function processResponse(response) { filterTree_processResponse(response); }
  87. //--&gt;</script>
  88. </dp:script>
  89. <form style="margin:0px" name="f" method="POST" onsubmit="execute();return false;">
  90. <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
  91. <tr>
  92. <td width="100%" height="0%">
  93. <!-- dialog header -->
  94. <dp:header help="false">
  95. <!-- header titles -->
  96. <dp:title>
  97. <xts:string id="FILTER_PICK_TITLE"/>
  98. </dp:title>
  99. <!-- close link for the header -->
  100. <dp:close>
  101. <a href="javascript:this.cancelDialog()">
  102. <dp:closeMarker/>
  103. </a>
  104. </dp:close>
  105. <!-- header links -->
  106. <dp:headerLinks>
  107. <dp:headerLink>
  108. <dp:hl_attribute name="id">link1</dp:hl_attribute>
  109. </dp:headerLink>
  110. </dp:headerLinks>
  111. <!-- description (hint text) -->
  112. <dp:description>
  113. <xts:string id="FILTER_DATETIME_DESCRIPTION"/>
  114. </dp:description>
  115. </dp:header>
  116. </td>
  117. </tr>
  118. <tr width="100%" height="1">
  119. <td width="100%" height="100%" valign="top">
  120. <!-- layout -->
  121. <lyt:layout style="2" border="no">
  122. <lyt:section>
  123. <dp:input>
  124. <dp:section1>
  125. <xts:string id="FILTER_ON"/>
  126. </dp:section1>
  127. <dp:section2>
  128. <xsl:attribute name="id">colName</xsl:attribute>
  129. </dp:section2>
  130. </dp:input>
  131. </lyt:section>
  132. <lyt:section>
  133. <qsdlg:promptBox/>
  134. </lyt:section>
  135. </lyt:layout>
  136. <lyt:layout style="1" border="no" joinSection="true">
  137. <lyt:section>
  138. <qsdlg:conditionBox/>
  139. <xsl:variable name="style">
  140. <xsl:choose>
  141. <xsl:when test="/root/browserInfo/isNS6='true'">height:165px;max-width:200px;</xsl:when>
  142. <xsl:otherwise>height:165px;</xsl:otherwise>
  143. </xsl:choose>
  144. </xsl:variable>
  145. <xsl:call-template name="getSelectWithTree">
  146. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  147. <xsl:with-param name="promptFormName" select="$promptFormName"/>
  148. <xsl:with-param name="promptRequired" select="'false'"/>
  149. <xsl:with-param name="promptMultiSelect" select="'true'"/>
  150. <xsl:with-param name="promptSelectUI" select="'checkboxGroup'"/>
  151. <xsl:with-param name="promptAutoSubmit" select="'false'"/>
  152. <!-- Setting promptParameter causes it to call the getpromptValues from promptTree.xts
  153. Then throws errors as the conversation and tracking variables are not passed.
  154. we do not need it here.
  155. -->
  156. <!--xsl:with-param name="promptParameter" select="'tree'"/-->
  157. <xsl:with-param name="promptId" select="'pList'"/>
  158. <xsl:with-param name="promptStyle" select="$style"/>
  159. </xsl:call-template>
  160. <qsdlg:nullOptions/>
  161. <qsdlg:filterBasedOnDSBox/>
  162. </lyt:section>
  163. </lyt:layout>
  164. </td>
  165. </tr>
  166. <tr>
  167. <td width="100%" height="0%">
  168. <!-- Use default buttons [ OK = execute() and CANCEL = hideDialogFrame() ] -->
  169. <qsdlg:defaultButtons/>
  170. </td>
  171. </tr>
  172. <!--dbg:dumpxml select="/"/-->
  173. </table>
  174. </form>
  175. </dp:page>
  176. </xsl:template>
  177. </xsl:stylesheet>
  178. </xts:block>
  179. </xts:morphlet>