condStylesEditBox.xts 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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 resolverBase="prompting" version="1.0" xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/QSRVUITextPL.xml,messages/portal.xml,messages/portalRL.xml" requiredCapability="canUseQueryStudio, canUseQueryStudioAdvancedMode">
  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/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: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: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. <!-- Prompt Control XSL include -->
  33. <xsl:include href="p_include.xsl"/>
  34. <!-- add any theme variables -->
  35. <df:variables/>
  36. <pf:variables/>
  37. <!-- start the output -->
  38. <xsl:template match="/root">
  39. <!--Get HTML output for the HEAD section -->
  40. <xsl:call-template name="getPromptCommonIncludes"/>
  41. <xsl:call-template name="gettextBoxIncludes">
  42. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  43. <xsl:with-param name="promptContentLocale" select="$contentLocale"/>
  44. </xsl:call-template>
  45. <dp:page>
  46. <dp:script>
  47. <link rel="stylesheet" type="text/css" href="{$qsdlgskin}/qs/QSRVDialog.css" />
  48. <script type="text/javascript">
  49. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/layout.js</xsl:attribute>
  50. <xsl:text/>//<xsl:text/>
  51. </script>
  52. <script type="text/javascript">
  53. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/dialogs/filterDialog.js</xsl:attribute>
  54. <xsl:text/>//<xsl:text/>
  55. </script>
  56. <script type="text/javascript">
  57. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/classes/CDialogManager.js</xsl:attribute>
  58. <xsl:text/>//<xsl:text/>
  59. </script>
  60. <script type="text/javascript">
  61. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/classes/CWindowManager.js</xsl:attribute>
  62. <xsl:text/>//<xsl:text/>
  63. </script>
  64. <script type="text/javascript">&lt;!--
  65. var goDialogManager = new CDialogManager();
  66. var cf = getConfigFrame();
  67. var onlyPrompt = false;
  68. var complexFilterType = "editBox";
  69. function cancelDialog()
  70. {
  71. getConfigFrame().hideCModal();
  72. }
  73. function execute()
  74. {
  75. var fct = getConfigFrame().dlgGlobalGetParm("csCALLBACK");
  76. var param = new Array();
  77. for (i = 0; i &lt; multipleTextinputList.m_oLstChoices.options.length; i++) {
  78. var value = multipleTextinputList.m_oLstChoices.options[i].value;
  79. var text = multipleTextinputList.m_oLstChoices.options[i].text;
  80. param[param.length] = new Array(value,text);
  81. }
  82. if (typeof fct == "function") {
  83. fct(param, getNullOption());
  84. }
  85. getConfigFrame().hideCModal();
  86. }
  87. function invokePickDlg(sNullOption)
  88. {
  89. var cf = getConfigFrame();
  90. cf.dlgSetParm("m", "/" + cf.qs_dir + "/condStylesPickList.xts");
  91. <!--
  92. // we disable the Null Option ui for conditional styles.
  93. // it will interfere with Xtab's styling solution
  94. cf.dlgGlobalSetParm('xxIsNullAllowed', true);
  95. cf.dlgGlobalSetParm('xxNullOption', sNullOption);
  96. -->
  97. cf.showModal("<xts:string id="COND_STYLE_PICKLIST_TITLE" encode="javascript"/>", "<xts:string id="CLOSE" encode="javascript"/>",300, 350);
  98. }
  99. function invokeSearchDlg(sNullOption)
  100. {
  101. var cf = getConfigFrame();
  102. cf.dlgSetParm("m", "/" + cf.qs_dir + "/condStylesSearch.xts");
  103. <!--
  104. // we disable the Null Option ui for conditional styles.
  105. // it will interfere with Xtab's styling solution
  106. cf.dlgGlobalSetParm('xxIsNullAllowed', true);
  107. cf.dlgGlobalSetParm('xxNullOption', sNullOption);
  108. -->
  109. cf.showModal("<xts:string id="COND_STYLE_PICKER_SEARCH_TITLE" encode="javascript"/>", "<xts:string id="CLOSE" encode="javascript"/>",575, 425);
  110. }
  111. function init()
  112. {
  113. document.body.className = 'body_dialog_modal';
  114. initNullOptions();
  115. var uv = null; // for use value
  116. var dv = null; // for display value
  117. for (var j = 0; j &lt; cf.dlgGlobalSize("xxPickList"); j++) {
  118. uv = fd_getUseValue(cf.dlgGlobalGetParmAt("xxPickList", j));
  119. dv = fd_getDisplayValue(cf.dlgGlobalGetParmAt("xxPickList", j));
  120. multipleTextinputList.addNoUpdate(dv, uv);
  121. }
  122. multipleTextinputList.update();
  123. cf.dlgGlobalRemoveParm("xxPickListIsLoaded");
  124. textBoxSingleinputList.m_oForm.focus();
  125. }
  126. //--&gt;</script>
  127. </dp:script>
  128. <form class="body_dialog_modal" style="margin:0px" name="f" method="POST" onsubmit="execute();return false;">
  129. <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
  130. <tr>
  131. <td width="100%" height="0%">
  132. <table border="0" width="100%" cellspacing="0" cellpadding="0" style="padding-left:5px;">
  133. <tr>
  134. <td width="10" valign="middle">
  135. <img width="10">
  136. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/common/images/spacer.gif</xsl:attribute>
  137. </img>
  138. </td>
  139. <td align="right" valign="top">
  140. <table border="0" cellpadding="0" cellspacing="0"><tr>
  141. <td valign="top" nowrap="nowrap" class="dialogHeaderLink" align="right">
  142. <a href="javascript:invokePickDlg(getNullOption())">
  143. <xts:string id="FILTER_PICK_VALUES"/>
  144. </a>
  145. </td>
  146. <xsl:if test="/root/env/param[@name='xxIsSearchAllowed'] != 'false'">
  147. <td valign="top" nowrap="nowrap" class="dialogHeaderLink" align="right">
  148. <a href="javascript:invokeSearchDlg(getNullOption())">
  149. <xts:string id="FILTER_SEARCH_FOR_VALUES"/>
  150. </a>
  151. </td>
  152. </xsl:if>
  153. </tr></table>
  154. </td></tr>
  155. </table>
  156. </td>
  157. </tr>
  158. <tr>
  159. <td width="100%" height="100%" valign="top">
  160. <!-- layout -->
  161. <lyt:layout style="1" border="no">
  162. <lyt:section>
  163. <table border="0" width="100%">
  164. <tr>
  165. <td class="formLabel">
  166. <xts:string id="COND_STYLE_NEW_VALUE"/>
  167. </td>
  168. </tr>
  169. <tr>
  170. <td class="formText" width="100%">
  171. <xsl:call-template name="getTextBox">
  172. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  173. <xsl:with-param name="promptFormName" select="$promptFormName"/>
  174. <xsl:with-param name="promptRequired" select="'false'"/>
  175. <xsl:with-param name="promptHideText" select="'false'"/>
  176. <xsl:with-param name="promptParameter" select="'inputList'"/>
  177. <xsl:with-param name="promptId" select="'inputList'"/>
  178. <xsl:with-param name="promptMultiSelect" select="'true'"/>
  179. <xsl:with-param name="promptNumbersOnly" select="'false'"/>
  180. <xsl:with-param name="promptHideAdornments" select="'false'"/>
  181. <xsl:with-param name="promptShowThousandSeparator" select="'false'"/>
  182. <xsl:with-param name="promptMultiLine" select="'false'"/>
  183. <xsl:with-param name="promptRange" select="'false'"/>
  184. </xsl:call-template>
  185. </td>
  186. </tr>
  187. </table>
  188. </lyt:section>
  189. </lyt:layout>
  190. <qsdlg:nullOptions/>
  191. </td>
  192. </tr>
  193. <!-- <dbg:dumpxml select="/"/> -->
  194. </table>
  195. </form>
  196. </dp:page>
  197. </xsl:template>
  198. </xsl:stylesheet>
  199. </xts:block>
  200. </xts:morphlet>