tools_drillthru.xts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: ps
  5. (C) Copyright IBM Corp. 2005, 2011
  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 xmlns:xts="http://developer.cognos.com/schemas/xts/">
  13. <xts:block id="redirect" type="exec" mode="output" processor="XSLT" mimeType="text/html" contentId="redirect" partId="1" mandatory="false" nodelist="">
  14. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="xsl">
  15. <xsl:output method="html" encoding="utf-8" indent="no"/>
  16. <xsl:variable name="gateway" select="string(/root/http/param[@name='SCRIPT_NAME'])"/>
  17. <xsl:variable name="app" select="string(/root/system/param[@name='app'])"/>
  18. <xsl:output method="html" encoding="utf-8" indent="no"/>
  19. <xsl:template match="/">
  20. <html>
  21. <head>
  22. <script language="javascript">
  23. function redirectToCCDrillThrough()
  24. {
  25. var pForm = document.pform;
  26. if(typeof pForm != "undefined" &amp;&amp; pForm != null)
  27. {
  28. pForm.submit();
  29. }
  30. }
  31. </script>
  32. </head>
  33. <body onload="redirectToCCDrillThrough();">
  34. <form action="{$gateway}" name="pform" id="pform" method="post" style="height:100%;margin:0px">
  35. <xsl:for-each select="/root/env/param[@name != 'b_action' and @name != 'm']">
  36. <input type="hidden">
  37. <xsl:attribute name="name"><xsl:value-of select="./@name"/></xsl:attribute>
  38. <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute>
  39. </input>
  40. </xsl:for-each>
  41. <input type="hidden" name="m" value="{$app}/cc_drillthrough.xts"/>
  42. <input type="hidden" name="b_action" value="xts.run"/>
  43. </form>
  44. </body>
  45. </html>
  46. </xsl:template>
  47. </xsl:stylesheet>
  48. </xts:block>
  49. </xts:morphlet>