DrillAction.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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. function DrillAction()
  13. {
  14. }
  15. DrillAction.prototype = new CognosViewerAction();
  16. /**
  17. * Only set when the user has picked a specific entry off of the drill down or up subMenu
  18. */
  19. DrillAction.prototype.setRequestParms = function(parms) {
  20. if (parms && parms.userSelectedDrillItem) {
  21. this.m_userSelectedDrillItem = parms.userSelectedDrillItem;
  22. }
  23. };
  24. DrillAction.prototype.submitDrillRequest = function(drillParams, drillOption, drillRefQuery) {
  25. var oCV = this.getCognosViewer();
  26. var oReq = new ViewerDispatcherEntry(oCV);
  27. oReq.addFormField("ui.action", "drill");
  28. oReq.addFormField("rv_drillOption", drillOption);
  29. oReq.addFormField("rv_drillparams", drillParams);
  30. oReq.addFormField("rv_drillRefQuery", drillRefQuery);
  31. oCV.dispatchRequest(oReq);
  32. };