RedrawAction.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. *+------------------------------------------------------------------------+
  3. *| Licensed Materials - Property of IBM
  4. *| IBM Cognos Products: Viewer
  5. *| (C) Copyright IBM Corp. 2013
  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. // This action is used to rerender the html output, using the same query
  13. function RedrawAction() {
  14. this.m_specUpdated = false;
  15. }
  16. RedrawAction.prototype = new ModifyReportAction();
  17. RedrawAction.prototype.reuseQuery = function() { return true; };
  18. RedrawAction.prototype.keepRAPCache = function() { return false; };
  19. RedrawAction.prototype.setSpecUpdated = function(flag)
  20. {
  21. this.m_specUpdated = flag;
  22. };
  23. RedrawAction.prototype.getUndoHint = function()
  24. {
  25. return RV_RES.IDS_JS_ADVANCED_EDITING;
  26. };
  27. RedrawAction.prototype.addActionContext = function()
  28. {
  29. if (this.m_specUpdated) {
  30. return "<reportActions><GetInfo><specUpdatedInBUA/></GetInfo></reportActions>";
  31. }
  32. return "<reportActions><GetInfo/></reportActions>";
  33. };