123456 |
- // Licensed Materials - Property of IBM
- // IBM Cognos Products: cchl
- // (C) Copyright IBM Corp. 2003, 2016.
- // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- function C_ReportRequestSOAP(_cCB1, _cQQ1){var _cP11 ='<rns1:query>'+'<objectPath xsi:type="bus:searchPathSingleObject">' +_cQQ1.F_XMLEncode()+'</objectPath>'+G_BusServer.F_GetParameterValues()+'<options xsi:type="bus:optionArray" SOAP-ENC:arrayType="bus:option[]">' +'<item xsi:type="bus:asynchOptionInt">' +'<bus:name xsi:type="bus:asynchOptionEnum">primaryWaitThreshold</bus:name>' +'<bus:value xsi:type="xsd:int">' + C_BusRequest.K_sPrimaryWaitThreshold + '</bus:value>' +'</item>'+'<item xsi:type="bus:asynchOptionInt">' +'<bus:name xsi:type="bus:asynchOptionEnum">secondaryWaitThreshold</bus:name>' +'<bus:value xsi:type="xsd:int">' + C_BusRequest.K_sSecondaryWaitThreshold + '</bus:value>' +'</item>'+'<item xsi:type="bus:contentManagerQueryOptionPropEnumArray">' +'<name xsi:type="bus:contentManagerQueryOptionEnum">properties</name>' +'<value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:propEnum[]">' +'<item>defaultName</item>'+'<item>searchPath</item>'+'<item>specification</item>'+'<item>description</item>'+'<item>metadataModel</item>'+'<item>module</item>'+'<item>paths</item>'+'<item>modificationTime</item>'+'<item>runInAdvancedViewer</item>'+'</value>'+'</item>'+'<item xsi:type="bus:contentManagerQueryOptionRefPropArray">' +'<name xsi:type="bus:contentManagerQueryOptionEnum">referenceProperties</name>' +'<value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:refProp[]">' +'<item xsi:type="bus:refProp">' +'<refPropName xsi:type="bus:propEnum">parent</refPropName>' +'<properties xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:propEnum[]">' + '<item xsi:type="bus:propEnum">objectClass</item>' +'<item xsi:type="bus:propEnum">searchPath</item>' +'</properties>'+'</item>'+'</value>'+'</item>'+'<item xsi:type="bus:reportServiceQueryOptionSpecificationFormat">' +'<name xsi:type="bus:reportServiceQueryOptionEnum">specificationFormat</name>' +'<value xsi:type="bus:specificationFormatEnum">report</value>' +'</item>'+'<item xsi:type="bus:reportServiceQueryOptionBoolean">' +'<name xsi:type="bus:reportServiceQueryOptionEnum">upgrade</name>' +'<value xsi:type="xs:boolean">true</value>' +'</item>'+'<item xsi:type="bus:runOptionBoolean">' +'<bus:name xsi:type="bus:runOptionEnum">prompt</bus:name>' +'<bus:value xsi:type="xsd:boolean">false</bus:value>' +'</item>'+'</options>'+'</rns1:query>';C_ReportRequestSOAP._cWV=_cP11;C_ReportRequestSOAP._c3R="";this._cSQ1=_cQQ1;this._cUE=null;this.F_ConstructBaseClass(_cCB1, C_BusRequest.K_sSOAPAction_reportService, _cP11);this.F_SetAsyncBusRequest("rns1:wait", "rns1:cancel", "rns1:getOutput");};C_ReportRequestSOAP.F_Extends(C_BusRequest);C_ReportRequestSOAP.prototype.F_SetRequestBody=function(_c5Z){C_ReportRequestSOAP._cWV=_c5Z;C_ReportRequestSOAP.superClass.F_SetRequestBody.call(this, _c5Z);};C_ReportRequestSOAP.F_GetLastRequest=function(){return this._cWV?this._cWV:"";};C_ReportRequestSOAP.F_GetLastResponse=function(){return this._c3R?this._c3R:"";};C_ReportRequestSOAP.prototype.F_GetRequestedReportPath=function(){return this._cSQ1;};C_ReportRequestSOAP.prototype.F_GetCmReportProperties=function(){return this._cUE;};C_ReportRequestSOAP.prototype.F_GetSpecificationValue=function(){return this._c05("specification");};C_ReportRequestSOAP.prototype.F_GetRunInAdvancedViewerValue=function(){if(!this._c05("runInAdvancedViewer")){return false;} else {return (this._c05( "runInAdvancedViewer" ).toLowerCase()=="true");}};C_ReportRequestSOAP.prototype.F_GetDefaultNameValue=function(){return this._c05("defaultName");};C_ReportRequestSOAP.prototype.F_GetSearchPathValue=function(){return this._c05("searchPath");};C_ReportRequestSOAP.prototype.F_GetModificationTimeValue=function(){return this._c05("modificationTime");};C_ReportRequestSOAP.prototype.F_GetStoreIDValue=function(){return this._c05("storeID");};C_ReportRequestSOAP.prototype.F_GetObjectURL=function(){return "v1/objects/"+this.F_GetStoreIDValue();};C_ReportRequestSOAP.prototype.F_GetDescriptionValue=function(){return this._c05("defaultDescription");};C_ReportRequestSOAP.prototype.F_GetRoutingServerGroupValue=function(){return this._cC8;};C_ReportRequestSOAP.prototype._c05=function(_cYQ1){return this._cUE?U_XML.F_GetNodeText( this._cUE.selectSingleNode( "bus:" + _cYQ1 + "/bus:value" ) ):null;};C_ReportRequestSOAP.prototype.F_IsReportStudioReport=function(){return Boolean( this._cUE&&this._cUE.selectSingleNode( "bus:objectClass/bus:value[text()='report' or text()='reportTemplate' or text()='interactiveReport' or text()='dataSet2']" ) );};C_ReportRequestSOAP.prototype.F_IsParentSession=function(){return Boolean(this._cUE&&this._cUE.selectSingleNode("bus:parent//bus:objectClass/bus:value[text()='session']"));};C_ReportRequestSOAP.prototype.F_GetParentPath=function(){return this._cUE?U_XML.F_GetNodeText(this._cUE.selectSingleNode("bus:parent//bus:searchPath/bus:value")):null;};C_ReportRequestSOAP.prototype.F_ProcessResponse=function(){C_ReportRequestSOAP.superClass.F_ProcessResponse.call(this);var _cVI=this.F_GetResponse();if(!_cVI){return;}C_ReportRequestSOAP._c3R=this.F_GetResponseText();var _cM9=_cVI.selectSingleNode("/SOAP-ENV:Envelope/SOAP-ENV:Body/*//bus:report");if(!_cM9){this.F_SetNewErrorRes("IDS_CCHL_BAD_REPORT_RESPONSE", this._cSQ1);return;}var n=_cVI.selectSingleNode("/SOAP-ENV:Body//metadataModelPackage/value/item/effectiveUserCapabilities");if(!G_BusServer.M_bUseReportServiceConsumerMode&&!G_CCHL.M_bIsDataset&&n&&!n.selectSingleNode("value/item[text()='canUseReportStudio']")){this._cZP1=new C_Error(G_ResManager.F_GetString( "IDS_TITLE_CAPABILITIES_ERROR" ), G_ResManager.F_GetString( "IDS_NO_RS_CAPABILITY_REPORT" ));return;}this._cUE=_cM9;};C_ReportRequestSOAP.prototype._cD6=function(_cYI1){var _cO31=null;if(this._cUE){var _c141=this._cUE.selectSingleNode( "bus:" + _cYI1 + "/bus:value/item/bus:searchPath/bus:value" );_cO31=_c141?_c141.text:null;}return _cO31;};C_ReportRequestSOAP.prototype.F_GetPackageSearchPath=function(){return this._cD6("metadataModelPackage");};C_ReportRequestSOAP.prototype.F_GetModelSearchPath=function(){return this._cD6("metadataModel");};C_ReportRequestSOAP.prototype.F_GetModuleSearchPath=function(){return this._cD6("module");};C_ReportRequestSOAP.prototype.F_GetModuleStoreID=function(){var _cFH1=null;if(this._cUE){var _cZI1=this._cUE.selectSingleNode("bus:module/bus:value/item/bus:storeID/bus:value");_cFH1=_cZI1?_cZI1.text:null;}return _cFH1;};C_ReportRequestSOAP.prototype.F_Send=function(){this._c241=new C_RoutingServerGroupRequest(this, this._cSQ1);this._c241.F_Send();};C_ReportRequestSOAP.prototype.F_Abort=function(){if(this._c241){this._c241.F_Abort();this._c241=null;return;}C_ReportRequestSOAP.superClass.F_Abort.call(this);};C_ReportRequestSOAP.prototype.F_Request_OnComplete=function(_cFG1){this._c241=null;if(_cFG1.F_GetError()){this._cZP1=_cFG1.F_GetError();if(this._cDB1&&this._cDB1.F_Request_OnComplete){this._cDB1.F_Request_OnComplete(this);}return;}this._cC8=_cFG1.F_GetRoutingServerGroup();this.F_SetRoutingServerGroup(this._cC8);C_ReportRequestSOAP.superClass.F_Send.call(this);};
|