_sx2.js 6.6 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 _sx2=new _lcm( "_sx2", "dlgAppConditionComparison" );_sx2._jgn=function(_l4c,_k1h,_kli,_s8m,_qjn){ this._ljg=_k1h;this._y2i=_kli;this._7b2=(_k1h.nodeName!="listColumn");this._wsl=_s8m;this._phn=_qjn;this._4le(_l4c);};_sx2._5z2=function(){this._jhg=new _jgk( this._2oh( "cboCompareOperator" ), _frh._53g( "AppCompareOperators" ), null, this );var _6b9=_frh._53g("EmptyAuthoredComboWithSmallSvgIcon");var _ozj=_6b9.selectSingleNode("listView");var _83m=_dth._ug8(this._ljg);_8aj._ux(_83m, _ozj);this._4aa=new _jgk(this._2oh("cboVariable"), _6b9, null, this);this._x9a=new _jgk( this._2oh( "tblConstantComparison" ), _frh._53g( "appVariableDataType" ), null, this );this._5y8=new _jgk( this._2oh( "tblConstantComparison2" ), _frh._53g( "appVariableDataType" ), null, this );if(this._7b2){var _5b9=_frh._53g("EmptyAuthoredComboWithSmallSvgIcon");this._ho4(_5b9);this._3aa=new _jgk(this._2oh("cboDataItem"), _5b9, null, this);this._3aa._gwc(0);this._2oh("radBy_DataItem").checked=true;}else{this._2oh("radBy_Value").checked=true;}this._2oh("divDataItemSection").style.display = this._7b2?"":"none";this._2oh("divDataItemValueSection").style.display = this._7b2?"":"none";this._2oh("divDataItemEmptySection").style.display = this._7b2?"":"none";this._x9a._gwc(0);this._5y8._gwc(0);this._jhg._gwc(0);this._4aa._gwc(0);this._2oh("chkDropIfValueIsEmpty").checked=true;this._2oh("txtValue").value = "";this._2oh("radBy2_AppVariable").checked=true;this._2oh("txtValue2").value = "";if(this._y2i){switch(this._y2i.nodeName){case "appConditionDataItemComparison":this._2oh("radBy_DataItem").checked=true;this._4aa._hwc(this._y2i.getAttribute("refAppVariable"));this._2lb(this._y2i.getAttribute("refDataItem"));this._jhg._hwc(this._y2i.getAttribute("operator"));this._2oh("chkDropIfValueIsEmpty").checked = (this._y2i.getAttribute("dropIfValueIsEmpty")=="true");break;case "appConditionConstantComparison":this._2oh("radBy_Value").checked=true;this._4aa._hwc(this._y2i.getAttribute("refAppVariable"));this._jhg._hwc(this._y2i.getAttribute("operator"));this._2oh("chkDropIfValueIsEmpty").checked = (this._y2i.getAttribute("dropIfValueIsEmpty")=="true");this._2oh("txtValue").value = this._y2i.selectSingleNode("appVariableValue").text;this._x9a._hwc(this._y2i.getAttribute("dataType"));break;case "appConditionIsVariableEmpty":this._2oh("radBy_Empty").checked=true;this._4aa._hwc(this._y2i.getAttribute("refAppVariable"));break;case "appConditionIsDataItemEmpty":this._2oh("radBy2_Empty").checked=true;this._2lb(this._y2i.getAttribute("refDataItem"));break;case "appConditionDataItemConstantComparison":this._2oh("radBy2_Value").checked=true;this._2lb(this._y2i.getAttribute("refDataItem"));this._jhg._hwc(this._y2i.getAttribute("operator"));this._2oh("chkDropIfValueIsEmpty").checked = (this._y2i.getAttribute("dropIfValueIsEmpty")=="true");this._2oh("txtValue2").value = this._y2i.selectSingleNode("appVariableValue").text;this._5y8._hwc(this._y2i.getAttribute("dataType"));break;}}this._fmb();};_sx2._2lb=function(_5wf){var _a6k=this._3aa._o2g();var _r69=Boolean(_a6k._lee("value", _5wf));if(_r69){this._3aa._hwc(_5wf);}else{this._3aa._3kk(_5wf, null, _5wf, "def_bad");}};_sx2._ho4=function(n){var _ini=n.selectSingleNode("listView/listItems");var d=n.ownerDocument;var _x7i=_8aj._tr(this._ljg);for(var i=0; i<_x7i.length; i++){var _79k=_x7i[i];var _mzj=_ini.appendChild(d.createElement("listItem"));_mzj.setAttribute("label", _79k);_mzj.setAttribute("value", _79k);_mzj.setAttribute("smallSvgIcon", "def_el_dataItem");}};_sx2._o46=function(){this._jhg._fdm();this._4aa._fdm();this._x9a._fdm();this._5y8._fdm();if(this._3aa){this._3aa._fdm();this._3aa=null;}};_sx2._bgn=function(){if(this._2oh("radBy_DataItem").checked){if(this._2oh("radBy2_AppVariable").checked){var _kli=_erh._cnh("appConditionDataItemComparison");_kli.setAttribute("refAppVariable", this._4aa._qik());_kli.setAttribute("refDataItem", this._3aa._qik());_kli.setAttribute("operator", this._jhg._qik());_kli.setAttribute("dropIfValueIsEmpty", this._2oh("chkDropIfValueIsEmpty").checked?"true":"false");}else if(this._2oh("radBy2_Value").checked){var _kli=_erh._cnh("appConditionDataItemConstantComparison");_kli.setAttribute("refDataItem", this._3aa._qik());_kli.setAttribute("operator", this._jhg._qik());_8qn._qie(_kli, "dataType", this._5y8._qik());var _r28=_kli.appendChild(_erh._cnh("appVariableValue"));_r28.text=this._2oh("txtValue2").value;}else if(this._2oh("radBy2_Empty").checked){var _kli=_erh._cnh("appConditionIsDataItemEmpty");_kli.setAttribute("refDataItem", this._3aa._qik());}}else if(this._2oh("radBy_Value").checked){var _kli=_erh._cnh("appConditionConstantComparison");_kli.setAttribute("refAppVariable", this._4aa._qik());_kli.setAttribute("operator", this._jhg._qik());_kli.setAttribute("dropIfValueIsEmpty", this._2oh("chkDropIfValueIsEmpty").checked?"true":"false");_8qn._qie(_kli, "dataType", this._x9a._qik());var _r28=_kli.appendChild(_erh._cnh("appVariableValue"));_r28.text=this._2oh("txtValue").value;}else if(this._2oh("radBy_Empty").checked){var _kli=_erh._cnh("appConditionIsVariableEmpty");_kli.setAttribute("refAppVariable", this._4aa._qik());}this._3le();this._phn(_kli);};_sx2._g67=function(){this._zj6();};_sx2._zj6=function(){var _znm=((this._2oh("radBy_DataItem").checked&&this._3aa._qik())||!this._2oh("radBy_DataItem").checked)&&this._4aa._qik();this._pj8("btnOK", _znm);};_sx2._jhe=function(){if(!this._2oh("radBy_Value").checked){this._2oh("txtValue").value = "";}if(!this._2oh("radBy_DataItem").checked){this._2oh("radBy2_AppVariable").checked=true;}this._fmb();};_sx2._jvc=function(){if(!this._2oh("radBy2_Value").checked){this._2oh("txtValue2").value = "";}this._fmb();};_sx2._fmb=function(){if(this._7b2){var _r59=this._2oh("radBy_DataItem").checked;this._3aa._mqh(_r59);this._8q3("radBy2_Value", _r59);this._8q3("radBy2_Empty", _r59);var _t3c=this._2oh("radBy2_Value").checked;this._cb5("txtValue2", _t3c);this._obb("lblDataType2", _t3c);this._5y8._mqh(_t3c);}var _289=this._2oh("radBy2_AppVariable").checked;this._4aa._mqh(_289);var _sod=this._2oh("radBy_Value").checked;this._cb5("txtValue", _sod);this._obb("lblDataType", _sod);this._x9a._mqh(_sod);var _2ja=!(this._2oh("radBy_Empty").checked||this._2oh("radBy2_Empty").checked);this._jhg._mqh(_2ja);this._obb("lblOperator", _2ja);var _t3c=this._2oh("radBy2_Value").checked;this._j96("chkDropIfValueIsEmpty", _2ja&&!_t3c);this._obb("lblDropIfValueIsEmpty", _2ja&&!_t3c);this._zj6(); };_sx2._16j=function(){return this._wsl;};_sx2._kg2=function(_35k,_a6k){_35k._yp3();};