CDrillThroughTarget.js 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /*
  2. *+------------------------------------------------------------------------+
  3. *| Licensed Materials - Property of IBM
  4. *| IBM Cognos Products: Viewer
  5. *| (C) Copyright IBM Corp. 2001, 2011
  6. *|
  7. *| US Government Users Restricted Rights - Use, duplication or
  8. *| disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  9. *|
  10. *+------------------------------------------------------------------------+
  11. */
  12. /*
  13. * Report Viewer Drill Through Support
  14. * Any change to this file needs to also be made to drill-from-pdf.xts
  15. */
  16. function CDrillThroughTarget(label, outputFormat, outputLocale, showInNewWindow, method, path, bookmark, parameters, objectPaths, sPrompt, dynamicDrillThrough, parameterProperties)
  17. {
  18. this.m_label = label;
  19. this.m_outputFormat = outputFormat;
  20. this.m_outputLocale = outputLocale;
  21. this.m_showInNewWindow = showInNewWindow;
  22. this.m_method = method;
  23. this.m_path = path;
  24. this.m_bookmark = bookmark;
  25. this.m_parameters = parameters;
  26. this.m_objectPaths = objectPaths;
  27. this.m_prompt = "false";
  28. this.m_dynamicDrillThrough = false;
  29. this.m_parameterProperties = parameterProperties;
  30. if (typeof sPrompt != "undefined" && sPrompt != null)
  31. {
  32. if (sPrompt == 'yes')
  33. {
  34. this.m_prompt = "true";
  35. }
  36. else if (sPrompt == "target")
  37. {
  38. this.m_prompt = "";
  39. }
  40. }
  41. if(typeof dynamicDrillThrough != "undefined" && dynamicDrillThrough != null)
  42. {
  43. if(typeof dynamicDrillThrough == "string")
  44. {
  45. dynamicDrillThrough = dynamicDrillThrough == "true" ? true : false;
  46. }
  47. this.m_dynamicDrillThrough = dynamicDrillThrough;
  48. }
  49. }
  50. function CDrillThroughTarget_getParameterProperties()
  51. {
  52. return this.m_parameterProperties;
  53. }
  54. function CDrillThroughTarget_getLabel()
  55. {
  56. return this.m_label;
  57. }
  58. function CDrillThroughTarget_getOutputFormat()
  59. {
  60. return this.m_outputFormat;
  61. }
  62. function CDrillThroughTarget_getOutputLocale()
  63. {
  64. return this.m_outputLocale;
  65. }
  66. function CDrillThroughTarget_getShowInNewWindow()
  67. {
  68. return this.m_showInNewWindow;
  69. }
  70. function CDrillThroughTarget_getMethod()
  71. {
  72. return this.m_method;
  73. }
  74. function CDrillThroughTarget_getPath()
  75. {
  76. return this.m_path;
  77. }
  78. function CDrillThroughTarget_getBookmark()
  79. {
  80. return this.m_bookmark;
  81. }
  82. function CDrillThroughTarget_getParameters()
  83. {
  84. return this.m_parameters;
  85. }
  86. function CDrillThroughTarget_getObjectPaths()
  87. {
  88. return this.m_objectPaths;
  89. }
  90. function CDrillThroughTarget_getPrompt()
  91. {
  92. return this.m_prompt;
  93. }
  94. function CDrillThroughTarget_isDynamicDrillThrough()
  95. {
  96. return this.m_dynamicDrillThrough;
  97. }
  98. CDrillThroughTarget.prototype.getLabel = CDrillThroughTarget_getLabel;
  99. CDrillThroughTarget.prototype.getOutputFormat = CDrillThroughTarget_getOutputFormat;
  100. CDrillThroughTarget.prototype.getOutputLocale = CDrillThroughTarget_getOutputLocale;
  101. CDrillThroughTarget.prototype.getShowInNewWindow = CDrillThroughTarget_getShowInNewWindow;
  102. CDrillThroughTarget.prototype.getMethod = CDrillThroughTarget_getMethod;
  103. CDrillThroughTarget.prototype.getPath = CDrillThroughTarget_getPath;
  104. CDrillThroughTarget.prototype.getBookmark = CDrillThroughTarget_getBookmark;
  105. CDrillThroughTarget.prototype.getParameters = CDrillThroughTarget_getParameters;
  106. CDrillThroughTarget.prototype.getObjectPaths = CDrillThroughTarget_getObjectPaths;
  107. CDrillThroughTarget.prototype.getPrompt = CDrillThroughTarget_getPrompt;
  108. CDrillThroughTarget.prototype.isDynamicDrillThrough = CDrillThroughTarget_isDynamicDrillThrough;
  109. CDrillThroughTarget.prototype.getParameterProperties = CDrillThroughTarget_getParameterProperties;