123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- function CReportStudio()
- {
- };
- CReportStudio.prototype = new AFeatureObject();
- CReportStudio.prototype.setup = function (aFeatureParams)
- {
- runReportStudio();
- };
- function runReportStudio()
- {
- var spec = cfgGet("conversation_qs_spec");
- if(typeof spec == "undefined")
- {
- spec = goApplicationManager.getReportManager().get("sMiniQueryMarkup");
- }
- var url = "m=" + qs_dir + "/launchRS.xts&xxSpec=" + encodeURIComponent(spec);
- if (cafContextId != "")
- {
- url += "&ui.cafcontextid=" + cafContextId;
- }
- if (typeof routingServerGroup != "undefined")
- {
- url += "&ui.routingServerGroup=" + encodeURIComponent(routingServerGroup);
- }
- sendDispatcherRequest(url, launchReportStudio);
- };
- function launchReportStudio(reportLocation)
- {
- if (reportLocation === "")
- {
- dlgShowMessage("REPORT_STUDIO_TITLE", "", "REPORT_STUDIO_CANT_LAUNCH");
- }
- else if(!checkResponse(reportLocation, document, "launchReportStudio", runReportStudio))
- {
- return;
- }
- else
- {
- var hideParam = "";
- var hideValue = "";
- if (goApplicationManager.getReportManager().get("CAFEnabled") == true)
- {
- hideParam = "ui.hideXLS";
- hideValue = "true";
- }
- var cafParam = "";
- var cafValue = "";
- if (cafContextId != "")
- {
- cafParam = "ui.cafcontextid";
- cafValue = cafContextId;
- }
- var rsRoutingServerGroupParam = "";
- var rsRoutingServerGroupValue = "";
- if (typeof routingServerGroup != "undefined")
- {
- rsRoutingServerGroupParam = "ui.routingServerGroup";
- rsRoutingServerGroupValue = encodeURIComponent(routingServerGroup);
- }
- cognosLaunchInWindow("_blank", "menubar=no,toolbar=no,status=no,location=no,resizable=yes,width=700,height=500",
- "ui.gateway", goApplicationManager.get("scriptEngine"),
- "ui.tool", "ReportStudio",
- "ui.action", "edit",
- "ui.object", reportLocation,
- "ui.folder", decodeURIComponent(cfgGet("ReportFolder")),
- "ui.profile", "Professional",
- rsRoutingServerGroupParam, rsRoutingServerGroupValue,
- hideParam, hideValue,
- cafParam, cafValue
- );
- }
- };
|