123456 |
- // Licensed Materials - Property of IBM
- // IBM Cognos Products: rs
- // (C) Copyright IBM Corp. 2003, 2022.
- // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- define([],function(){"use strict";var _zd7={};_zd7._azm=function(){this._arl=_ypn._jf8();this._h53();if(this._ete.length>0){var _p2e=new _ck3(this);_5ml._y5g(_p2e, _frh._c6j("IDS_MSG_LOADING_PARAMETERS"));}else{_erh._ybb();var _t9n=this._aj5();_erh._iee(true);setTimeout( '_ypn._trc( _erh._9kl( "' + _t9n.getAttribute( "iid" ) + '" ) )', 0 );this._ik();this._snl();}};_zd7._snl=function(){this._ajm=null;this._ete=null;this._cyh=null;this._arl=null;};_zd7._h53=function(){var _arg=_8l8._4uc();this._ete=[];this._cyh=[];this._yw8=false;for(var i=0;i<_arg.length;i++){var n=_arg[i];this._ajm=_ath._tq9(n);if(!this._ajm){break;}var _s5m={dataItemMember:true,dataItemCalculatedMember:true,dataItemCalculatedMeasure:true,dataItemMeasurePercentage:true,dataItemTuple:true};var nl=n.selectNodes("./@refDsColumn | ./vcSlotDsColumns/vcSlotDsColumn/@refDsColumn | ./@refDataItem | ./dataSource/*/@refDataItem | .//crosstabNodeMember/@refDataItem | .//chartNodeMember/@refDataItem | .//defaultChartMeasure/@refDataItem | .//v2_defaultChartMeasure/@refDataItem | (self::lcColumnBody | self::lcColumnTitle)/../@refDsColumn | .//lcColumn/@refDsColumn |" + _8qn._o5b(".//", _geb._bs1, "/dataSource/*/@refDataItem | ../appListColumnData//@refDataItem | ./appListDataSet//@refDataItem "));for(var _guj=0;_guj<nl.length;_guj++){var _5wf=nl.item(_guj).value;var _qxj=_5wf?_r0n._62g(this._ajm, _5wf):null;if(_qxj){if(_s5m[_qxj.nodeName]){this._yw8=true;continue;}if(this._cyh.indexOf(_5wf)==-1){this._cyh.push(_5wf);var _mfh=_nlk._bc4(_qxj);if(_mfh){this._ete.push(_mfh);}}}}}};_zd7._hme=function(_t9n,_53m,_5qm){var _83m=_erh._vtc();var _l48=_t9n.selectSingleNode("pageBody/contents");var nl=_53m.selectNodes("query");for(var i=0;i<nl.length;i++){var _8kf=nl.item(i);var _slc=_8kf.getAttribute("name");var _fsm=_agm._71g(_83m, null, _slc, false);_8qn._k5g(_fsm, "*");var _eck=_fsm.getAttribute("name");var _5va=_8kf.selectNodes("*");for(var _lpm=0;_lpm<_5va.length;_lpm++){_fsm.appendChild(_erh._e5j(_5va.item(_lpm), true));}var _kri=_8qn._x5g( _53m, ".//", _geb._lw9, "[@refQuery=" + _cgm._zxc( _slc ) + "]" );for(var _v0l=0;_v0l<_kri.length;_v0l++){_kri.item(_v0l).setAttribute("refQuery", _eck);}}var nl=_53m.selectNodes(_geb._tx9);for(var i=0;i<nl.length;i++){var _kbc=nl.item(i);if(_kbc.nodeName!="promptButton"){var _dcl=_kbc.getAttribute("caption");_kbc.removeAttribute("caption");if(_dcl){var _08c=_l48.appendChild( _erh._cnh( "block" ) ).appendChild( _erh._cnh( "contents" ) );var _k2k=_08c.appendChild(_7th._477("textItem", _dcl));}var _dak=_kbc.getAttribute("filterOn");_kbc.removeAttribute("filterOn");var _i0j=_qcb._gp1(_kbc.getAttribute("parameter"), false);_kbc.setAttribute("parameter", _i0j);var _rza=_kbc.getAttribute("filterOperator");_kbc.removeAttribute("filterOperator");if(!_rza){_rza="in";}var _mfh=( (_dak||( "[" + _6aj._422( this._cyh[_5qm] ) + "]" )) + " " + _rza + " ?" + _i0j + "?" );var _x1m=_r0n._eo3(this._ajm, null, _mfh);}var _2rm=_l48.appendChild(_erh._cnh("block"));var _08c=_2rm.appendChild(_erh._cnh("contents"));var _lsm=_2rm.appendChild(_erh._cnh("style"));var _tkn=_lsm.appendChild(_erh._cnh("CSS"));_tkn.setAttribute( "value", "margin-bottom:12px" );var _24l=_08c.appendChild(_erh._e5j(_kbc, true));}};_zd7._aj5=function(){var _b2m=this._arl;var _t9n=_erh._h56( _b2m, "promptPages" ).appendChild( _erh._e5j( _y7g._znh( "promptPage" ), true ) );_8qn._j8b( _t9n, _frh._c6j( "IDS_DEFAULT_PROMPTPAGE_NAME" ), _b2m.selectNodes( ".//page/@name" ), true );return _t9n;};_zd7._2c7=function(_yal){this._snl();};_zd7._996=function(_yal){var _5um=_yal._8ik();if(_5um){this._snl();_08j(_5um);return;}switch(_yal.constructor){case _ck3:var _gum=_1ke._466(this._ajm);var _bw2=new _fo1(this, _gum._t2g()._j0n, this._ete);_5ml._y5g(_bw2, _frh._c6j("IDS_MSG_BUILDING_PROMPTPAGE"));break;case _fo1:if(_yal._s75()){_erh._ybb();var _t9n=this._aj5();var _cx7=_yal._s75();for(var i=0;i<_cx7.length;i++){var d=_8qn._kph(null, _cx7[ i ], false, true);var _53m=d.documentElement;this._hme(_t9n, _53m, i);}setTimeout( '_ypn._trc( _erh._9kl( "' + _t9n.getAttribute( "iid" ) + '" ) )', 0 );_erh._iee(true);this._ik();}this._snl();break;}};_zd7._ik=function(){if(this._yw8){_m9b('IDS_MSG_PROMPTCONTROLNOTCREATED');}};function _fo1(_b6k, _lwm, _x7i){this._cp7=null;var _4eh ='<rns1:generatePrompts>'+'<bus:objectPath xsi:type="bus:searchPathSingleObject">' + _cgm._e8j( _lwm ) + '</bus:objectPath>' +_f8j._d66()+'<bus:options SOAP-ENC:arrayType="bus:option[]" xsi:type="SOAP-ENC:Array">' +'<item xsi:type="bus:runOptionMetadataModelItemNameArray">' +'<bus:name xsi:type="bus:runOptionEnum">promptDataItems</bus:name>' +'<bus:value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:metadataModelItemName[]">';for(var i=0;i<_x7i.length;i++){_4eh += '<item xsi:type="bus:metadataModelItemName">' + _cgm._e8j( _x7i[ i ] ) + '</item>';}_4eh+='</bus:value>'+'</item>'+'<item xsi:type="bus:asynchOptionInt">' +'<bus:name xsi:type="bus:asynchOptionEnum">primaryWaitThreshold</bus:name>' +'<bus:value xsi:type="xsd:int">' + _ylh._1r3 + '</bus:value>' +'</item>'+'<item xsi:type="bus:asynchOptionInt">' +'<bus:name xsi:type="bus:asynchOptionEnum">secondaryWaitThreshold</bus:name>' +'<bus:value xsi:type="xsd:int">' + _ylh._ok2 + '</bus:value>' +'</item>'+this._1w8+'</bus:options>'+'</rns1:generatePrompts>';_fo1.baseConstructor.call(this, _b6k, _ylh._4s1, _4eh);};_olk._vjl(_fo1, _ylh);_fo1.prototype._s75=function(){return this._cp7;};_fo1.prototype._kt9=function(){_fo1.superClass._kt9.call(this);var _4xg=this._63g();if(_4xg){var nl=_4xg.selectNodes("/SOAP-ENV:Envelope/SOAP-ENV:Body/*/bus:result/bus:details/item/bus:data");if(nl.length>0){this._cp7=[];for(var i=0;i<nl.length;i++){this._cp7.push(nl.item(i).text);}}}};return _zd7;});
|