C_RunReportRequest.js 3.8 KB

123456
  1. // Licensed Materials - Property of IBM
  2. // IBM Cognos Products: cchl
  3. // (C) Copyright IBM Corp. 2003, 2016.
  4. // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  5. function C_RunReportRequest(_cCB1, _cAP, _cBP, _c4U, _cE6, _cBN){var _cOB="";if(_cBP&&_cBP!=""){_cOB='<item xsi:type="bus:runOptionData">' +'<bus:name xsi:type="bus:runOptionEnum">data</bus:name>' +'<bus:value xsi:type="bus:dataEnum">' + _cBP + '</bus:value>' +'</item>';}var _c1L='<item xsi:type="bus:runOptionAnyURI">' +'<bus:name xsi:type="bus:runOptionEnum">outputLocation</bus:name>' + '<bus:value xsi:type="xsd:string">http://developer.cognos.com/ceba/constants/temporaryObjectLocationEnum#serverFileSystem</bus:value>' +'</item>';if(_cE6){_c1L="";}var _c5J1=this._cF91();var _c8Z=this._c1Q1?'run':'runSpecification';var _c12;if(this._c1Q1){_c12='<bus:objectPath xsi:type="bus:searchPathSingleObject">' + _cAP.F_XMLEncode() + '</bus:objectPath>';}else{_c12 ='<bus:specification xsi:type="bus:reportServiceReportSpecification">' +'<bus:value xsi:type="bus:specification">' +_cAP.F_XMLEncode()+'</bus:value>'+'</bus:specification>';}var _cN8=C_BusRequest.F_GetAttachmentEncoding();var _cP11='<rns1:' + _c8Z + '>' +_c12+G_BusServer.F_GetParameterValues()+'<bus:options SOAP-ENC:arrayType="bus:option[]" xsi:type="SOAP-ENC:Array">' +'<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:runOptionStringArray">' +'<bus:name xsi:type="bus:runOptionEnum">outputFormat</bus:name>' +'<bus:value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:string[1]">' +'<item>'+(_c4U?_c4U:'XHTML')+'</item>'+'</bus:value>'+'</item>'+'<item xsi:type="bus:asynchOptionEncoding">' +'<bus:name xsi:type="bus:asynchOptionEnum">attachmentEncoding</bus:name>' +'<bus:value xsi:type="bus:encodingEnum">' + _cN8 + '</bus:value>' +'</item>'+'<item xsi:type="bus:runOptionAnyURI"><bus:name xsi:type="bus:runOptionEnum">xslURL</bus:name><bus:value xsi:type="xsd:string">' + this._cAS() + '</bus:value></item>' +( _c5J1?( '<item xsi:type="bus:runOptionInt">' +'<bus:name xsi:type="bus:runOptionEnum">verticalElements</bus:name>' +'<bus:value xsi:type="xsd:int">' + _c5J1 + '</bus:value>' +'</item>' ):'' ) +'<item xsi:type="bus:runOptionString">' +'<bus:name xsi:type="bus:runOptionEnum">promptFormat</bus:name>' +'<bus:value xsi:type="xsd:string">XHTMLFRGMT</bus:value>' +'</item>'+'<item xsi:type="bus:runOptionBoolean">' +'<bus:name xsi:type="bus:runOptionEnum">prompt</bus:name>' +'<bus:value xsi:type="xsd:boolean">' + this._cIE1() + '</bus:value>' +'</item>'+_cOB+_c1L+this._cLJ()+'</bus:options>'+'</rns1:' + _c8Z + '>';this._cUE=null;this.F_ConstructBaseClass(_cCB1, C_BusRequest.K_sSOAPAction_reportService, _cP11);if(_cBN){this.F_SetRequestHeader("X-RsCMStoreID", _cBN);} this.F_SetAsyncBusRequest("rns1:wait", "rns1:cancel", "rns1:getOutput");};C_RunReportRequest.F_Extends(C_BusRequest);C_RunReportRequest.prototype._cIE1=function(){return 'false';};C_RunReportRequest.prototype._cAS=function(){return 'null.xsl';};C_RunReportRequest.prototype._cF91=function(){return "";};C_RunReportRequest.prototype._cLJ=function(){return "";};C_RunReportRequest.prototype.F_ProcessResponse=function(){C_RunReportRequest.superClass.F_ProcessResponse.call(this);var _cVI=this.F_GetResponse();if(!_cVI){return;}this._c5U=this.F_GetOutputPages(_cVI);};C_RunReportRequest.prototype.F_GetReportOutput=function(){return this._c5U;};