_g0g.js 3.3 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 _g0g=new _lcm("_g0g");_g0g._jgn=function(_u4c,_bel){this._dtk=_u4c?_u4c.id:"";this._04n=_rlk._9le[_bel];this._4le(_u4c);};_g0g._5z2=function(){var _vdn=_frh._c6j("IDS_PROPVAL_variableType_"+this._04n);this._2oh( "txtName" ).value = _8qn._g8b( _erh._vtc().selectNodes( "reportVariables/reportVariable/@name" ), _vdn, true );this._2oh( "divListView" ).style.padding = ( this._04n=="locale" )?_9l8._9h8( "--16S" ):"";switch(this._04n){case "locale":this._2oh( "divListLabel" ).style.display = "";this._2oh( "divListView" ).style.display = "";_4qn._1je( this._2oh( "divListLabel" ), _frh._c6j( "IDS_COND_LANGUAGE" ) );this._2oh( "divButtons" ).style.display = "none";this._uij=new _pgk( this._2oh( "divListView" ), _frh._53g( "EmptyNativeCheckboxList" ), this );_u0n._3a6(this._2oh("divListView"));break;case "string":this._2oh( "divListLabel" ).style.display = "";this._2oh( "divListView" ).style.display = "";_4qn._1je( this._2oh( "divListLabel" ), _frh._c6j( "IDS_COND_VALUES" ) );this._2oh( "divButtons" ).style.display = "";this._uij=new _pgk(this._2oh("divListView"), _frh._53g('EmptyList'), this);this._zj6();break;case "boolean":this._2oh( "divListLabel" ).style.display = "none";this._2oh( "divListView" ).style.display = "none";this._2oh( "divButtons" ).style.display = "none";break;}};_g0g._wl3=function(){if(this._04n=="locale"){_r7g._u51(this._uij);this._uij._wfn();}var txt=this._2oh("txtName");txt.focus();txt.select();};_g0g._o46=function(){if(this._uij){this._uij._fdm();this._uij=null;}};_g0g._0mk=function(){var _men=_zgk._fkl();if(_men){var _mzj=this._uij._767();_mzj.setAttribute("label", _men);_mzj.setAttribute("value", _men);this._uij._wfn();this._uij._uab(_mzj);this._zj6();}};_g0g._oph=function(){_zgk._jgn( this._xp9(), "", _frh._c6j( "IDS_TITLE_ADD" ), "", null, Function( "_g0g._0mk()" ) );};_g0g._xvc=function(){var _mzj=this._uij._885();_mzj.parentNode.removeChild(_mzj);this._uij._wfn();this._zj6();};_g0g._pe4=function(_a6k,_mzj,_zdf){if(this._04n=="locale"){this._uij._rn9(false);}};_g0g._bgn=function(){_erh._ybb();var _83m=_erh._vtc();var _33k=_erh._e5j(_y7g._znh("reportVariable_"+this._04n), true);var _33k=_erh._h56(_83m, "reportVariables").appendChild(_33k);_8qn._j8b( _33k, this._2oh( "txtName" ).value, _83m.selectNodes( "reportVariables/reportVariable/@name" ), false, false );switch(this._04n){case "locale":var nl=this._uij._175();for(var i=0;i<nl.length;i++){var _y3m=_erh._h56(_33k, "variableValues");var _ysm=_erh._u0g(_y3m, "variableValue");_ysm.setAttribute( "value", nl.item( i ).getAttribute( "value" ) );}break;case "string":var nl=this._uij._tfe();for(var i=0;i<nl.length;i++){var _y3m=_erh._h56(_33k, "variableValues");var _ysm=_erh._u0g(_y3m, "variableValue");_ysm.setAttribute( "value", nl.item( i ).getAttribute( "value" ) );}break;}_erh._iee();if(this._dtk){window[this._dtk]._vab(_33k.getAttribute("name"));}switch(this._04n){case "string":case "boolean":this._efa=_33k.selectSingleNode( "reportExpression" ).getAttribute( "iid" );setTimeout('_g0g._4hb()', 0);}this._3le();};_g0g._4hb=function(){(new _1a4(_erh._9kl(this._efa)))._ujl();};_g0g._zj6=function(){this._pj8("btnRemove",(this._uij._885()!=null));};