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 _sk3=new _lcm("_sk3");_sk3._jgn=function(_u4c, _jtd, _5zb, _qxj, _bsj, _8mi, _jof){this._wdd=_jtd;this._2ob=_5zb;this._ihj=_qxj;this._23i=_8mi;this._fgj=_bsj;switch(this._fgj){case _q7g._tkk:case _q7g._skk:case _q7g._afm:this._ptk=_frh._c6j("IDS_TOOLTIP_newNumericValue");this._4le(_u4c, _jof, _frh._c6j("IDS_TITLE_rangeCondStyleNumeric"));break;case _q7g._r8j:this._ptk=_frh._c6j("IDS_TOOLTIP_newDateTimeValue");this._4le(_u4c, _jof, _frh._c6j("IDS_TITLE_rangeCondStyleDateTime"));break;case _q7g._xzm:this._ptk=_frh._c6j("IDS_TOOLTIP_newDateValue");this._4le(_u4c, _jof, _frh._c6j("IDS_TITLE_rangeCondStyleDate"));break;case _q7g._yzm:this._ptk=_frh._c6j("IDS_TOOLTIP_newTimeValue");this._4le(_u4c, _jof, _frh._c6j("IDS_TITLE_rangeCondStyleTime"));break;case _q7g._t8j:this._ptk=_frh._c6j("IDS_TOOLTIP_newIntervalValue");this._4le(_u4c, _jof, _frh._c6j("IDS_TITLE_rangeCondStyleInterval"));break;default:_vzm._ozm("Invalid data type for the range dialog.");}};_sk3._5z2=function(){var _2om=this._2oh("btnNew");_2om.title=this._ptk;this._utl=this._2oh("txtName");_4qn._1je( this._2oh("dataItemName"), this._ihj.getAttribute("name") );this._2tb={};if(this._23i){if(this._23i.getAttribute("type")=="number"){var _20e=this._23i.selectNodes(".//styleRange[@value]");for(var i=0; i<_20e.length; i++){var _uxm=_20e.item(i).getAttribute("value");var _fck=_tf7._ce(_uxm);_20e.item(i).setAttribute("value", _fck);}}this._iad=true;this._ujm=new _jpc(this._2oh("divRange"), this._23i, this);this._utl.value=this._23i.getAttribute("name");switch(this._23i.getAttribute("type")){case "number":this._fgj=_q7g._skk;break;case "dateTime":this._fgj=_q7g._r8j;break;case "date":this._fgj=_q7g._xzm;break;case "time":this._fgj=_q7g._yzm;break;case "interval":this._fgj=_q7g._t8j;break;}}else{var _wln=_frh._53g("emptyNumericRange");this._tre(_wln);this._ujm=new _jpc(this._2oh("divRange"), _wln, this);this._utl.value=_agm._wr(this._wdd);}this._ujm._wfn();var _g3j=this._2oh("tblDefault");this._6lg=new _a45(this._xp9(), _g3j, "styleDefault", this);if(this._23i&&this._23i.selectSingleNode("styleDefault")){this._6lg._d76(this._23i.selectSingleNode("styleDefault"));}this._iad=false;this._51n();};_sk3._tre=function(_gsm){switch(this._fgj){case _q7g._tkk:case _q7g._skk:case _q7g._afm:_gsm.setAttribute("type", "number");break;case _q7g._r8j:_gsm.setAttribute("type", "dateTime");break;case _q7g._t8j:_gsm.setAttribute("type", "interval");break;case _q7g._xzm:_gsm.setAttribute("type", "date");break;case _q7g._yzm:_gsm.setAttribute("type", "time");break;}};_sk3._o46=function(){this._ujm._fdm();this._ujm=null;this._6lg._fdm();this._6lg=null;_4qn._vb7(this._2oh('tblDefault'));};_sk3._bgn=function(){if(this._utl.value==""){setTimeout('_67j("IDS_ERR_CONDITIONAL_STYLE_NO_NAME")', 0);return false;}if(this._23i){if (this._wdd.selectSingleNode("namedConditionalStyles/*[@name='" + this._utl.value + "']")){if(this._23i.getAttribute("name")!=this._utl.value){setTimeout('_67j("IDS_ERR_CONDITIONAL_STYLE_NAME_NOT_UNIQUE")', 0);return false;}}this._23i.parentNode.removeChild(this._23i);}else{if (this._wdd.selectSingleNode("namedConditionalStyles/*[@name='" + this._utl.value + "']")){setTimeout('_67j("IDS_ERR_CONDITIONAL_STYLE_NAME_NOT_UNIQUE")', 0);return false;}}var _4vl=this._ujm._u7b();var _xif=_erh._h56(this._wdd, "namedConditionalStyles");var _65h=_erh._u0g(_xif, "rangeConditionalStyle");_65h.setAttribute("name", this._utl.value);this._tre(_65h);_pf7._25b(_65h, this._ihj);if(_4vl.length>1){var _5lf=_erh._u0g(_65h, "styleRanges");for(var i=0; i<_4vl.length; i++){var _r4k=_4vl[i];var _xum=_r4k._075();var _r7h=_erh._e5j(_xum._mik());if(_r4k._22g()){if(_r4k._a4g()){_r7h.setAttribute("inclusive", "true");}if(_65h.getAttribute("type")=="number"){_r7h.setAttribute("value", _tf7._h61(_r4k._22g()));}else{_r7h.setAttribute("value", _r4k._22g());}_5lf.appendChild(_r7h);}else{_65h.appendChild(_r7h);}}}else{_65h.appendChild(_4vl[0]._075()._mik());}if(this._6lg){_65h.appendChild(this._6lg._mik());}if(this._23i){var _44k=this._wdd.selectNodes(".//conditionalStyleRef[@refConditionalStyle='" + this._23i.getAttribute("name") + "']");for(var i=0; i<_44k.length; i++){_44k.item(i).setAttribute("refConditionalStyle", this._utl.value);}}else if(this._2ob){for(var i=0; i<this._2ob.length; i++){var _k64=_erh._h56(this._2ob[i], "conditionalStyleRefs");var _zz4=_erh._u0g(_k64, "conditionalStyleRef");_zz4.setAttribute("refConditionalStyle", this._utl.value);}}this._3le();};_sk3._0qh=function(){switch(this._fgj){case _q7g._tkk:case _q7g._skk:case _q7g._afm:_8fm._jgn( "cchl/dialogs/_9qc", this._xp9(), _frh._53g("numberTextPrompt"), _frh._c6j("IDS_MSG_ENTER_VALUE"), _frh._c6j("IDS_CCHL_TITLE_BOUNDARY"), null, this );break;case _q7g._r8j:_8fm._jgn( "cchl/dialogs/_m4b", this._xp9(), _frh._53g("dateTimePrompt"), null, _frh._c6j("IDS_CCHL_TITLE_DATE_TIME"), null, this );break;case _q7g._xzm:_8fm._vqh( "cchl/dialogs/_m4b", "_dje", this._xp9(), _frh._53g("dateTimePrompt"), null, _frh._c6j("IDS_CCHL_TITLE_DATE"), null, this );break;case _q7g._yzm:_8fm._vqh( "cchl/dialogs/_m4b", "_lje", this._xp9(), _frh._53g("dateTimePrompt"), null, _frh._c6j("IDS_CCHL_TITLE_TIME"), null, this );break;case _q7g._t8j:_8fm._jgn( "cchl/dialogs/_n4b", this._xp9(), _frh._53g("intervalPrompt"), null, _frh._c6j("IDS_CCHL_TITLE_INTERVAL"), null, this );break;}};_sk3._i51=function(_tyf,_ckf){var _ick;var _nii=this._ujm._u7b().length;if(this._iad==true){_ick=_ckf.nodeName;}else{_ick=this._ujm._u7b().length==1?"styleRangeRemaining":"styleRange";}var _2nn=new _a45(this._xp9(), _tyf, _ick, this);if(_ckf){_2nn._d76(_ckf);}this._2tb[_nii]=_2nn;this._51n();return _2nn;};_sk3._n1=function(_2hc){return _2hc._mik();};_sk3._j51=function(_1qf){_1qf._fdm();for(var s in this._2tb){if(_1qf==this._2tb[s]){delete this._2tb[s];break;}}setTimeout(this._51n.bind(this), 0);};_sk3._f6=function(_uxm){_gem(_frh._c6j("IDS_MSG_VALUE_ALREADY_EXISTS", _uxm), null, _2dm._bfm);};_sk3._j9=function(_uxm){_gem(_frh._c6j("IDS_MSG_VALUE_INVALID"), null, _2dm._bfm);};_sk3._io9=function(_e5m){switch(this._fgj){case _q7g._tkk:case _q7g._skk:case _q7g._afm:this._ujm._qh8(_9qc._d66()[0]._l3g());break;case _q7g._t8j:this._ujm._qh8(_n4b._d66()[0]._l3g());break;case _q7g._xzm:case _q7g._yzm:case _q7g._r8j:this._ujm._qh8(_m4b._d66()[0]._l3g());break;}};_sk3._vw=function(_o15){this._51n();};_sk3._ef8=function(){return this._utl.value;};_sk3._a6j=function(){return this._wdd;};_sk3._51n=function(){if(this._ujm&&this._6lg){var _yy1=(this._6lg._mik().selectSingleNode("*")!=null);var _tx4=false;if(!_yy1){for(var s in this._2tb){if(this._2tb[s]._mik().selectSingleNode("*")!=null){_tx4=true;break;}}}this._pj8("btnOK", _tx4||_yy1);}};
|