maError.xts 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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 version="1.0" xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/QSRVUITextPL.xml,messages/portal.xml,messages/portalRL.xml" requiredCapability="canUseQueryStudio">
  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. <!-- add any theme variables -->
  30. <df:variables/>
  31. <pf:variables/>
  32. <!-- start the output -->
  33. <xsl:template match="/root">
  34. <dp:page>
  35. <dp:script>
  36. <script type="text/javascript">
  37. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/layout.js</xsl:attribute>
  38. <xsl:text/>//<xsl:text/>
  39. </script>
  40. <script type="text/javascript">
  41. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/dialogs/executeButton.js</xsl:attribute>
  42. <xsl:text/>//<xsl:text/>
  43. </script>
  44. <script type="text/javascript">
  45. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/classes/CDialogManager.js</xsl:attribute>
  46. <xsl:text/>//<xsl:text/>
  47. </script>
  48. <script type="text/javascript">&lt;!--
  49. var goDialogManager = new CDialogManager();
  50. function init()
  51. {
  52. attachMouseEvents();
  53. var cf = getConfigFrame ? getConfigFrame() : null;
  54. if (cf &amp;&amp; cf.showDialogFrame)
  55. {
  56. cf.showDialogFrame(300);
  57. var errorSection = document.getElementById("errorSection");
  58. var errorMessage = "";
  59. if (cf.metadataErrors.length > 0)
  60. {
  61. var errorTable = document.createElement("table");
  62. errorTable.cellPadding = 1;
  63. errorTable.cellSpacing = 0;
  64. var errorTbody = document.createElement("tbody");
  65. for (var i = 1; i &lt; cf.metadataErrors.length; i++)
  66. {
  67. var errorTr = document.createElement("tr");
  68. var errorTd = document.createElement("td");
  69. errorTd.appendChild(document.createTextNode(cf.metadataErrors[i]));
  70. errorTd.className = "formText";
  71. errorTr.appendChild(errorTd);
  72. errorTbody.appendChild(errorTr);
  73. }
  74. errorTable.appendChild(errorTbody);
  75. errorSection.appendChild(errorTable);
  76. }
  77. }
  78. }
  79. //--&gt;</script>
  80. </dp:script>
  81. <form style="margin:0px" name="f" method="POST">
  82. <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
  83. <tr>
  84. <td width="100%" height="0%">
  85. <!-- dialog header -->
  86. <dp:header help="false">
  87. <!-- header titles -->
  88. <dp:title>
  89. <xts:string id="METADATA_NOT_AVAILABLE"/>
  90. </dp:title>
  91. <!-- close link for the header -->
  92. <dp:close>
  93. <a href="javascript:getConfigFrame().hideDialogFrame()">
  94. <dp:closeMarker/>
  95. </a>
  96. </dp:close>
  97. <!-- description (hint text) -->
  98. <dp:description></dp:description>
  99. </dp:header>
  100. </td>
  101. </tr>
  102. <tr>
  103. <td width="100%" height="100%" valign="top">
  104. <!-- layout -->
  105. <lyt:layout style="1" border="no">
  106. <lyt:section>
  107. <dp:box valign="top">
  108. <dp:boxSection hgap="20">
  109. <img width="32" height="32" align="top" hspace="10">
  110. <xsl:attribute name="src"><xsl:value-of select="$webcontent"/>/<xsl:value-of select="$app"/>/images/msg_error.gif</xsl:attribute>
  111. </img>
  112. </dp:boxSection>
  113. <dp:boxSection>
  114. <div style="width:500px; height:180px; overflow:auto; border: 1px solid black;">
  115. <table style="width:100%; height:100%;">
  116. <tr>
  117. <td id="errorSection" style="width:100%; height:100%; vertical-align:top;" class="formText"/>
  118. </tr>
  119. </table>
  120. </div>
  121. </dp:boxSection>
  122. </dp:box>
  123. </lyt:section>
  124. </lyt:layout>
  125. </td>
  126. </tr>
  127. <tr>
  128. <td width="100%" height="0%">
  129. <xsl:choose>
  130. <xsl:when test="/root/env/param[@name='xxForceExit']='true'">
  131. <qsdlg:promptOKCloseLinkButton/>
  132. </xsl:when>
  133. <xsl:otherwise>
  134. <qsdlg:defaultOKButton/>
  135. </xsl:otherwise>
  136. </xsl:choose>
  137. </td>
  138. </tr>
  139. <!-- <dbg:dumpxml select="/"/> -->
  140. </table>
  141. </form>
  142. </dp:page>
  143. </xsl:template>
  144. </xsl:stylesheet>
  145. </xts:block>
  146. </xts:morphlet>