123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- /****************************************************************
- ** Licensed Materials - Property of IBM
- **
- ** BI and PM: qs
- **
- ** (C) Copyright IBM Corp. 2001, 2015
- **
- ** US Government Users Restricted Rights - Use, duplication or
- ** disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- *****************************************************************/
- // Copyright (C) 2008 Cognos ULC, an IBM Company. All Rights Reserved.
- // Cognos and the Cognos logo are trademarks of Cognos ULC (formerly Cognos Incorporated) in the United States and/or other countries. IBM and the IBM logo are trademarks of International Business Machines Corporation in the United States, or other countries, or both. Other company, product, or service names may be trademarks or service marks of others.
- function CRun()
- {
- };
- CRun.prototype = new AFeatureObject();
- CRun.prototype.setup = function (aFeatureParams)
- {
- if (typeof aFeatureParams != "undefined" && aFeatureParams instanceof Array && aFeatureParams.length > 0)
- {
- run(aFeatureParams);
- }
- else
- {
- run();
- }
- };
- function run(aParams)
- {
- var amountOfData = aParams[0];
- var bRunAsPreview = aParams[1];
-
-
- var bForceDataMode = (typeof oLimitedDataPreference === "object" && oLimitedDataPreference.getProperty("forceNoDataMode"));
- if (bRunAsPreview || bForceDataMode)
- {
-
-
-
- cfgSet("isRunAsPreview", true);
-
-
-
- if (! cfgGet("amountOfData"))
- {
- var sCurrentDataMode = getPreviewType();
- cfgSet("amountOfData", sCurrentDataMode);
- }
- }
- else
- {
-
-
- cfgRemove("amountOfData");
- cfgSet("isRunAsPreview", false);
- }
-
-
- if (goApplicationManager.getReportManager().isCommandRunning())
- {
- return;
- }
-
- var reportState = goApplicationManager.getReportManager().get("reportState");
- if (reportState == "" || reportState == "invalidPackage" || reportState == "noPackage" || reportState == "upgrading" || reportState == "submitted")
- return;
- if (!amountOfData)
- return;
- var oCRQReportNode = goApplicationManager.getMiniQueryManager().getCRQReportNode();
- if (amountOfData == "full")
- {
-
-
- if (oCRQReportNode && typeof (oCRQReportNode) == "object")
- {
- oCRQReportNode.removeAttribute("limitData");
- }
- sendCmd(createCommand("O", "N", new Array("full")), "", true);
- }
- else if (amountOfData == "partial" || amountOfData == "none")
- {
- if (oCRQReportNode && typeof (oCRQReportNode) == "object")
- {
- oCRQReportNode.setAttribute("limitData", amountOfData);
- }
- sendCmd(createCommand("O", "N", new Array(amountOfData)), "", true);
- }
- };
|