DrillDownAction.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. *+------------------------------------------------------------------------+
  3. *| Licensed Materials - Property of IBM
  4. *| IBM Cognos Products: Viewer
  5. *| (C) Copyright IBM Corp. 2001, 2012
  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. * DrillDownAction - implements drill down in cognos viewer
  14. */
  15. function DrillDownAction()
  16. {
  17. this.m_sAction = "DrillDown";
  18. }
  19. DrillDownAction.prototype = new DrillAction();
  20. DrillDownAction.prototype.updateMenu = function(jsonSpec) {
  21. return jsonSpec;
  22. };
  23. DrillDownAction.prototype.execute = function() {
  24. var oCV = this.getCognosViewer();
  25. var drillMgr = oCV.getDrillMgr();
  26. if(drillMgr.canDrillDown() == false) {
  27. return;
  28. }
  29. var drillParams = drillMgr.rvBuildXMLDrillParameters("drillDown", this.m_userSelectedDrillItem);
  30. var refQuery = drillMgr.getRefQuery();
  31. if (oCV.envParams["cv.id"] == "AA") {
  32. oCV.m_viewerFragment.raiseAADrillDownEvent();
  33. }
  34. this.submitDrillRequest(drillParams, "down", refQuery);
  35. };