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 _8qc=new _lcm("_8qc");_8qc._jgn=function(_8rm){this._d0n._0jm=_8rm;this._4le();};_8qc._5z2=function(){var _83h=this._d0n._0jm.selectSingleNode("mapDictionary");this._d0n._409=_83h?_83h.cloneNode(true):_erh._cnh("mapDictionary");_u0n._3a6(this._2oh("divEntries"));this._zj6();};_8qc._wl3=function(){this._vqe();};_8qc._vqe=function(_6en){if(this._d0n._y2n){this._d0n._y2n._bzm();}else{this._d0n._y2n=new _pgk( this._2oh( "divEntries" ), this._53g( "MapDictionary" ), this );}var nl=this._d0n._409.selectNodes("mapDictionaryEntry");for(var i=0;i<nl.length;i++){var _irm=nl.item(i);var _mzj=this._d0n._y2n._767();_mzj.setAttribute( "label", _irm.getAttribute( "mapName" ) );_mzj.setAttribute( "roid", _irm.getAttribute( "iid" ) );if(_6en&&(_6en==_irm.getAttribute("iid"))){_mzj.setAttribute( "selected", "true" );}var _k7l=_mzj.appendChild(_mzj.ownerDocument.createElement("subItem"));_k7l.setAttribute( "label", _irm.getAttribute( "dataName" ) );var _k7l=_mzj.appendChild(_mzj.ownerDocument.createElement("subItem"));_k7l.setAttribute( "label", _r7g._j7b( _irm.getAttribute( "locale" ) ) );}this._d0n._y2n._wfn();};_8qc._bgn=function(){_erh._ybb();_8qn._k5g(this._d0n._0jm, "mapDictionary");if(this._d0n._409.selectSingleNode("mapDictionaryEntry")){this._d0n._0jm.appendChild(this._d0n._409);}_erh._iee();this._3le();};_8qc._pe4=function(_a6k,_mzj,_zdf){this._zj6();};_8qc._oi2=function(_a6k,_mzj){this._s4g();};_8qc._0qh=function(){_8fm._jgn( "_k36", this._xp9(), this._d0n._0jm.getAttribute( "refMap" ), null, this );};_8qc._s4g=function(){var _irm=this._rq8();_8fm._jgn( "_k36", this._xp9(), this._d0n._0jm.getAttribute( "refMap" ), _irm, this );};_8qc._ovc=function(){var nl=this._4g6();var _dcc=null;for(var i=0;i<nl.length;i++){var _irm=nl.item(i);if(_8qn._dn3(_irm)){_dcc=_8qn._dn3(_irm);}else if(_8qn._4q1(_irm)){_dcc=_8qn._4q1(_irm);}_irm.parentNode.removeChild(_irm);}this._vqe( _dcc?_dcc.getAttribute( "iid" ):"" );this._zj6();};_8qc._rq8=function(){var _mzj=this._d0n._y2n._885();return _mzj?this._d0n._409.selectSingleNode( "mapDictionaryEntry[@iid='" + _mzj.getAttribute( "roid" ) + "']" ):null;};_8qc._4g6=function(){if(!this._d0n._y2n){return null;}var _i8i=this._d0n._y2n._vd4();var _dga=[];for(var i=0;i<_i8i.length;i++){_dga.push( "@iid= " + _cgm._zxc( _i8i[i].getAttribute( "roid" ) ) );}return(_i8i.length>0 )?this._d0n._409.selectNodes( "mapDictionaryEntry[" + _dga.join( " or " ) + "]" ):null;};_8qc._io9=function(_e5m){var _irm=_e5m._7ik();var _bvm=_e5m._2ik();var _99m=_e5m._56j();var _7mi=this._d0n._409.selectSingleNode( "mapDictionaryEntry[@dataName=" + _cgm._zxc( _bvm ) + " and @locale=" + _cgm._zxc( _99m ) + "]" );if(_7mi&&_7mi!=_irm){_m9b('IDS_MSG_ENTRY_NOT_UNIQUE');return;}if(!_irm){var _f1m=this._rq8();_irm=this._d0n._409.insertBefore(_erh._cnh("mapDictionaryEntry"), _f1m);}_irm.setAttribute("mapName", _e5m._5oh());_irm.setAttribute("dataName", _bvm);_irm.setAttribute("locale", _99m);this._vqe(_irm.getAttribute("iid"));this._zj6();};_8qc._a7j=function(e){if((e.keyCode==_4qn._qrh)&&!this._2oh("btnDelete").disabled){this._ovc();return;}if(e.ctrlKey){switch(e.keyCode){case "X".charCodeAt(0):_4aj._3bb([ _erh._q77(this._d0n._409)]);_8qn._k5g(this._d0n._409, "mapDictionaryEntry");this._vqe();this._zj6();break;case "C".charCodeAt(0):_4aj._3bb([ _erh._q77(this._d0n._409)]);break;case "V".charCodeAt(0):var _rlm=_4aj._z6b();if(_rlm&&_rlm[0]&&(_rlm[0].nodeName=="mapDictionary")){this._d0n._409=_erh._e5j(_rlm[0], true);this._vqe();this._zj6();}else{var _onn=_4aj._fkl();if(_onn){var _d5n=_u0n._kjk(_onn);this._d0n._409=_erh._cnh("mapDictionary");for(var i=0;i<_d5n.length;i++){if(_d5n[i].length==3){var _irm=_erh._u0g(this._d0n._409, "mapDictionaryEntry");_irm.setAttribute("mapName", _d5n[i][0]);_irm.setAttribute("dataName", _d5n[i][1]);_irm.setAttribute("locale", _d5n[i][2]);}}this._vqe();this._zj6();}}break;}}this._1f7(e);};_8qc._zj6=function(){var nl=this._4g6();this._pj8("btnDelete", nl!=null);this._pj8("btnEdit", nl&&(nl.length==1));};
|