filterSearch.xts 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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="format" type="exec" mode="output" processor="XSLT" mimeType="text/html" nodelist="env, debug, http, command, system, session, user, actions, tabs, configProps, credential, cookies, setCookies, accountOptions, newSession, gatewayURI, cm:queryResponse, objectClass, prompting">
  13. <!-- get the debug logic sheet -->
  14. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  15. <!-- get the new theme stuff -->
  16. <xts:logicsheet path="logicsheets/portal.xsl"/>
  17. <xts:logicsheet path="qs/logicsheets/dialogs.xsl"/>
  18. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  19. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  20. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  21. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  22. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  23. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  24. <!-- apply the form logic -->
  25. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  26. <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">
  27. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  28. <!-- Default variables (like skin) and prompt variables -->
  29. <qsdlg:variables/>
  30. <qsdlg:promptVariables/>
  31. <!-- Prompt Control XSL include -->
  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="getselectWithSearchIncludes">
  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">&lt;!--
  64. var goDialogManager = new CDialogManager();
  65. var cf = getConfigFrame();
  66. var onlyPrompt = false;
  67. var promptsRetrieved = false;
  68. var complexFilterType = "selectWithSearch";
  69. var sXXPromptParam = "<xsl:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='xxPromptParam']))"/>";
  70. var sPromptCB = '<xsl:value-of select="xtsext:javascriptencode( string( /root/env/param[@name='promptCB'] ) )"/>';
  71. var sFILTER_PICK_VALUES = "<xts:string id="FILTER_PICK_VALUES" encode="javascript"/>";
  72. var sFILTER_TYPE_IN_VALUES = "<xts:string id="FILTER_TYPE_IN_VALUES" encode="javascript"/>";
  73. function execute() { filterSearch_execute(); }
  74. function buildFilterExpression() { return filterSearch_buildFilterExpression(); }
  75. function init() { filterSearch_init(); }
  76. //--&gt;</script>
  77. </dp:script>
  78. <form style="margin:0px" name="f" method="POST" onSubmit="execute();return false;">
  79. <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
  80. <tr>
  81. <td width="100%" height="0%">
  82. <!-- dialog header -->
  83. <dp:header help="false">
  84. <!-- header titles -->
  85. <dp:title>
  86. <xts:string id="FILTER_SEARCH_TITLE"/>
  87. </dp:title>
  88. <!-- close link for the header -->
  89. <dp:close>
  90. <a href="javascript:this.cancelDialog()">
  91. <dp:closeMarker/>
  92. </a>
  93. </dp:close>
  94. <!-- header links -->
  95. <dp:headerLinks>
  96. <dp:headerLink>
  97. <dp:hl_attribute name="id">link1</dp:hl_attribute>
  98. </dp:headerLink>
  99. <dp:headerLink>
  100. <dp:hl_attribute name="id">link2</dp:hl_attribute>
  101. </dp:headerLink>
  102. </dp:headerLinks>
  103. <!-- description (hint text) -->
  104. <dp:description>
  105. <xts:string id="FILTER_DATETIME_DESCRIPTION"/>
  106. </dp:description>
  107. </dp:header>
  108. </td>
  109. </tr>
  110. <tr>
  111. <td width="100%" height="100%" valign="top">
  112. <!-- layout -->
  113. <lyt:layout style="2" border="no">
  114. <lyt:section>
  115. <dp:input>
  116. <dp:section1>
  117. <xts:string id="FILTER_ON"/>
  118. </dp:section1>
  119. <dp:section2>
  120. <xsl:attribute name="id">colName</xsl:attribute>
  121. </dp:section2>
  122. </dp:input>
  123. </lyt:section>
  124. <lyt:section>
  125. <qsdlg:promptBox/>
  126. </lyt:section>
  127. </lyt:layout>
  128. <lyt:layout style="1" border="no" joinSection="true">
  129. <lyt:section>
  130. <xsl:variable name="promptShowCondition">
  131. <xsl:choose>
  132. <xsl:when test="/root/system/param[@name='enableFilterNOT']='true'">true</xsl:when>
  133. <xsl:otherwise>false</xsl:otherwise>
  134. </xsl:choose>
  135. </xsl:variable>
  136. <xsl:call-template name="getSelectWithSearch">
  137. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  138. <xsl:with-param name="promptFormName" select="$promptFormName"/>
  139. <xsl:with-param name="promptRequired" select="'false'"/>
  140. <xsl:with-param name="promptMultiSelect" select="'true'"/>
  141. <xsl:with-param name="promptHideAdornments" select="'false'"/>
  142. <xsl:with-param name="promptSubmitType" select="'XML'"/>
  143. <xsl:with-param name="promptParameter" select="'searchEngine'"/>
  144. <xsl:with-param name="promptId" select="'pSearch'"/>
  145. <xsl:with-param name="promptSearchFunction" select="'sendSearchRequest'"/>
  146. <xsl:with-param name="promptShowCondition" select="$promptShowCondition"/>
  147. </xsl:call-template>
  148. <qsdlg:nullOptions/>
  149. <qsdlg:filterBasedOnDSBox/>
  150. </lyt:section>
  151. </lyt:layout>
  152. </td>
  153. </tr>
  154. <tr>
  155. <td width="100%" height="0%">
  156. <!-- Use default buttons [ OK = execute() and CANCEL = hideDialogFrame() ] -->
  157. <qsdlg:defaultButtons/>
  158. </td>
  159. </tr>
  160. <!--dbg:dumpxml select="/"/-->
  161. </table>
  162. </form>
  163. </dp:page>
  164. </xsl:template>
  165. </xsl:stylesheet>
  166. </xts:block>
  167. </xts:morphlet>