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 _qo1=new _lcm("_qo1");_qo1._jgn=function(_u4c, _jtd, _5zb, _qxj, _bsj, _wsa, _jof, _vff, _ebe){this._wdd=_jtd;this._2ob=_5zb;this._ihj=_qxj;this._3ca=_wsa;this._fgj=_bsj;this._rxe=_vff!=undefined?_vff:null;this._3id=_ebe!=undefined?_ebe:null;var _ioc=this._rxe?this._rxe.getAttribute('showInLegend'):null;this._2bd=_ioc?_ioc=='show':false;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_rangeCondPalNumeric"));break;case _q7g._r8j:this._ptk=_frh._c6j("IDS_TOOLTIP_newDateTimeValue");this._4le(_u4c, _jof,_frh._c6j("IDS_TITLE_rangeCondPalDateTime"));break;case _q7g._xzm:this._ptk=_frh._c6j("IDS_TOOLTIP_newDateValue");this._4le(_u4c, _jof,_frh._c6j("IDS_TITLE_rangeCondPalDate"));break;case _q7g._yzm:this._ptk=_frh._c6j("IDS_TOOLTIP_newTimeValue");this._4le(_u4c, _jof,_frh._c6j("IDS_TITLE_rangeCondPalTime"));break;case _q7g._t8j:this._ptk=_frh._c6j("IDS_TOOLTIP_newIntervalValue");this._4le(_u4c, _jof,_frh._c6j("IDS_TITLE_rangeCondPalInterval"));break;default:_vzm._ozm("Invalid data type for the range dialog.");}};_qo1._5z2=function(){this._cb3=false;var _2om=this._2oh("btnNew");_2om.title=this._ptk;_4qn._1je( this._2oh("dataItemName"), this._ihj.getAttribute("name") );this._2tb={};this._ut2=_m0d._if7[_m0d._hf7[_m0d._bf[this._3id]]];this._z2d();var _8md=false;if(this._3ca){if(this._3ca.selectSingleNode(this._ut2)&&!this._cb3){_8md=true;}}this._2oh('chkDefaultPalette').checked=!_8md;this._1f5();this._51n();};_qo1._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;}};_qo1._o46=function(){this._ujm._fdm();delete this._ujm;};_qo1._bgn=function(){var _4vl=this._ujm._u7b();if(_4vl.length>1){if(!this._3ca){this._3ca=_erh._cnh(_m0d._hf7[_m0d._bf[this._3id]]);this._rxe.appendChild(this._3ca);}this._tre(this._3ca);var _yz4=_erh._h56(this._3ca, 'conditionalDataItem');var _fsm=_6aj._tq9(this._ihj);_yz4.setAttribute( 'refQuery', _fsm.getAttribute( 'name' ) );_yz4.setAttribute( 'refDataItem', this._ihj.getAttribute( 'name' ) );var _6rm=_erh._h56(this._3ca, _m0d._543[_m0d._bf[this._3id]]);while(_6rm.childNodes.length>0){_6rm.removeChild(_6rm.childNodes[0]);}var _mpa=this._3ca.selectSingleNode(this._ut2);if(_mpa){this._3ca.removeChild(_mpa);}var _kpi=null;for(var i=0;i<_4vl.length;i++){var _r4k=_4vl[i];var _oan=_r4k._075();var _kpi=_erh._e5j(_oan._xjl());if(_r4k._22g()){if(_r4k._a4g()){_kpi.setAttribute("inclusive", "true");}if(this._3ca.getAttribute("type")=="number"){_kpi.setAttribute("value", _tf7._h61(_r4k._22g()));}else{_kpi.setAttribute("value", _r4k._22g());}_6rm.appendChild(_kpi);}else{if(!this._2oh('chkDefaultPalette').checked){this._3ca.appendChild(_kpi);}}}}else{_67j("IDS_ERR_conditionalPaletteRangeNoRange", null, _2dm._zkk);return;}this._3le();};_qo1._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:_m4b._jgn(this._xp9(), _frh._53g("dateTimePrompt"), _m4b._el8, null, _frh._c6j("IDS_CCHL_TITLE_DATE_TIME"), null, this);_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;}};_qo1._i51=function(_tyf,_ckf){var _ick;var _nii=this._ujm._u7b().length;_tyf.setAttribute('id', "_qo1_rangeidx_"+_nii);if(this._iad==true){_ick=_ckf.nodeName;}else{_ick=this._ujm._u7b().length==1?this._ut2:_m0d._3s3[_m0d._bf[this._3id]];}var _k6e=_ick==this._ut2?'<span class="clsDialogText">' + _frh._c6j('IDS_LBL_conditionalPaletteRangeDefaultText') + '</span>':null;var _2nn=new _8k3(this._xp9(), _tyf, _ick, this, this._3id, this._2bd, _k6e);if(_ckf&&this._iad){_2nn._d76(_ckf);}this._2tb[_nii]=_2nn;this._51n();return _2nn;};_qo1._n1=function(_2hc){return _2hc._xjl();};_qo1._j51=function(_1qf){_1qf._fdm();for(var s in this._2tb){if(_1qf==this._2tb[s]){delete this._2tb[s];break;}}setTimeout('_qo1._51n()', 0);};_qo1._f6=function(_uxm){_gem(_frh._c6j("IDS_MSG_VALUE_ALREADY_EXISTS", _uxm), null, _2dm._bfm);};_qo1._j9=function(_uxm){_gem(_frh._c6j("IDS_MSG_VALUE_INVALID"), null, _2dm._bfm);};_qo1._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;}};_qo1._vw=function(_o15){this._51n();};_qo1._ef8=function(){};_qo1._a6j=function(){return this._wdd;};_qo1._l97=function(){return this._3ca;};_qo1._51n=function(){this._pj8("btnOK", true);};_qo1._z2d=function(){if(this._3ca){ var _sn1=this._3ca.selectSingleNode(this._ut2);if(!_sn1){var _wbc=_erh._cnh(this._ut2);switch(this._ut2){case 'v2_rangeConditionalRemaining':_wbc.appendChild(_fnl._ip1());break;case 'v2_pointRangeRemaining':_wbc.appendChild(_fnl._hp1());break;case 'v2_lineRangeRemaining':_wbc.appendChild(_fnl._v12());break;}this._3ca.appendChild(_wbc);this._cb3=true;}if(this._3ca.getAttribute("type")=="number"){var _4nf=this._3ca.selectNodes(".//" + _m0d._3s3[_m0d._bf[this._3id]] + "[@value]");for(var i=0; i<_4nf.length; i++){var _uxm=_4nf.item(i).getAttribute("value");var _fck=_tf7._ce(_uxm);_4nf.item(i).setAttribute("value", _fck);}}this._iad=true;this._ujm=new _jpc(this._2oh("divRange"), this._3ca, this);switch(this._3ca.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._ujm._wfn();this._iad=false;};_qo1._1f5=function(){var _o8n=null;for(var s in this._2tb){_o8n=this._2tb[s]._xjl();if(_o8n&&_o8n.nodeName==this._ut2){this._2tb[s]._6l8(this._2oh('chkDefaultPalette').checked);break;}}};
|