_zm9.js 9.2 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 _zm9=new _lcm("_zm9");_zm9._jgn=function(_8rm){var _83m=_erh._vtc();this._d0n._qye=_83m.cloneNode(true);this._d0n._mjg=_dth._l7b(this._d0n._qye, _8rm);this._4le();};_zm9._5z2=function(){this._hzh=false;this._hpk=this._d0n._mjg.getAttribute("orientation")=="horizontal";this._d0n._mjm=new _pgk(this._2oh("divComboElements"), this._53g("Combos"), this);this._d0n._q2n=new _pgk(this._2oh("divAxes"), this._53g(this._hpk?"RotatedNumericAxes":"NumericAxes"), this);var _6tm=this._d0n._mjg.selectNodes("v2_topLeftAxis | v2_topRightAxis | v2_bottomLeftAxis | v2_bottomRightAxis");var _ozj=this._d0n._q2n._eq9();for(var i=0; i<_6tm.length; i++){_ozj.selectSingleNode("listItems/listItem[@value='" + _6tm.item(i).nodeName + "']").setAttribute("checked", "true");if(_6tm.item(i).nodeName=='v2_bottomLeftAxis'||_6tm.item(i).nodeName=='v2_bottomRightAxis'){this._hzh=true;} }if(this._d0n._mjg.selectSingleNode("v2_topLeftAxis")){this._d0n._q2n._hwc("v2_topLeftAxis");}else if(this._d0n._mjg.selectSingleNode("v2_topRightAxis")){this._d0n._q2n._hwc("v2_topRightAxis");}else if(this._d0n._mjg.selectSingleNode("v2_bottomLeftAxis")){this._d0n._q2n._hwc("v2_bottomLeftAxis"); }else if(this._d0n._mjg.selectSingleNode("v2_bottomRightAxis")){this._d0n._q2n._hwc("v2_bottomRightAxis"); }this._d0n._q2n._wfn();};_zm9._io9=function(_e5m){if(_e5m._b2g()=="_s4b"){var _bdl=_e5m._3oh();if(_bdl){var _q4l=this._d0n._mjg.selectSingleNode(".//*[@iid='" + _bdl + "']");if(_e5m._1fe()!=_q4l.nodeName){var _33m=_q4l.parentNode;var _c5h=_erh._cnh(_e5m._1fe());_c5h.setAttribute("seriesType", _e5m._5uc());_33m.insertBefore(_c5h, _q4l);_33m.removeChild(_q4l);var _9tm=_q4l.selectNodes("chartNodes | XMLAttributes | v2_chartDataLabels | v2_trendLines");for(var i=0; i<_9tm.length; i++){_c5h.appendChild(_9tm.item(i));}if(_e5m._1fe()=="v2_bar"||_e5m._1fe()=="v2_area"){var _6cl=_q4l.getAttribute('borders');_c5h.setAttribute( 'borders', _6cl||'show' );var _v5h=_q4l.selectSingleNode("v2_solidPalette");if(_v5h){_c5h.appendChild(_v5h);}else{var _wj9=_e5m._1fe()=="v2_bar"?"v2_solidPaletteDefaultNew":"v2_areaPaletteLowSaturationDefaultNew";_q4l.appendChild(_erh._woh(this._53g(_wj9).selectSingleNode("*")));}var _fgf=_q4l.selectSingleNode("v2_conditionalSolidPalette");if(_fgf){_c5h.appendChild(_fgf);}}else{_q4l.appendChild(_erh._woh(this._53g("v2_linePaletteDefaultNew").selectSingleNode("*")));} }else{_q4l.setAttribute("seriesType", _e5m._5uc());}}else{var _icn=this._d0n._q2n._885().getAttribute("value");var _h8n=this._d0n._mjg.selectSingleNode(_icn+"/v2_combinationChartTypes");var _c5h=_erh._u0g(_h8n, _e5m._1fe());_c5h.setAttribute("seriesType", _e5m._5uc());switch(_e5m._1fe()){case "v2_bar":_c5h.appendChild(_erh._woh(this._53g("v2_solidPaletteDefaultNew").selectSingleNode("*")));_c5h.setAttribute("borders", "show");break;case "v2_area":_c5h.appendChild(_erh._woh(this._53g("v2_areaPaletteLowSaturationDefaultNew").selectSingleNode("*")));_c5h.setAttribute("borders", "show");break;case "v2_line":_c5h.appendChild(_erh._woh(this._53g("v2_linePaletteDefaultNew").selectSingleNode("*")));break; }}this._jse();}};_zm9._bgn=function(){this._6ll();this._3le();};_zm9._6ll=function(){if(!this._hzh){if(this._d0n._mjg.selectSingleNode("v2_bottomRightAxis")||this._d0n._mjg.selectSingleNode("v2_bottomLeftAxis")){var _zwj=_erh._987(this._d0n._mjg, 'v2_commonAxis/v2_ordinalAxis/v2_axisLine', false);_zwj.setAttribute( 'majorTickMarkLocation', 'none' );_zwj.setAttribute( 'minorTickMarkLocation', 'none' );this._hzh=true;}}_erh._ybb();_erh._5y(this._d0n._qye);_erh._iee(true);};_zm9._pe4=function(_a6k,_mzj,_zdf){if(_a6k==this._d0n._mjm){this._u7d();}else{this._jse();}};_zm9._g32=function(_a6k,_mzj){var _gy7=_mzj.getAttribute("checked")=="true";if(_gy7){var _6tm=this._d0n._mjg.selectNodes("v2_bottomLeftAxis | v2_bottomRightAxis | v2_topRightAxis | v2_topLeftAxis");if(_6tm.length<2){_67j("IDS_MSG_COMBINATION_PIECES", null, _2dm._zkk);return false;}else{_8qn._cqh(this._d0n._mjg, _mzj.getAttribute("value"));this._jse();}}else{var _h8n=_erh._u0g(this._d0n._mjg, _mzj.getAttribute("value"));if(_h8n.nodeName.indexOf("LeftAxis")!=-1){_h8n.appendChild(_erh._woh(this._53g("v2_primaryAxisDefaultNew").selectSingleNode("*")));}else{_h8n.appendChild(_erh._woh(this._53g("v2_secondaryAxisDefaultNew").selectSingleNode("*")));}var _rkn=_erh._987(_h8n, "v2_combinationChartTypes/v2_bar");_rkn.setAttribute("borders", "show");_rkn.appendChild(_erh._woh(this._53g("v2_solidPaletteDefaultNew").selectSingleNode("*")));_n0n._v1g(_h8n);this._jse();}};_zm9._lzm=function(){_8fm._jgn("_s4b", this._fqn, null, this, null);};_zm9._nem=function(){var _eon=this._d0n._mjm._885().getAttribute("value");var _q4l=this._d0n._mjg.selectSingleNode(".//*[@iid='" + _eon + "']");_8fm._jgn("_s4b", this._fqn, _q4l, this, _eon);};_zm9._ajk=function(){var _eon=this._d0n._mjm._885().getAttribute("value");var _q4l=this._d0n._mjg.selectSingleNode(".//*[@iid='" + _eon + "']");_ath._jnh(_q4l, _qkk._qik("DeleteQueryElements"), _qkk._qik("DeleteConditionalStyles"));this._jse();};_zm9._8v8=function(_qtd,_pgh,_qgh){var _h8n=_qtd.parentNode.parentNode;var _t4m=_h8n.selectNodes(".//*[@comboIndex=" + _cgm._zxc( _pgh ) + "]");var _u4m=_h8n.selectNodes(".//*[@comboIndex=" + _cgm._zxc( _qgh ) + "]");var _oqm=_u4m.length;for(var i=0;i<_t4m.length;i++){_t4m.item(i).setAttribute("comboIndex", _qgh);}if(_u4m.length!=_oqm){alert('length changed');}for(i=0;i<_u4m.length;i++){_u4m.item(i).setAttribute("comboIndex", _pgh);} };_zm9._cgn=function(){var _eon=this._d0n._mjm._885().getAttribute("value");var _q4l=this._d0n._mjg.selectSingleNode(".//*[@iid='" + _eon + "']");var _5qm=_8qn._cik(_q4l);var _jd9=_8qn._4q1(_q4l);_q4l.parentNode.insertBefore(_q4l.parentNode.removeChild(_q4l), _jd9);this._8v8(_q4l, String(_5qm), String(_5qm-1));this._jse();};_zm9._lem=function(){var _eon=this._d0n._mjm._885().getAttribute("value");var _q4l=this._d0n._mjg.selectSingleNode(".//*[@iid='" + _eon + "']");var _5qm=_8qn._cik(_q4l);var _djf=_8qn._dn3(_q4l);_q4l.parentNode.insertBefore(_q4l.parentNode.removeChild(_djf), _q4l);this._8v8(_q4l, String(_5qm), String(_5qm+1));this._jse();};_zm9._jse=function(){var _y1k=this._d0n._mjm._885();var _swf=_y1k?_y1k.getAttribute("value"):null;this._d0n._mjm._bzm();var _icn=this._d0n._q2n._885().getAttribute("value");var _h8n=this._d0n._mjg.selectSingleNode(_icn);if(_h8n){var _68l=_h8n.selectNodes(".//v2_bar | .//v2_line | .//v2_area");for(var i=0; i<_68l.length; i++){var _ywi=_68l.item(i).nodeName;var _mjh=_68l.item(i).getAttribute("seriesType");var _mzj=this._d0n._mjm._767();_mzj.setAttribute("value", _68l.item(i).getAttribute("iid"));_mzj.setAttribute("smallIcon", "v2_chart/" + _n0n._o85(_68l.item(i)));if(this._hpk){switch(_ywi){case "v2_bar":switch(_mjh){case "absolute":_mzj.setAttribute("label", _frh._c6j("IDS_TOOLTIP_CLUSTEREDCOLUMN"));break;case "stacked":_mzj.setAttribute("label", _frh._c6j("IDS_TOOLTIP_STACKEDCOLUMN"));break;case "stacked100Percent":_mzj.setAttribute("label", _frh._c6j("IDS_TOOLTIP_STACKED100PCOLUMN"));break;}break;case "v2_line":switch(_mjh){case "absolute":_mzj.setAttribute("label", _frh._c6j("IDS_TOOLTIP_CLUSTEREDLINE"));break;case "stacked":_mzj.setAttribute("label", _frh._c6j("IDS_TOOLTIP_STACKEDLINE"));break;case "stacked100Percent":_mzj.setAttribute("label", _frh._c6j("IDS_TOOLTIP_STACKED100PLINE"));break;}break;case "v2_area":switch(_mjh){case "absolute":_mzj.setAttribute("label", _frh._c6j("IDS_TOOLTIP_CLUSTEREDAREA"));break;case "stacked":_mzj.setAttribute("label", _frh._c6j("IDS_TOOLTIP_STACKEDAREA"));break;case "stacked100Percent":_mzj.setAttribute("label", _frh._c6j("IDS_TOOLTIP_STACKED100PAREA"));break;}break;}}else{switch(_ywi){case "v2_bar":switch(_mjh){case "absolute":_mzj.setAttribute("label", _frh._c6j("IDS_TOOLTIP_CLUSTEREDBAR"));break;case "stacked":_mzj.setAttribute("label", _frh._c6j("IDS_TOOLTIP_STACKEDBAR"));break;case "stacked100Percent":_mzj.setAttribute("label", _frh._c6j("IDS_TOOLTIP_STACKED100PBAR"));break;}break;case "v2_line":switch(_mjh){case "absolute":_mzj.setAttribute("label", _frh._c6j("IDS_TOOLTIP_CLUSTEREDLINE"));break;case "stacked":_mzj.setAttribute("label", _frh._c6j("IDS_TOOLTIP_STACKEDLINE"));break;case "stacked100Percent":_mzj.setAttribute("label", _frh._c6j("IDS_TOOLTIP_STACKED100PLINE"));break;}break;case "v2_area":switch(_mjh){case "absolute":_mzj.setAttribute("label", _frh._c6j("IDS_TOOLTIP_CLUSTEREDAREA"));break;case "stacked":_mzj.setAttribute("label", _frh._c6j("IDS_TOOLTIP_STACKEDAREA"));break;case "stacked100Percent":_mzj.setAttribute("label", _frh._c6j("IDS_TOOLTIP_STACKED100PAREA"));break;}break;}}}this._d0n._mjm._wfn();if(_68l.length>0){var _mzj=_swf?this._d0n._mjm._eq9().selectSingleNode(".//listItem[@value='" + _swf + "']"):null;if(_mzj){_mzj.setAttribute("selected", "true");}else{this._d0n._mjm._gwc(0);}}}this._d0n._mjm._wfn();this._u7d();};_zm9._u7d=function(){var _y1k=this._d0n._mjm._885();this._pj8("btnNew", this._d0n._mjm._tfe().length>0);this._pj8("btnEdit", _y1k);this._pj8("btnDelete", _y1k&&this._d0n._mjm._tfe().length>1);this._pj8("btnUp", _y1k&&_y1k.previousSibling);this._pj8("btnDown", _y1k&&_y1k.nextSibling);};