_4hk.js 5.1 KB

123456
  1. // Licensed Materials - Property of IBM
  2. // IBM Cognos Products: rs
  3. // (C) Copyright IBM Corp. 2003, 2022.
  4. // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  5. var _4hk=new _lcm("_4hk");_4hk._jgn=function(_q9n,_pen,_jxm){this._g2n=_q9n;this._04n=_pen;this._4le(null, null, _jxm);};_4hk._5z2=function(){var _638=this._ch5(this._g2n);this._nlj=_638?_638.getAttribute( "refVariable" ):"";var _f7c="IDS_LBL_VARIABLE_VALUES";var _h1h="IDS_LBL_VARIABLE_INFO";switch(this._04n){case "conditionalLayouts":_f7c="IDS_LBL_LAYOUTS";_h1h="IDS_LBL_VARIABLE_INFO_PAGE_EXPLORER";break;case "conditionalRender":_f7c="IDS_LBL_RENDER_FOR";break;case "conditionalBlockCases":_h1h="IDS_LBL_VARIABLE_INFO_COND_BLOCKS";break;}_4qn._1je(this._2oh("divValuesLabel"), _frh._c6j(_f7c));_4qn._1je(this._2oh("divInfoBox"), _frh._c6j(_h1h));this._lhg=new _jgk( this._2oh( "cboVariable" ), _frh._53g( "EmptyCombo" ), null, this );this._zjj=new _pgk( this._2oh( "divValues" ), _frh._53g( "EmptyNativeCheckboxList" ), this );this._vab(this._nlj, true);};_4hk._ckb=function(){this._zjj._bzm();var _vae=this._lhg._qik();if(_vae){var _33k=_agm._n3g(_erh._vtc(), _vae);if(_33k){var _pen=_33k.getAttribute("type");var _77m={};if(_vae==this._nlj){var _638=this._ch5(this._g2n);if(_638){var _4vl=[];_8qn._fde(_4vl, _dth._e22(_638));_77m=_m0n._je8(_4vl);}}_rlk._l23(this._zjj, _vae, _77m, this._04n, this._04n!="conditionalRender");}else{this._lhg._3kk( "", "IDS_NONE" );}}else if(this._04n=="conditionalLayouts"){var _mzj=this._zjj._767();_mzj.setAttribute( "checked", "true" );_mzj.setAttribute( "staticCheckbox", "true" );_mzj.setAttribute( "idsLabel", "IDS_SINGLE_LAYOUT" );}this._zjj._wfn();};_4hk._kg2=function(_35k,_a6k){_rlk._m23(_35k, _a6k);};_4hk._jg2=function(_35k,_a6k){_35k._ic7("");};_4hk._g67=function(_35k,_mzj){if(_rlk._495(_mzj.getAttribute("idsLabel"))){_35k._3kk( "", "IDS_NONE" );_8fm._jgn( "_g0g", this._n75(), _mzj.getAttribute( "idsLabel" ) );}this._vab(_mzj.getAttribute("value"));};_4hk._vab=function(_vdn,_pld){if(_vdn){this._lhg._3kk(_vdn, _vdn?null:"IDS_NONE");}this._ckb();if(!_pld){this._fhk();}};_4hk._o46=function(){if(this._lhg){this._lhg._fdm();this._lhg=null;}if(this._zjj){this._zjj._fdm();this._zjj=null;}this._g2n=null;};_4hk._bgn=function(){var _jfk=this._lhg._qik();_erh._ybb();var _189=(_jfk!=this._nlj);if(!_jfk||_189){var _b79=false;if(this._04n=="conditionalStyleCases"){_b79=(_8qn._cqh(this._g2n, "conditionalStyles")!=null);}else{_b79=(_8qn._cqh(this._g2n, this._04n)!=null);}if(_189&&_b79&&(this._04n!="conditionalRender")){setTimeout( '_67j("IDS_MSG_DEL_COND_' + this._04n + '")', 0 );}}if(_jfk){var _638=this._6u1(this._g2n);_638.setAttribute("refVariable", _jfk);var _ini=this._zjj._5g8();var _4vl=[];var _lfl="listItem[@checked='true' and not(@staticCheckbox)]/@value";if((this._04n!="conditionalRender")&&( _agm._n3g( _erh._vtc(), _jfk ).getAttribute( "type" )=="boolean" ) ){_lfl="listItem[position()=1]/@value";}_8qn._fde(_4vl, _ini.selectNodes(_lfl));var _77m=_m0n._je8(_4vl);var nl=_dth._675(_638);for(var i=0;i<nl.length;++i){var n=nl.item(i);if(!_77m[n.getAttribute("refVariableValue")]){n.parentNode.removeChild(n);}}for(var i=0;i<_4vl.length;++i){var _uxm=_4vl[i];if(!_dth._e56(_638, _uxm)){this._4ag(this._g2n, _uxm);}}}if(this._04n=="conditionalStyleCases"){_8qn._cqh(this._g2n, "conditionalStyles/conditionalStyleCases[not(*/@refVariableValue)]");_8qn._cqh(this._g2n, "conditionalStyles[not(conditionalStyleCases)]");}else{_8qn._cqh(this._g2n, this._04n+"[not(*/@refVariableValue)]");}if(this._04n=="conditionalBlockCases"){this._g2n.removeAttribute("currentBlock");}if((this._04n=="conditionalLayouts")&&_ypn._0he()&&!_ypn._x6b()){_8l8._rn9(false);_ypn._e76();}_erh._iee(true);this._3le();};_4hk._ch5=function(n){if(this._04n=="conditionalStyleCases"){return n.selectSingleNode("conditionalStyles/"+this._04n);}return n.selectSingleNode(this._04n);};_4hk._6u1=function(n){switch(this._04n){case "conditionalStyleCases":var _6rm=_erh._987(n, "conditionalStyles/conditionalStyleCases");_erh._987(n, "conditionalStyles/conditionalStyleDefault");return _6rm;case "conditionalBlockCases":var _6rm=_erh._987(n, "conditionalBlockCases");_erh._987(n, "conditionalBlockDefault/contents");return _6rm;}return _erh._h56(n, this._04n);};_4hk._4ag=function(n,_uxm){var _638=this._6u1(n);var _ysm=null;switch(this._04n){case "conditionalStyleCases":_ysm=_638.appendChild(_erh._cnh("conditionalStyle"));break;case "conditionalBlockCases":_ysm=_638.appendChild(_erh._z5b("conditionalBlock/contents"));break;case "conditionalDataSources":_ysm=_638.appendChild(_erh._z5b("conditionalDataSource/staticValue"));break;case "conditionalLayouts":_ysm=_638.appendChild(_erh._z5b("conditionalLayout/reportPages/page/pageBody/contents"));var _t9n=_638.selectSingleNode(".//page[not(@name)]");_t9n.setAttribute( "name", _frh._c6j( "IDS_EL_page" ) + "1" );_s0n._rjk(_t9n, "pg");_s0n._rjk( _t9n.selectSingleNode( "pageBody" ), "pb" );break;case "conditionalRender":_ysm=_638.appendChild(_erh._cnh("renderFor"));break;}_ysm.setAttribute("refVariableValue", _uxm);};_4hk._fhk=function(){this._zjj._fhk();};_4hk._0rh=function(){this._zjj._0rh();};