123456 |
- // 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 _jqc=new _lcm("_jqc", "dlgVizValueRange" );_jqc._jgn=function(_d3k){this._0ij=_d3k;this._4le();};_jqc._5z2=function(){var _6mn=_8qn._12g(this._0ij, "viz");this._b6a("div_radType_filtered", true);if(_0qn._e4g(_6mn)){this._b6a("div_radType_filtered", false);}var _9ua=this._0ij.selectSingleNode("vizValueRange/*");this._d0n._ftb=new _lfn(this._2oh("deckRangeType"));this._b6a("div_radType_allDetails", false);var _4sg=false;switch(_9ua.nodeName){case "vizValueRangeComputed":this._2oh("radType_" + _9ua.getAttribute("rangeData")).checked = true;_4sg=_9ua.getAttribute("rangeData")=="allDetails";this._d0n._ftb._ujk(0);this._2oh("chkIncludeZero").checked = (_9ua.getAttribute("rangeIncludesZero")=="true");break;case "vizValueRangeSpecified":this._2oh("radType_specified").checked=true;this._d0n._ftb._ujk(1);this._2oh("txtMinRange").value = _9ua.getAttribute("min");this._2oh("txtMaxRange").value = _9ua.getAttribute("max");break;}if(_0qn._e4g(_6mn)&&(_6mn.selectSingleNode(".//masterDetailLinks")||_4sg)){this._b6a("div_radType_allDetails", true);}_4qn._0s(this._2oh("txtMinRange"), this._fmb.bind(this), true, "decimal");_4qn._0s(this._2oh("txtMaxRange"), this._fmb.bind(this), true, "decimal");this._fmb();};_jqc._o46=function(){_4qn._0j(this._2oh("txtMinRange"));_4qn._0j(this._2oh("txtMaxRange"));};_jqc._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();var _i8h=this._0ij.selectSingleNode("vizValueRange");_8qn._cqh(_i8h, "*");if(this._2oh("radType_specified").checked){var _aqi=_erh._u0g(_i8h, "vizValueRangeSpecified");_aqi.setAttribute("min", _jtj);_aqi.setAttribute("max", _itj);}else{var _ixj=_erh._u0g(_i8h, "vizValueRangeComputed");if(this._2oh("radType_all").checked){_ixj.setAttribute("rangeData", "all");}else if(this._2oh("radType_allDetails").checked){_ixj.setAttribute("rangeData", "allDetails");}else if(this._2oh("radType_filtered").checked){_ixj.setAttribute("rangeData", "filtered");}_ixj.setAttribute("rangeIncludesZero", this._2oh("chkIncludeZero").checked?"true":"false");} _erh._iee();this._3le();};_jqc._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._2oh("chkIncludeZero").checked=true;}this._fmb();};_jqc._fmb=function(){var _wqn=true;if(this._2oh("radType_specified").checked){_wqn=this._2oh("txtMinRange").value&&this._2oh("txtMaxRange").value;}this._pj8("btnOK", _wqn);};_jqc._b6a=function(_ksn,_3zk){var _iei=this._2oh(_ksn);_iei.style.display=_3zk?"":"none";if(_zpn._qsh["hal"]["enableAccessibility"]){var _jyl=_iei.querySelector("INPUT");if(_jyl.type=="radio"){_jyl.disabled=!_3zk; }}};
|