calcConcat.xts 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535
  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 concatenation
  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. <link href="{$qsdlgskin}/qs/QSRVDialog.css" type="text/css" rel="stylesheet"/>
  66. <script type="text/javascript">
  67. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/layout.js</xsl:attribute>
  68. <xsl:text/>//<xsl:text/>
  69. </script>
  70. <script type="text/javascript">
  71. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/dialogs/concatDlg.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>
  80. <xsl:text/>//<xsl:text/>
  81. </script>
  82. <script type="text/javascript">
  83. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/rv/cvui.js</xsl:attribute>
  84. <xsl:text/>//<xsl:text/>
  85. </script>
  86. <script type="text/javascript">
  87. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/common/framework/notification/CObserver.js</xsl:attribute>
  88. <xsl:text/>//<xsl:text/>
  89. </script>
  90. <script type="text/javascript">
  91. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/classes/CDialogManager.js</xsl:attribute>
  92. <xsl:text/>//<xsl:text/>
  93. </script>
  94. <script type="text/javascript">
  95. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/classes/CWindowManager.js</xsl:attribute>
  96. <xsl:text/>//<xsl:text/>
  97. </script>
  98. <script type="text/javascript">&lt;!--
  99. var goDialogManager = new CDialogManager();
  100. <clcdlg:jvs/>
  101. var cf = getConfigFrame();
  102. var calcType = cf.dlgGlobalGetParm('xxCalcType');
  103. var substVarValuePreceding = '';
  104. var substVarValueFollowing = '';
  105. var substVarValueMiddle = '';
  106. function execute()
  107. {
  108. var calcOp = "";
  109. var calcFormat = "none";
  110. var before_col_id = cf.dlgGlobalGetParm('xxInsBeforeColid');
  111. switch (calcType)
  112. {
  113. case "number":
  114. calcOp = "concatNumber";
  115. break;
  116. case "datetime":
  117. calcOp = "concatDatetime";
  118. break;
  119. case "string":
  120. calcOp = "concatString";
  121. break;
  122. case "interval":
  123. calcOp = "concatInterval";
  124. break;
  125. default:
  126. calcOp = "concatDefault";
  127. break;
  128. }
  129. var sCalcExpr = generateText(goDialogManager.getMiniQueryManager().getListSeparator());
  130. if (sCalcExpr !== "")
  131. {
  132. var calcName = getCalcName();
  133. getConfigFrame().addCalcColumn(before_col_id, sCalcExpr, sCalcExpr, calcName, "none", calcOp, "none", calcFormat, 62, 7, "none", -1, "none"); //calcBy,calcBase="none",calculationType=62,usage=7,regularAgg="none",promptType=-1,detailAgg="none"
  134. }
  135. }
  136. function generateName (withQuotes)
  137. {
  138. var first = "";
  139. var second = "";
  140. var middle = "";
  141. var calcName = document.f.repSel.options[0].text;
  142. if (document.f.preceding.checked)
  143. {
  144. if (document.getElementById("textBoxString1").style.display != "none")
  145. first = document.f.firsttext.value;
  146. else
  147. first = textBoxstringPrecedingValue.m_oForm.value;
  148. }
  149. if (document.f.following.checked)
  150. {
  151. if (document.getElementById("textBoxString2").style.display != "none")
  152. second = document.f.secondtext.value;
  153. else
  154. second = textBoxstringFollowingValue.m_oForm.value;
  155. }
  156. if (document.f.middletext &amp;&amp; document.f.middle[1].checked == true)
  157. middle = " ";
  158. else if (document.f.middletext &amp;&amp; document.f.middle[2].checked == true)
  159. {
  160. if (document.getElementById("textBoxString3").style.display != "none")
  161. middle = document.f.middletext.value;
  162. else
  163. middle = textBoxstringMiddleValue.m_oForm.value;
  164. }
  165. for (var i = 1; i &lt; document.f.repSel.options.length; i++)
  166. calcName += middle + document.f.repSel.options[i].text;
  167. if (first != "")
  168. calcName = first + calcName;
  169. if (second != "")
  170. calcName += second;
  171. return calcName;
  172. }
  173. function updateValueFieldConcat(field, regularInput, constInput, substString, substValue)
  174. {
  175. if (substString == null)
  176. {
  177. if (document.getElementById("textBox" + field).style.display != "none")
  178. regularInput.select();
  179. else
  180. {
  181. constInput.clear();
  182. document.getElementById("textBox" + field + "Constant").style.display = "none";
  183. if (document.all)
  184. document.getElementById("textBox" + field).style.display = "inline";
  185. else
  186. document.getElementById("textBox" + field).style.display = "table-cell";
  187. regularInput.select();
  188. onSelOperation();
  189. }
  190. }
  191. else
  192. {
  193. regularInput.value="";
  194. document.getElementById("textBox" + field).style.display="none";
  195. if (document.all)
  196. document.getElementById("textBox" + field + "Constant").style.display="inline";
  197. else
  198. document.getElementById("textBox" + field + "Constant").style.display="table-cell";
  199. constInput.m_oForm.value = substString;
  200. if (field == "String1")
  201. {
  202. substVarValuePreceding = substValue;
  203. topTextGotFocus()
  204. }
  205. else if (field == "String2")
  206. {
  207. substVarValueFollowing = substValue;
  208. bottomTextGotFocus()
  209. }
  210. else
  211. {
  212. substVarValueMiddle = substValue;
  213. middleTextGotFocus()
  214. }
  215. }
  216. }
  217. function init()
  218. {
  219. attachMouseEvents();
  220. for (var i = 0; i &lt; cf.dlgGlobalSize('xxColInfo'); i++)
  221. {
  222. var label = cf.dlgGlobalGetParmAt('xxColInfo', i);
  223. document.f.repSel.options[document.f.repSel.options.length] = new Option(label[0], label[1]);
  224. }
  225. var validCalcs = new Array();
  226. if (cf.dlgGlobalSize('xxColInfo') > 1)
  227. document.getElementById("displaySpacing").style.visibility = "visible";
  228. for (var i = 0; i &lt; cf.dlgGlobalSize('xxValidCalcItem'); i++)
  229. validCalcs[validCalcs.length] = cf.dlgGlobalGetParmAt('xxValidCalcItem', i);
  230. populateCalculationList(calcType, validCalcs, "text");
  231. // select calculation
  232. document.f.calcList.selectedIndex = cf.dlgGlobalGetParm('xxCalcTypeIdx');
  233. if (cf.dlgGlobalGetParm('xxCalcSubTypeIdx') != null)
  234. document.f.calcNumberList.selectedIndex = cf.dlgGlobalGetParm('xxCalcSubTypeIdx');
  235. loadHint();
  236. addInsert();
  237. setGlobals(calcType, false);
  238. document.f.firsttext.focus();
  239. <xsl:if test="/root/env/param[@name='xxSubstVar']='true'">
  240. //draw the first substitution variable button for the "preceding" field
  241. var buttonContainerStyle = new CUIStyle('mainHeader3', '', '', '', '');
  242. var buttonStyle = new CUIStyle('dialogButton', 'dialogButtonOver', '', '', '');
  243. var menuItemStyle = new CUIStyle('menuItem_normal', 'menuItem_hover', '', '', 'menuItem_disabled');
  244. var menuStyle = new CUIStyle('clsMenu', '', '', '', '');
  245. var substButtonContainer = new CBar('buttonContainer1', buttonContainerStyle, null, '<xsl:value-of select="$webRoot"/>/common/images/toolbar/');
  246. var bHideMenuButton = true;
  247. var substButton = new CToolbarButton(substButtonContainer, '', '<xsl:value-of select="$webRoot"/>/qs/images/substitution_variables.gif', '', buttonStyle, true, null, null, '<xsl:value-of select="$webRoot"/>');
  248. var substButtonDropDown = substButton.createDropDownMenu(menuStyle);
  249. new CMenuItem(substButtonDropDown, "<xts:string id="CALCULATION_STRING_SUBST_VAR" encode="javascript"/>", 'javascript:updateValueFieldConcat("String1", document.f.firsttext, textBoxstringPrecedingValue, null, null);', '', menuItemStyle, '<xsl:value-of select="$webRoot"/>', '<xsl:value-of select="$skin_root"/>');
  250. var numConstants = cf.dlgGlobalSize("xxSubstVarPair");
  251. for (var i = 0; i &lt; numConstants; i++)
  252. {
  253. var substVarPair = cf.dlgGlobalGetParmAt('xxSubstVarPair', i)
  254. new CMenuItem(substButtonDropDown, substVarPair[0], 'javascript:updateValueFieldConcat("String1", document.f.firsttext, textBoxstringPrecedingValue, "' + substVarPair[0] + '", "' + substVarPair[1] + '");', '', menuItemStyle, '<xsl:value-of select="$webRoot"/>', '<xsl:value-of select="$skin_root"/>');
  255. }
  256. substButtonContainer.setMenuType(cHorizonalBar);
  257. substButtonContainer.setAlign('left');
  258. substButtonContainer.draw();
  259. //draw the second substitution variable button for the "following" field
  260. substButtonContainer = new CBar('buttonContainer2', buttonContainerStyle, null, '<xsl:value-of select="$webRoot"/>/common/images/toolbar/');
  261. substButton = new CToolbarButton(substButtonContainer, '', '<xsl:value-of select="$webRoot"/>/qs/images/substitution_variables.gif', '', buttonStyle, true, null, null, '<xsl:value-of select="$webRoot"/>');
  262. substButtonDropDown = substButton.createDropDownMenu(menuStyle);
  263. new CMenuItem(substButtonDropDown, "<xts:string id="CALCULATION_STRING_SUBST_VAR" encode="javascript"/>", 'javascript:updateValueFieldConcat("String2", document.f.secondtext, textBoxstringFollowingValue, null, null);', '', menuItemStyle, '<xsl:value-of select="$webRoot"/>', '<xsl:value-of select="$skin_root"/>');
  264. for (var i = 0; i &lt; numConstants; i++)
  265. {
  266. var substVarPair = cf.dlgGlobalGetParmAt('xxSubstVarPair', i)
  267. new CMenuItem(substButtonDropDown, substVarPair[0], 'javascript:updateValueFieldConcat("String2", document.f.secondtext, textBoxstringFollowingValue, "' + substVarPair[0] + '", "' + substVarPair[1] + '");', '', menuItemStyle, '<xsl:value-of select="$webRoot"/>', '<xsl:value-of select="$skin_root"/>');
  268. }
  269. substButtonContainer.setMenuType(cHorizonalBar);
  270. substButtonContainer.setAlign('left');
  271. substButtonContainer.draw();
  272. //draw the third substitution variable button for the "middle" field
  273. substButtonContainer = new CBar('buttonContainer3', buttonContainerStyle, null, '<xsl:value-of select="$webRoot"/>/common/images/toolbar/');
  274. substButton = new CToolbarButton(substButtonContainer, '', '<xsl:value-of select="$webRoot"/>/qs/images/substitution_variables.gif', '', buttonStyle, true, null, null, '<xsl:value-of select="$webRoot"/>');
  275. substButtonDropDown = substButton.createDropDownMenu(menuStyle);
  276. new CMenuItem(substButtonDropDown, "<xts:string id="CALCULATION_STRING_SUBST_VAR" encode="javascript"/>", 'javascript:updateValueFieldConcat("String3", document.f.middletext, textBoxstringMiddleValue, null, null);', '', menuItemStyle, '<xsl:value-of select="$webRoot"/>', '<xsl:value-of select="$skin_root"/>');
  277. for (var i = 0; i &lt; numConstants; i++)
  278. {
  279. var substVarPair = cf.dlgGlobalGetParmAt('xxSubstVarPair', i)
  280. new CMenuItem(substButtonDropDown, substVarPair[0], 'javascript:updateValueFieldConcat("String3", document.f.middletext, textBoxstringMiddleValue, "' + substVarPair[0] + '", "' + substVarPair[1] + '");', '', menuItemStyle, '<xsl:value-of select="$webRoot"/>', '<xsl:value-of select="$skin_root"/>');
  281. }
  282. substButtonContainer.setMenuType(cHorizonalBar);
  283. substButtonContainer.setAlign('left');
  284. substButtonContainer.draw();
  285. //hide the input field for the substitution variable constants
  286. document.getElementById("textBoxString1Constant").style.display = "none";
  287. document.getElementById("textBoxString2Constant").style.display = "none";
  288. document.getElementById("textBoxString3Constant").style.display = "none";
  289. <xsl:choose>
  290. <xsl:when test="/root/browserInfo/isNS6='true'">
  291. textBoxstringPrecedingValue.m_oForm.addEventListener("change", topTextGotFocus, true);
  292. textBoxstringFollowingValue.m_oForm.addEventListener("change", bottomTextGotFocus, true);
  293. textBoxstringMiddleValue.m_oForm.addEventListener("change", middleTextGotFocus, true);
  294. </xsl:when>
  295. <xsl:otherwise>
  296. textBoxstringPrecedingValue.m_oForm.attachEvent("onchange", topTextGotFocus);
  297. textBoxstringFollowingValue.m_oForm.attachEvent("onchange", bottomTextGotFocus);
  298. textBoxstringMiddleValue.m_oForm.attachEvent("onchange", middleTextGotFocus);
  299. </xsl:otherwise>
  300. </xsl:choose>
  301. </xsl:if>
  302. checkOverflowOnSelect(document.f.repSel);
  303. }
  304. function topTextGotFocus()
  305. {
  306. document.f.preceding.checked=true;
  307. onSelOperation();
  308. }
  309. function bottomTextGotFocus()
  310. {
  311. document.f.following.checked=true;
  312. onSelOperation();
  313. }
  314. function middleTextGotFocus()
  315. {
  316. document.f.middle[2].checked=true;
  317. onSelOperation();
  318. }
  319. //--&gt;</script>
  320. </dp:script>
  321. <form style="margin:0px" name="f" method="POST" onsubmit="execute();return false;">
  322. <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
  323. <tr>
  324. <td width="100%" height="0%">
  325. <!-- dialog header -->
  326. <clcdlg:basic_header/>
  327. </td>
  328. </tr>
  329. <tr>
  330. <td width="100%" height="100%" valign="top">
  331. <lyt:layout style="2" border="no">
  332. <lyt:section>
  333. <xsl:if test="/root/env/param[@name='xxCalcType']='number'">
  334. <clcdlg:calculationsType/>
  335. </xsl:if>
  336. <clcdlg:calculations/>
  337. <dp:input>
  338. <dp:section1>
  339. <xts:string id="CALCULATION_SEL_REP_ITEMS"/>
  340. </dp:section1>
  341. <dp:section2>
  342. <select name="repSel" size="6" style="width:260"/>
  343. </dp:section2>
  344. </dp:input>
  345. <dp:input>
  346. <dp:section1/>
  347. <dp:section2>
  348. <dp:choice>
  349. <dp:section1>
  350. <input type="checkbox" name="preceding" onClick="javascript:onSelOperation();">
  351. <xts:string id="CALCULATION_PRECEDING_TEXT"/>
  352. </input>
  353. </dp:section1>
  354. <dp:section2>
  355. <table>
  356. <tr>
  357. <td id="textBoxString1" valign="bottom">
  358. <input type="text" name="firsttext" onClick="javascript:topTextGotFocus();" onKeyDown="setTimeout(topTextGotFocus, 10);">
  359. <xsl:if test="/root/system/param[@name='disableEnterKeyAutoSubmit'] != 'true'">
  360. <xsl:attribute name="onKeyUp">javascript:if (event.keyCode == 13) execute();</xsl:attribute>
  361. </xsl:if>
  362. </input>
  363. </td>
  364. <xsl:if test="/root/env/param[@name='xxSubstVar']='true'">
  365. <td id="textBoxString1Constant" valign="bottom">
  366. <xsl:call-template name="getTextBox">
  367. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  368. <xsl:with-param name="promptFormName" select="$promptFormName"/>
  369. <xsl:with-param name="promptRequired" select="'false'"/>
  370. <xsl:with-param name="promptId" select="'stringPrecedingValue'"/>
  371. <xsl:with-param name="promptHideText" select="'false'"/>
  372. <xsl:with-param name="promptMultiLine" select="'false'"/>
  373. <xsl:with-param name="promptParameter" select="'numberParam1'"/>
  374. <xsl:with-param name="promptReadOnly" select="'true'"/>
  375. </xsl:call-template>
  376. </td>
  377. <td id="buttonContainer1"/>
  378. </xsl:if>
  379. </tr>
  380. </table>
  381. </dp:section2>
  382. <dp:section1>
  383. <input type="checkbox" name="following" onClick="javascript:onSelOperation();">
  384. <xts:string id="CALCULATION_FOLLOWING_TEXT"/>
  385. </input>
  386. </dp:section1>
  387. <dp:section2>
  388. <table>
  389. <tr>
  390. <td id="textBoxString2" valign="bottom">
  391. <input type="text" name="secondtext" onClick="javascript:bottomTextGotFocus();" onKeyDown="setTimeout(bottomTextGotFocus, 10);">
  392. <xsl:if test="/root/system/param[@name='disableEnterKeyAutoSubmit'] != 'true'">
  393. <xsl:attribute name="onKeyUp">javascript:if (event.keyCode == 13) execute();</xsl:attribute>
  394. </xsl:if>
  395. </input>
  396. </td>
  397. <xsl:if test="/root/env/param[@name='xxSubstVar']='true'">
  398. <td id="textBoxString2Constant" valign="bottom">
  399. <xsl:call-template name="getTextBox">
  400. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  401. <xsl:with-param name="promptFormName" select="$promptFormName"/>
  402. <xsl:with-param name="promptRequired" select="'false'"/>
  403. <xsl:with-param name="promptId" select="'stringFollowingValue'"/>
  404. <xsl:with-param name="promptHideText" select="'false'"/>
  405. <xsl:with-param name="promptMultiLine" select="'false'"/>
  406. <xsl:with-param name="promptParameter" select="'numberParam2'"/>
  407. <xsl:with-param name="promptReadOnly" select="'true'"/>
  408. </xsl:call-template>
  409. </td>
  410. <td id="buttonContainer2"/>
  411. </xsl:if>
  412. </tr>
  413. </table>
  414. </dp:section2>
  415. </dp:choice>
  416. </dp:section2>
  417. </dp:input>
  418. </lyt:section>
  419. <lyt:section>
  420. <clcdlg:calc_hint/>
  421. <div id="displaySpacing" style="visibility:hidden">
  422. <dp:section1>
  423. <div class="formLabel">
  424. <xts:string id="CALCULATION_MIDDLE_TEXT"/>
  425. </div>
  426. </dp:section1>
  427. <dp:section2>
  428. <dp:choice>
  429. <dp:section1>
  430. <input type="radio" name="middle" checked="true" onClick="javascript:onSelOperation();"/>
  431. </dp:section1>
  432. <dp:section2>
  433. <xts:string id="CALCULATION_NONE"/>
  434. </dp:section2>
  435. <dp:section1>
  436. <input type="radio" name="middle" onClick="javascript:onSelOperation();"/>
  437. </dp:section1>
  438. <dp:section2>
  439. <xts:string id="CALCULATION_SPACE"/>
  440. </dp:section2>
  441. <dp:section1>
  442. <input type="radio" name="middle" onClick="javascript:onSelOperation();"/>
  443. </dp:section1>
  444. <dp:section2>
  445. <table>
  446. <tr>
  447. <td id="textBoxString3" valign="bottom">
  448. <input type="text" name="middletext" onClick="javascript:middleTextGotFocus();" onKeyDown="javascript:setTimeout(middleTextGotFocus, 10);">
  449. <xsl:if test="/root/system/param[@name='disableEnterKeyAutoSubmit'] != 'true'">
  450. <xsl:attribute name="onKeyUp">javascript:if (event.keyCode == 13) execute();</xsl:attribute>
  451. </xsl:if>
  452. </input>
  453. </td>
  454. <xsl:if test="/root/env/param[@name='xxSubstVar']='true'">
  455. <td id="textBoxString3Constant" valign="bottom">
  456. <xsl:call-template name="getTextBox">
  457. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  458. <xsl:with-param name="promptFormName" select="$promptFormName"/>
  459. <xsl:with-param name="promptRequired" select="'false'"/>
  460. <xsl:with-param name="promptId" select="'stringMiddleValue'"/>
  461. <xsl:with-param name="promptHideText" select="'false'"/>
  462. <xsl:with-param name="promptMultiLine" select="'false'"/>
  463. <xsl:with-param name="promptParameter" select="'numberParam3'"/>
  464. <xsl:with-param name="promptReadOnly" select="'true'"/>
  465. </xsl:call-template>
  466. </td>
  467. <td id="buttonContainer3"/>
  468. </xsl:if>
  469. </tr>
  470. </table>
  471. </dp:section2>
  472. </dp:choice>
  473. </dp:section2>
  474. </div>
  475. </lyt:section>
  476. </lyt:layout>
  477. </td>
  478. </tr>
  479. <tr>
  480. <td width="100%" height="0%">
  481. <!-- Use default buttons [ OK = execute() and CANCEL = hideDialogFrame() ] -->
  482. <clcdlg:buttons/>
  483. </td>
  484. </tr>
  485. <!-- <dbg:dumpxml select="/"/> -->
  486. </table>
  487. </form>
  488. </dp:page>
  489. </xsl:template>
  490. </xsl:stylesheet>
  491. </xts:block>
  492. </xts:morphlet>