RefreshActiveReportAction.js 841 B

123456789101112131415161718192021222324252627
  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. function RefreshActiveReportAction()
  13. {
  14. this.m_sAction = "RefreshActiveReport";
  15. }
  16. RefreshActiveReportAction.prototype = new CognosViewerAction();
  17. RefreshActiveReportAction.prototype.execute = function()
  18. {
  19. var viewerWidget = this.m_oCV.getViewerWidget();
  20. var activeReportIframe = dojo.byId(viewerWidget.getIFrameId());
  21. var srcUrl = activeReportIframe.src;
  22. activeReportIframe.src = srcUrl;
  23. viewerWidget.showLoading();
  24. };