// 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 _h57=new _lcm( "_h57", "dlgAppDrillParameter" );_h57._jgn=function(_4x5,_nw6,_qjn){this._bq5=_4x5;this._ao6=_nw6;this._phn=_qjn||null;this._4le();};_h57._5z2=function(){this._2oh("txtName").value = this._ao6?this._ao6.getAttribute("name"):"";var _6b9=_frh._53g("EmptyComboWithSmallIcon");var _ozj=_6b9.selectSingleNode("listView");var _83m=_erh._vtc();_8aj._ux(_83m, _ozj);this._d0n._v9a=new _jgk(this._2oh("cboAppVariables"), _6b9, null, this);this._xl6=Boolean(_ozj.selectSingleNode("listItems/listItem"));if(this._ao6&&this._ao6.selectSingleNode("appDrillValues/appDrillAppVariableValues")){var _vw6=this._ao6.selectSingleNode("appDrillValues/appDrillAppVariableValues");var _brf=_vw6.getAttribute("refAppVariable");this._d0n._v9a._hwc(_brf);}else if(this._xl6){this._d0n._v9a._gwc(0);}this._d0n._9gd=new _pgk( this._2oh( "lvStaticValues" ), _frh._53g( "EmptyList" ), this );if(this._ao6&&this._ao6.selectSingleNode("appDrillValues/appDrillStaticValue")){var _dec=this._ao6.selectNodes("appDrillValues/appDrillStaticValue");for(var i=0; i<_dec.length; i++){var _3lf=_dec.item(i);var _uxm=_3lf.text;var _w05=this._d0n._9gd._767();_w05.setAttribute("label", _uxm);_w05.setAttribute("value", _uxm);}}this._d0n._9gd._wfn();if(this._ao6&&this._ao6.selectSingleNode("appDrillValues/appDrillAppVariableValues")){this._2oh("rad_VariableValues").checked=true;}else{this._2oh("rad_StaticValues").checked=true;}this._fmb();};_h57._wl3=function(){this._2oh("txtName").focus();};_h57._o46=function(){delete this._phn;};_h57._bgn=function(){var _ylc=this._2oh("txtName").value;if(_ylc==""){_67j("IDS_ERR_INVALID_NAME");return;}var _0nf=this._bq5.selectNodes("appDrillParameter");for(var i=0; i<_0nf.length; i++){var _2pi=_0nf.item(i);if(_2pi==this._ao6){continue;}var _026=_2pi.getAttribute("name");if(_ylc==_026){_67j("IDS_ERR_NOT_UNIQUE_NAME");return;}}this._ao6=this._ao6||_erh._u0g(this._bq5, "appDrillParameter");this._ao6.setAttribute("name", _ylc);_8qn._cqh(this._ao6, "*");var _8pa=_erh._u0g(this._ao6, "appDrillValues");if(this._2oh("rad_VariableValues").checked){var _8pa=_erh._u0g(_8pa, "appDrillAppVariableValues");var _brf=this._d0n._v9a._qik();_8pa.setAttribute("refAppVariable", _brf);}else{var _m9h=this._d0n._9gd._tfe();for(var i=0; i<_m9h.length; i++){var _mzj=_m9h.item(i);var _uxm=_mzj.getAttribute("value");var _p7c=_erh._u0g(_8pa, "appDrillStaticValue");_p7c.text=_uxm;}}if(this._phn){setTimeout(this._phn, 0);}this._3le();};_h57._8p3=function(){_zgk._jgn(this._xp9(),_frh._c6j("IDS_LBL_VALUE"),_frh._c6j("IDS_TITLE_APP_NEW_DRILL_STATIC_VALUE"),"",null,Function("_h57._xeb()"));};_h57._xeb=function(){var _uxm=_zgk._fkl();var _w05=this._d0n._9gd._767();_w05.setAttribute("label", _uxm);_w05.setAttribute("value", _uxm);this._d0n._9gd._wfn();this._d0n._9gd._uab(_w05);this._fmb();};_h57._p32=function(){var _a58=this._d0n._9gd._885();var _dwm=_a58.getAttribute("label");_zgk._bc7(true);_zgk._jgn(this._xp9(),_frh._c6j("IDS_LBL_VALUE"),_frh._c6j("IDS_TITLE_RENAME"),_dwm,null,Function("_h57._jm7()"));};_h57._jm7=function(){var _uxm=_zgk._fkl();var _a58=this._d0n._9gd._885();_a58.setAttribute("label", _uxm);_a58.setAttribute("value", _uxm);this._d0n._9gd._wfn();this._d0n._9gd._uab(_a58);this._fmb();};_h57._k32=function(){this._d0n._9gd._m46();this._fmb();};_h57._jhe=function(){this._fmb();};_h57._pe4=function(_a6k,_mzj){this._fmb();};_h57._fmb=function(){var _bg3=this._2oh("rad_VariableValues").checked;this._8q3("rad_VariableValues", this._xl6);this._d0n._v9a._mqh(_bg3&&this._xl6);this._d0n._9gd._mqh(!_bg3);this._pj8("btnNewStaticValue", !_bg3);var _iu2=Boolean(this._d0n._9gd._885());this._pj8("btnRenameStaticValue", _iu2&&!_bg3);this._pj8("btnDeleteStaticValue", _iu2&&!_bg3);var _8wg=_bg3||(this._2oh("rad_StaticValues").checked&&(this._d0n._9gd._tfe().length>0)); this._pj8("btnOK", _8wg);};