calcNumericMultiple.xts 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537
  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. <!--
  13. Used for sum, product, average, minimum, maximun
  14. -->
  15. <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">
  16. <xts:block id="browserDetection" path="qs/browserDetection.xslt" mode="interpret" type="exec" processor="XSLT" contentId="browserDetection" partId="1"/>
  17. <xts:block id="page" type="exec" mode="output" processor="XSLT" mimeType="text/html" dependency="browserDetection">
  18. <!-- get the debug logic sheet -->
  19. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  20. <!-- get the new theme stuff -->
  21. <!-- apply the following logicsheets in order -->
  22. <xts:logicsheet path="qs/logicsheets/calc_theme.xsl"/>
  23. <xts:logicsheet path="logicsheets/portal.xsl"/>
  24. <xts:logicsheet path="qs/logicsheets/dialogs.xsl"/>
  25. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  26. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  27. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  28. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  29. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  30. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  31. <!-- apply the form logic -->
  32. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  33. <xsl:stylesheet version="1.0"
  34. xmlns:clcdlg="test_calculationDlg"
  35. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  36. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  37. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  38. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  39. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  40. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  41. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  42. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  43. xmlns:dbg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/debug/"
  44. xmlns:qsdlg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/qs/dialog/"
  45. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  46. exclude-result-prefixes="clcdlg xsl xts lyt pf dp df cp cf dbg qsdlg xtsext">
  47. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  48. <!-- Default variables (like skin) and prompt variables -->
  49. <qsdlg:variables/>
  50. <qsdlg:promptVariables/>
  51. <!-- Prompt Control XSL include -->
  52. <xsl:include href="p_include.xsl"/>
  53. <!-- add any theme variables -->
  54. <df:variables/>
  55. <pf:variables/>
  56. <!-- start the output -->
  57. <xsl:template match="/root">
  58. <dp:page>
  59. <dp:script>
  60. <xsl:call-template name="getPromptCommonIncludes"/>
  61. <xsl:call-template name="gettextBoxIncludes">
  62. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  63. <xsl:with-param name="promptContentLocale" select="$contentLocale"/>
  64. </xsl:call-template>
  65. <xsl:call-template name="getintervalFieldIncludes">
  66. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  67. <xsl:with-param name="promptContentLocale" select="$contentLocale"/>
  68. </xsl:call-template>
  69. <link href="{$qsdlgskin}/qs/QSRVDialog.css" type="text/css" rel="stylesheet"/>
  70. <script type="text/javascript">
  71. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/layout.js</xsl:attribute>
  72. <xsl:text/>//<xsl:text/>
  73. </script>
  74. <script type="text/javascript">
  75. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/rv/cvConstants.js</xsl:attribute>
  76. <xsl:text/>//<xsl:text/>
  77. </script>
  78. <script type="text/javascript">
  79. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/rv/common.js</xsl:attribute><xsl:text/>//<xsl:text/>
  80. </script>
  81. <script type="text/javascript">
  82. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/rv/cvui.js</xsl:attribute>
  83. <xsl:text/>//<xsl:text/>
  84. </script>
  85. <script type="text/javascript">
  86. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/common/framework/notification/CObserver.js</xsl:attribute>
  87. <xsl:text/>//<xsl:text/>
  88. </script>
  89. <script type="text/javascript">
  90. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/classes/CDialogManager.js</xsl:attribute>
  91. <xsl:text/>//<xsl:text/>
  92. </script>
  93. <script type="text/javascript">
  94. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/classes/CWindowManager.js</xsl:attribute>
  95. <xsl:text/>//<xsl:text/>
  96. </script>
  97. <script type="text/javascript">
  98. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/selectColumn.js</xsl:attribute>
  99. <xsl:text/>//<xsl:text/>
  100. </script>
  101. <script type="text/javascript">
  102. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/calcNumericMultiple.js</xsl:attribute>
  103. <xsl:text/>//<xsl:text/>
  104. </script>
  105. <script type="text/javascript">&lt;!--
  106. var goDialogManager = new CDialogManager();
  107. <clcdlg:jvs/>
  108. var expression = new Array();
  109. var calcParentIds = new Array();
  110. var calculatedExpression = new Array();
  111. var detailAggs = new Array();
  112. var cf = getConfigFrame();
  113. var calcType = cf.dlgGlobalGetParm('xxCalcType');
  114. var substVarValue = null;
  115. function generateName ()
  116. {
  117. var calcName = "";
  118. var ii;
  119. var selCount = expression.length;
  120. var calc = document.f.calcList.options[document.f.calcList.selectedIndex].value;
  121. if (calc == "+")
  122. calcName = "<xts:string id="CALCULATION_SUM_EQUATION" encode="javascript"/>";
  123. else if (calc == "*")
  124. calcName = "<xts:string id="CALCULATION_PROD_EQUATION" encode="javascript"/>";
  125. else if (calc == "average")
  126. calcName = "<xts:string id="CALCULATION_AVG_EQUATION" encode="javascript"/>";
  127. else if (calc == "maximum")
  128. calcName = "<xts:string id="CALCULATION_MAX_EQUATION" encode="javascript"/>";
  129. else
  130. calcName = "<xts:string id="CALCULATION_MIN_EQUATION" encode="javascript"/>";
  131. for (ii = 0; ii &lt; (selCount - 1); ii++)
  132. {
  133. if (selCount > 1)
  134. {
  135. if (calc == "+")
  136. calcName = stringReplace (calcName, "\\^0", document.f.repSel.options[ii].text + "<xts:string id="CALCULATION_SUM_SEPARATOR" encode="javascript"/>^0");
  137. else if (calc == "*")
  138. calcName = stringReplace (calcName, "\\^0", document.f.repSel.options[ii].text + "<xts:string id="CALCULATION_PROD_SEPARATOR" encode="javascript"/>^0");
  139. else
  140. calcName = stringReplace (calcName, "\\^0", document.f.repSel.options[ii].text + "<xts:string id="CALCULATION_AVG_MAX_MIN_SEPARATOR" encode="javascript"/>^0");
  141. }
  142. }
  143. if (document.f.numberCheck.checked)
  144. {
  145. var calcNum = 0;
  146. if (calcType == 'interval')
  147. {
  148. if (!document.f.inputValueRadio || (document.f.inputValueRadio[0].checked || (document.f.inputValueRadio[1].checked &amp;&amp; substVarValue == null)))
  149. {
  150. if (intervalControlintervalFrom.isValid())
  151. calcNum = intervalControlintervalFrom.sGetFormatValue();
  152. }
  153. else
  154. calcNum = textBoxstringValue.m_oForm.value;
  155. }
  156. else
  157. {
  158. if (document.getElementById("textBoxNumeric").style.display != "none")
  159. var textBoxValue = textBoxnumberValue;
  160. else
  161. var textBoxValue = textBoxstringValue;
  162. if (textBoxValue.isValid())
  163. {
  164. if (textBoxValue.m_oForm.value == "")
  165. {
  166. if (calc == "*")
  167. calcNum = 1;
  168. }
  169. else
  170. calcNum = textBoxValue.sGetFormatValue();
  171. }
  172. else
  173. calcNum = textBoxValue.m_oForm.value;
  174. }
  175. if (calc == "+")
  176. calcName = stringReplace (calcName, "\\^0", document.f.repSel.options[document.f.repSel.options.length - 1].text + "<xts:string id="CALCULATION_SUM_SEPARATOR" encode="javascript"/>" + calcNum);
  177. else if (calc == "*")
  178. calcName = stringReplace (calcName, "\\^0", document.f.repSel.options[document.f.repSel.options.length - 1].text + "<xts:string id="CALCULATION_PROD_SEPARATOR" encode="javascript"/>" + calcNum);
  179. else
  180. calcName = stringReplace (calcName, "\\^0", document.f.repSel.options[document.f.repSel.options.length - 1].text + "<xts:string id="CALCULATION_AVG_MAX_MIN_SEPARATOR" encode="javascript"/>" + calcNum);
  181. }
  182. else
  183. calcName = stringReplace (calcName, "\\^0", document.f.repSel.options[document.f.repSel.options.length - 1].text);
  184. return calcName;
  185. }
  186. function minmax(op, constantVal)
  187. {
  188. var prevExpr = "^^^0^^^"; // at least one expression
  189. var ii, calcExpr;
  190. var selCount = expression.length;
  191. for (ii=1; ii &lt; selCount; ii++)
  192. {
  193. calcExpr = 'if ((^^^' + ii + '^^^) ' + op + ' (' + prevExpr + ')) then (^^^' + ii + '^^^) else (' + prevExpr + ')';
  194. prevExpr = calcExpr;
  195. }
  196. if (document.f.numberCheck.checked)
  197. calcExpr = 'if ((' + constantVal + ') ' + op + ' (' + prevExpr + ')) then (' + constantVal + ') else (' + prevExpr + ')';
  198. return calcExpr;
  199. }
  200. function init()
  201. {
  202. attachMouseEvents();
  203. for (var i = 0; i &lt; cf.dlgGlobalSize('xxCalcParentIds'); i++)
  204. {
  205. var id = cf.dlgGlobalGetParmAt('xxCalcParentIds', i);
  206. calcParentIds[i] = id[0];
  207. }
  208. for (var i = 0; i &lt; cf.dlgGlobalSize('xxColInfo'); i++)
  209. {
  210. var colInfo = cf.dlgGlobalGetParmAt('xxColInfo', i);
  211. expression[i] = colInfo[1];
  212. document.f.repSel.options[document.f.repSel.options.length] = new Option(colInfo[0], i);
  213. }
  214. for (var i = 0; i &lt; cf.dlgGlobalSize('xxSummExpr'); i++)
  215. {
  216. var summ = cf.dlgGlobalGetParmAt('xxSummExpr', i);
  217. detailAggs[i] = summ[0];
  218. calculatedExpression[i] = summ[1];
  219. }
  220. var validCalcs = new Array();
  221. for (var i = 0; i &lt; cf.dlgGlobalSize('xxValidCalcItem'); i++)
  222. validCalcs[validCalcs.length] = cf.dlgGlobalGetParmAt('xxValidCalcItem',i);
  223. if (calcType == 'interval')
  224. populateCalculationList(calcType, validCalcs);
  225. else if (cf.dlgGlobalGetParm('xxDialogType') == 'CALCULATION_SUM' || cf.dlgGlobalGetParm('xxDialogType') == 'CALCULATION_PRODUCT')
  226. populateCalculationList(calcType, validCalcs, "arithmetic");
  227. else
  228. populateCalculationList(calcType, validCalcs, "analytic");
  229. // select calculation
  230. document.f.calcList.selectedIndex = cf.dlgGlobalGetParm('xxCalcTypeIdx');
  231. if (calcType != 'interval')
  232. document.f.calcNumberList.selectedIndex = cf.dlgGlobalGetParm('xxCalcSubTypeIdx');
  233. // disable checkbox if only 1 selected column
  234. if (cf.dlgGlobalSize('xxColInfo') == 1)
  235. document.f.numberCheck.setAttribute("disabled","true");
  236. // check number checkbox if only one column selected
  237. document.f.numberCheck.checked = (cf.dlgGlobalSize('xxColInfo') == 1 ? true : false);
  238. <xsl:choose>
  239. <xsl:when test="/root/env/param[@name='xxCalcType']='interval' and /root/env/param[@name='xxSubstVar']='true'">
  240. setInterval(loadHint, 100);
  241. </xsl:when>
  242. <xsl:otherwise>
  243. loadHint();
  244. </xsl:otherwise>
  245. </xsl:choose>
  246. setGlobals(calcType, false);
  247. addInsert();
  248. if (calcType != 'interval')
  249. {
  250. <xsl:choose>
  251. <xsl:when test="/root/browserInfo/isNS6='true'">
  252. textBoxnumberValue.m_oForm.addEventListener("keydown", redrawHint, true);
  253. </xsl:when>
  254. <xsl:otherwise>
  255. textBoxnumberValue.m_oForm.attachEvent("onkeydown", redrawHint);
  256. </xsl:otherwise>
  257. </xsl:choose>
  258. textBoxnumberValue.m_oForm.focus();
  259. }
  260. var oIntervalFrom = [document.f.intervalDaysintervalFrom, document.f.intervalHoursintervalFrom, document.f.intervalMinutesintervalFrom, document.f.intervalSecondsintervalFrom];
  261. if (oIntervalFrom.length > 0)
  262. {
  263. if (oIntervalFrom[0])
  264. {
  265. oIntervalFrom[0].value = "<xts:string id="FILTER_INTERVAL_DEFAULT_VALUE" encode="javascript"/>";
  266. oIntervalFrom[0].onclick = topGotFocus;
  267. oIntervalFrom[0].onkeypress = topGotFocus;
  268. oIntervalFrom[0].onpaste = topGotFocus;
  269. oIntervalFrom[0].onblur = topGotFocus;
  270. }
  271. if (oIntervalFrom[1])
  272. {
  273. oIntervalFrom[1].value = "<xts:string id="FILTER_INTERVAL_DEFAULT_VALUE" encode="javascript"/>";
  274. oIntervalFrom[1].onclick = topGotFocus;
  275. oIntervalFrom[1].onkeypress = topGotFocus;
  276. oIntervalFrom[1].onpaste = topGotFocus;
  277. oIntervalFrom[1].onblur = topGotFocus;
  278. }
  279. if (oIntervalFrom[2])
  280. {
  281. oIntervalFrom[2].value = "<xts:string id="FILTER_INTERVAL_DEFAULT_VALUE" encode="javascript"/>";
  282. oIntervalFrom[2].onclick = topGotFocus;
  283. oIntervalFrom[2].onkeypress = topGotFocus;
  284. oIntervalFrom[2].onpaste = topGotFocus;
  285. oIntervalFrom[2].onblur = topGotFocus;
  286. }
  287. if (oIntervalFrom[3])
  288. {
  289. oIntervalFrom[3].value = "<xts:string id="FILTER_INTERVAL_DEFAULT_VALUE" encode="javascript"/>";
  290. oIntervalFrom[3].onclick = topGotFocus;
  291. oIntervalFrom[3].onkeypress = topGotFocus;
  292. oIntervalFrom[3].onpaste = topGotFocus;
  293. oIntervalFrom[3].onblur = topGotFocus;
  294. }
  295. }
  296. <xsl:if test="/root/env/param[@name='xxSubstVar']='true'">
  297. <xsl:choose>
  298. <xsl:when test="not(/root/env/param[@name='xxCalcType']='interval')">
  299. <clcdlg:subst_var numeric="true"/>
  300. </xsl:when>
  301. <xsl:otherwise>
  302. <clcdlg:subst_var/>
  303. </xsl:otherwise>
  304. </xsl:choose>
  305. <xsl:choose>
  306. <xsl:when test="/root/browserInfo/isNS6='true'">
  307. textBoxstringValue.m_oForm.addEventListener("change", redrawHint, true);
  308. </xsl:when>
  309. <xsl:otherwise>
  310. textBoxstringValue.m_oForm.attachEvent("onchange", redrawHint);
  311. </xsl:otherwise>
  312. </xsl:choose>
  313. <xsl:if test="not(/root/env/param[@name='xxCalcType']='interval')">
  314. //hide the second input field
  315. document.getElementById("textBoxString").style.display = "none";
  316. </xsl:if>
  317. </xsl:if>
  318. checkOverflowOnSelect(document.f.repSel);
  319. }
  320. function redrawHint()
  321. {
  322. setTimeout(loadHint, 10);
  323. }
  324. function setTextBoxFocus()
  325. {
  326. // textbox does not exist in case of interval... so set function to do nothing.
  327. if (calcType != 'interval')
  328. document.f._textEditBoxnumberValue.focus();
  329. }
  330. function topGotFocus()
  331. {
  332. document.f.numberCheck.checked=true;
  333. onSelOperation();
  334. }
  335. //--&gt;</script>
  336. </dp:script>
  337. <form style="margin:0px" name="f" method="POST" onsubmit="execute();return false;">
  338. <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
  339. <tr>
  340. <td width="100%" height="0%">
  341. <!-- dialog header -->
  342. <clcdlg:basic_header/>
  343. </td>
  344. </tr>
  345. <tr>
  346. <td width="100%" height="100%" valign="top">
  347. <lyt:layout style="2" border="no">
  348. <lyt:section>
  349. <xsl:if test="/root/env/param[@name='xxCalcType']!='interval'">
  350. <clcdlg:calculationsType/>
  351. </xsl:if>
  352. <clcdlg:calculations/>
  353. <dp:input>
  354. <dp:section1>
  355. <xts:string id="CALCULATION_SEL_REP_ITEMS"/>
  356. </dp:section1>
  357. <dp:section2>
  358. <select name="repSel" size="6" style="width:260px"/>
  359. </dp:section2>
  360. </dp:input>
  361. </lyt:section>
  362. <lyt:section>
  363. <clcdlg:calc_hint/>
  364. </lyt:section>
  365. </lyt:layout>
  366. <lyt:layout style="2">
  367. <lyt:section>
  368. <table>
  369. <xsl:if test="/root/env/param[@name='xxCalcType']='interval' and /root/env/param[@name='xxSubstVar']='true'">
  370. <tr>
  371. <td nowrap="nowrap">
  372. <input type="checkbox" name="numberCheck" onClick="javascript:onSelOperation();"/>
  373. </td>
  374. <td class="formLabel">
  375. <xts:string id="CALCULATION_VALUE"/>
  376. </td>
  377. </tr>
  378. </xsl:if>
  379. <tr>
  380. <td nowrap="nowrap" valign="middle">
  381. <xsl:if test="not(/root/env/param[@name='xxCalcType']='interval' and /root/env/param[@name='xxSubstVar']='true')">
  382. <input type="checkbox" name="numberCheck" onClick="javascript:onSelOperation();"/>
  383. </xsl:if>
  384. </td>
  385. <xsl:if test="not(/root/env/param[@name='xxCalcType']='interval' and /root/env/param[@name='xxSubstVar']='true')">
  386. <td class="formText" nowrap="nowrap" valign="middle">
  387. <xsl:choose>
  388. <xsl:when test="/root/env/param[@name='xxCalcType']='interval'">
  389. <xts:string id="CALCULATION_INTERVAL"/>
  390. </xsl:when>
  391. <xsl:when test="/root/env/param[@name='xxSubstVar']='true'">
  392. <xts:string id="CALCULATION_VALUE"/>
  393. </xsl:when>
  394. <xsl:otherwise>
  395. <xts:string id="CALCULATION_NUMBER"/>
  396. </xsl:otherwise>
  397. </xsl:choose>
  398. </td>
  399. </xsl:if>
  400. <xsl:choose>
  401. <xsl:when test="/root/env/param[@name='xxCalcType']='interval'">
  402. <xsl:if test="/root/env/param[@name='xxSubstVar']='true'">
  403. <td>
  404. <input type="radio" name="inputValueRadio" checked="true"/>
  405. </td>
  406. </xsl:if>
  407. <td>
  408. <xsl:call-template name="getSelectInterval">
  409. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  410. <xsl:with-param name="promptFormName" select="$promptFormName"/>
  411. <xsl:with-param name="promptRequired" select="'false'"/>
  412. <xsl:with-param name="promptDefaultValue" select="''"/>
  413. <xsl:with-param name="suppressDisabled" select="'true'"/>
  414. <xsl:with-param name="promptShowSeconds" select="'true'"/>
  415. <xsl:with-param name="promptId" select="'intervalFrom'"/>
  416. <xsl:with-param name="promptParameter" select="'intervalparameter1'"/>
  417. </xsl:call-template>
  418. </td>
  419. <xsl:if test="/root/env/param[@name='xxSubstVar']='true'">
  420. <tr>
  421. <td>
  422. </td>
  423. <td>
  424. <input type="radio" name="inputValueRadio"/>
  425. </td>
  426. <td>
  427. <table>
  428. <tr>
  429. <td valign="bottom">
  430. <xsl:call-template name="getTextBox">
  431. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  432. <xsl:with-param name="promptFormName" select="$promptFormName"/>
  433. <xsl:with-param name="promptRequired" select="'false'"/>
  434. <xsl:with-param name="promptId" select="'stringValue'"/>
  435. <xsl:with-param name="promptHideText" select="'false'"/>
  436. <xsl:with-param name="promptMultiLine" select="'false'"/>
  437. <xsl:with-param name="promptParameter" select="'stringParam1'"/>
  438. <xsl:with-param name="promptReadOnly" select="'true'"/>
  439. </xsl:call-template>
  440. </td>
  441. <td id="buttonContainer"/>
  442. </tr>
  443. </table>
  444. </td>
  445. </tr>
  446. </xsl:if>
  447. </xsl:when>
  448. <xsl:otherwise>
  449. <td id="textBoxNumeric" valign="bottom">
  450. <xsl:call-template name="getTextBox">
  451. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  452. <xsl:with-param name="promptFormName" select="$promptFormName"/>
  453. <xsl:with-param name="promptRequired" select="'false'"/>
  454. <xsl:with-param name="promptId" select="'numberValue'"/>
  455. <xsl:with-param name="promptHideText" select="'false'"/>
  456. <xsl:with-param name="promptMultiLine" select="'false'"/>
  457. <xsl:with-param name="promptParameter" select="'numberParam'"/>
  458. <xsl:with-param name="promptDataType" select="'number'"/>
  459. <xsl:with-param name="promptMaxLength" select="'15'"/>
  460. </xsl:call-template>
  461. </td>
  462. <xsl:if test="/root/env/param[@name='xxSubstVar']='true'">
  463. <td id="textBoxString" valign="bottom">
  464. <xsl:call-template name="getTextBox">
  465. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  466. <xsl:with-param name="promptFormName" select="$promptFormName"/>
  467. <xsl:with-param name="promptRequired" select="'false'"/>
  468. <xsl:with-param name="promptId" select="'stringValue'"/>
  469. <xsl:with-param name="promptHideText" select="'false'"/>
  470. <xsl:with-param name="promptMultiLine" select="'false'"/>
  471. <xsl:with-param name="promptParameter" select="'numberParam2'"/>
  472. <xsl:with-param name="promptReadOnly" select="'true'"/>
  473. </xsl:call-template>
  474. </td>
  475. <td id="buttonContainer"/>
  476. </xsl:if>
  477. </xsl:otherwise>
  478. </xsl:choose>
  479. </tr>
  480. </table>
  481. </lyt:section>
  482. </lyt:layout>
  483. </td>
  484. </tr>
  485. <tr>
  486. <td width="100%" height="0%">
  487. <!-- Use default buttons [ OK = execute() and CANCEL = hideDialogFrame() ] -->
  488. <clcdlg:buttons/>
  489. </td>
  490. </tr>
  491. <!-- <dbg:dumpxml select="/"/> -->
  492. </table>
  493. </form>
  494. </dp:page>
  495. </xsl:template>
  496. </xsl:stylesheet>
  497. </xts:block>
  498. </xts:morphlet>