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.
- var _k57=new _lcm("_k57");_k57._5z2=function(){this._pj8("btnRefreshLCRCache", false);this._pj8("btnUpdateCopies", _wle._nm3(_erh._vtc()).length>0);};_k57._9jk=function(){for(var _3en in this._osk){if(this._osk[_3en]){this._osk[_3en]._7zm();}}_xb5._3n9();this._bm8();};_k57._fg4=function(_h7k,_t2k,_zdf){this._1tb._bzm();if(_t2k){var s=_t2k.getAttribute("referencedLCRs");if(s){var _oxm=_t2k.getAttribute("referencedLCRNodeNames");var _dmm=_oxm?_oxm.split(","):null;var a=s.split(",");for(var i=0;i<a.length;i++){var _mzj=this._1tb._767();_mzj.setAttribute("label", a[i]);if(_dmm&&_dmm[i]){_mzj.setAttribute( "smallSvgIcon", "def_el_" + _dmm[i] );}else{_mzj.setAttribute( "smallSvgIcon", "def_bad" );}}}}this._1tb._wfn();};_k57._7k2=function(_h7k,_t2k){};_k57._pt9=function(){this._pj8("btnRefreshLCRCache", false);_xb5._anh();var _4qf=_wle._o41(_erh._vtc());var _u2k=this._njj._cr9();for(var _3en in _4qf){var nl=_u2k.selectNodes( "*/treeNode[@path=" + _cgm._zxc( _3en ) + "]" );for(var i=0;i<nl.length;i++){nl.item( i ).setAttribute( "icon", "report_wait_32.svg" );}}this._njj._wfn();_xb5._7gn(this, Object.keys(_4qf), false);};_k57._996=function(_yal){var _5um=_yal._8ik();if(_5um){_08j(_5um);}switch(_yal.constructor){case _eo1:var _umc=_yal._dx();var _83m=_xb5._a6j(_umc);var nl=this._njj._cr9().selectNodes( "treeNode/treeNode[@path=" + _cgm._zxc( _umc ) + "]" );for(var i=0;i<nl.length;i++){nl.item( i ).setAttribute( "icon", _83m?"report_layout_32.svg":"report_bad_32.svg" );}this._njj._wfn();break;case _ql:var _u2k=this._njj._cr9();var nl=_u2k.selectNodes("treeNode/treeNode[@icon='report_wait_32.svg']");for(var i=0;i<nl.length;i++){var _t2k=nl.item(i);_t2k.setAttribute( "icon", "report_layout_32.svg" );}this._njj._wfn();this._zj6();if((_38g._g0n==_lcb)||(_38g._g0n==_xd7)){_38g._g0n._wfn();}break;}};_k57._g5g=function(){var _u2k=_frh._53g('StaticTree');_u2k.setAttribute( "arrowDirection", "up" );this._njj=new _tzf(this._2oh("divTree"), _u2k, this);this._osk={};var _83m=_erh._vtc();if(_wle._yg2(_83m).length==0){this._njj._u6g(_frh._c6j("IDS_MSG_NO_LCRS"));return;}var _u2k=this._njj._cr9();var d=_u2k.ownerDocument;var _oxd=_u2k.appendChild(d.createElement("treeNode"));var _9ak=_erh._h2g();_oxd.setAttribute( "label", _9ak?_9ak:_frh._c6j( "IDS_NEW_REPORT" ) );_oxd.setAttribute( "icon", "report_wait_32.svg" );this._njj._wfn();var _3en=_erh._i2g();this._osk[_3en]=new _9m9(this, _oxd, _83m);this._osk[_3en]._pgn();};_k57._wl3=function(){this._g5g();this._1tb=new _pgk( this._2oh( "divComponentList" ), _frh._53g( "EmptyReadOnlyList" ), this );};_k57._o46=function(){if(this._njj){this._njj._fdm();delete this._njj;}if(this._1tb){this._1tb._fdm();delete this._1tb;}};_k57._zm=function(_ksa,_t2k,_83m,_3en){var _idk=_ksa.getAttribute("outstandingRequests");if(!_t2k||(!_idk||(_idk=="0"))){_ksa.setAttribute( "icon", "report_layout_32.svg" );}if(_83m&&_t2k&&!this._osk[_3en]){_t2k.setAttribute( "icon", "report_wait_32.svg" );this._osk[_3en]=new _9m9(this, _t2k, _83m);this._osk[_3en]._pgn();}if(_t2k&&!_83m){_t2k.setAttribute( "icon", "report_bad_32.svg" );}this._njj._wfn();this._zj6();};_k57._zj6=function(){var b=false;if(this._njj){var _u2k=this._njj._cr9();b=(_u2k.selectSingleNode("treeNode/treeNode")&&!_u2k.selectSingleNode(".//treeNode[@icon='report_wait_32.svg']"));}this._pj8("btnRefreshLCRCache", b);};function _9m9(_ubk, _t2k, _83m){this._pkj=_ubk;this._xhj=_t2k;this._irl=_83m;};_9m9.prototype._7zm=function(){if(this._kfd){this._kfd._7zm();delete this._kfd;}};_9m9.prototype._pgn=function(){var _j5m=null;var s=this._xhj.getAttribute("referencedLCRs");if(s){_j5m=_m0n._je8(s.split(","));}this._d0f=_wle._o41(this._irl, _j5m);if(_9gm._ykl(this._d0f)){this._pkj._zm(this._xhj, null, null, "");return;}this._xhj.setAttribute("outstandingRequests", String(_9gm._46j(this._d0f)));var _nnj=[];for(var _3en in this._d0f){var _cah=new _rpc(this, _3en);_cah._lqh(_3en);_nnj.push(_cah);}this._kfd=new _4ce(null, _nnj, true);this._kfd._ign();};_9m9.prototype._996=function(_yal){var _umc=_yal._ynh();var _5um=_yal._8ik();if(_5um){_08j(_5um);_vzm._ozm( "_9m9 load report failed:" + _umc );this._xhj.setAttribute( "outstandingRequests", String( parseInt( this._xhj.getAttribute( "outstandingRequests" ) ) - 1 ) );var _t2k=this._xhj.appendChild(this._xhj.ownerDocument.createElement("treeNode"));_t2k.setAttribute( "label", "?" );_t2k.setAttribute("path", _umc);_t2k.setAttribute("tooltip", _umc);_t2k.setAttribute( "referencedLCRs", Object.keys( this._d0f[_umc] ).join( "," ) );this._pkj._zm(this._xhj, _t2k, null, _umc);return;}_vzm._ozm( "_9m9 report loaded: " + _umc );this._xhj.setAttribute( "outstandingRequests", String( parseInt( this._xhj.getAttribute( "outstandingRequests" ) ) - 1 ) );var _61j=_yal._0o3();if(_61j){var d=_erh._bvc(_61j, true, true);if(d){var _t2k=this._xhj.appendChild(this._xhj.ownerDocument.createElement("treeNode"));_t2k.setAttribute("label", _yal._k75());_t2k.setAttribute( "icon", "report_layout_32.svg" );_t2k.setAttribute("path", _umc);_t2k.setAttribute("tooltip", _umc);var _c5n=Object.keys(this._d0f[_umc]);var _w8i=[];for(var i=0;i<_c5n.length;i++){var n=_wle._y56(d.documentElement, _c5n[i]);_w8i.push(n?n.nodeName:"");}_t2k.setAttribute( "referencedLCRs", _c5n.join( "," ) );_t2k.setAttribute( "referencedLCRNodeNames", _w8i.join( "," ) );this._pkj._zm(this._xhj, _t2k, d.documentElement, _umc);}}};
|