_6de.js 2.0 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 _6de=new _lcm("_6de", "dlgVcValueRange" );_6de._jgn=function(_n8h){this._ekg=_n8h;this._4le();};_6de._5z2=function(){this._d0n._ftb=new _lfn(this._2oh("deckRangeType"));var _xyd=this._ekg.selectSingleNode("vcSlotDomain");if(!_xyd){this._2oh("radType_computed").checked=true; this._d0n._ftb._ujk(0);}else{var _63k=_xyd.selectSingleNode("*");switch(_63k.nodeName){case "vcScalarSpecified":this._2oh("radType_specified").checked=true;this._d0n._ftb._ujk(1);this._2oh("txtMinRange").value = _63k.getAttribute("min");this._2oh("txtMaxRange").value = _63k.getAttribute("max");break;case "vcScalarComputed":break;}}_4qn._0s(this._2oh("txtMinRange"), this._fmb.bind(this), true, "decimal");_4qn._0s(this._2oh("txtMaxRange"), this._fmb.bind(this), true, "decimal");this._fmb();};_6de._o46=function(){_4qn._0j(this._2oh("txtMinRange"));_4qn._0j(this._2oh("txtMaxRange"));};_6de._bgn=function(){var _4ck=this._2oh("txtMinRange").value;var _2ck=this._2oh("txtMaxRange").value;var _jtj=parseFloat(_4ck);var _itj=parseFloat(_2ck);if(this._2oh("radType_specified").checked){if(isNaN(_jtj)||isNaN(_itj)||_jtj>_itj){_67j("IDS_MSG_INVALID_MINMAX");return; }}_erh._ybb(); _8qn._cqh(this._ekg, "vcSlotDomain"); if(this._2oh("radType_specified").checked){var _xyd=_erh._h56(this._ekg, "vcSlotDomain");var _aqi=_erh._u0g(_xyd, "vcScalarSpecified");_aqi.setAttribute("min", _jtj);_aqi.setAttribute("max", _itj);}_erh._iee();this._3le();};_6de._khe=function(){if(this._2oh("radType_specified").checked){this._d0n._ftb._ujk(1);this._2oh("txtMinRange").value = "";this._2oh("txtMaxRange").value = "";}else{this._d0n._ftb._ujk(0);}this._fmb();};_6de._fmb=function(){var _wqn=true;if(this._2oh("radType_specified").checked){_wqn=this._2oh("txtMinRange").value&&this._2oh("txtMaxRange").value;}this._pj8("btnOK", _wqn);};