123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- 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);
- }
- };
|