_1dm.js 3.1 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 _1dm=new _lcm("_1dm");_1dm._jgn=function(_8rm,_u4c,_wug,_b6k,_9gf){this._d0n._0jm=_8rm;this._d0n._vxe=_9gf;this._d0n._ngg=_wug;this._4le(_u4c, _b6k);};_1dm._5z2=function(){this._d0n._crl=null;this._d0n._wpk=new _jgk(this._2oh("cboShape"), this._53g("cboDataPointShape").appendChild(_frh._53g("dataPointShape")).parentNode, null, this);this._d0n._3ql=new _jgk(this._2oh("cboXPos"), _frh._53g("numericPosition"), null, this);this._d0n._4ql=new _jgk(this._2oh("cboYPos"), _frh._53g("numericPosition"), null, this);this._d0n._wpk._hwc("plainX");this._d0n._3ql._gwc(0);this._d0n._4ql._gwc(0);this._2oh("trYPos").style.display = this._d0n._ngg?"":"none";_4qn._1je( this._2oh("divXPosName"), _frh._c6j(this._d0n._ngg?"IDS_LBL_XPOSTYPE":"IDS_LBL_NUMERICPOSTYPE") );this._qsb={};this._d0n._4km="black";_u0n._2b5(this._2oh("btnColor"), this._d0n._4km);this._2oh("txtLabel").value = _frh._c6j("IDS_MSG_NEWMARKER");this._jse();};_1dm._bgn=function(){var _1ym=this._d0n._3ql._qik();var _0ym=this._2oh("txtXPosValue").value;var _gbm=_n0n._o61(_0ym, _1ym);if(_gbm===null){return;}if(this._d0n._ngg){var _5ym=this._d0n._4ql._qik();var _4ym=this._2oh("txtYPosValue").value;var _hbm=_n0n._o61(_4ym, _5ym);if(_hbm===null){return;}this._d0n._vdd=_n0n._uy2(this._d0n._vxe, _1ym, _gbm, _5ym, _hbm, this._2oh("txtLabel").value, this._d0n._wpk._qik(), this._d0n._4km);}else{this._d0n._vdd=_n0n._4ee(this._d0n._vxe, _1ym, _gbm, this._2oh("txtLabel").value, this._d0n._wpk._qik(), this._d0n._4km);}this._3le();};_1dm._g67=function(_35k,_mzj){if(_35k==this._d0n._3ql){this._jse("XPos");}else if(_35k==this._d0n._4ql){this._jse("YPos");}};_1dm._kvc=function(){_8fm._jgn( "cchl/dialogs/_1zm", this._xp9(), false, this._d0n._4km, _frh._c6j( "IDS_LBL_COLOR" ), this );};_1dm._io9=function(_e5m){switch(_e5m._b2g()){case "_1zm":this._d0n._4km=_e5m._6ik();_u0n._2b5(this._2oh("btnColor"), this._d0n._4km);}};_1dm._mp9=function(){return this._d0n._vdd;};_1dm._jse=function(_ton){if(!_ton||_ton=="XPos"){this._7xh("XPos", this._d0n._3ql._qik());}if(!_ton||_ton=="YPos"){this._7xh("YPos", this._d0n._4ql._qik());}};_1dm._7xh=function(_ton,_pen){var _zzb=true;switch(_pen){case "staticValue":case "dataMean":this._2oh("lbl" + _ton + "Label").style.visibility = "visible";this._2oh("txt" + _ton + "Value").style.visibility = "visible";_4qn._1je( this._2oh("lbl" + _ton + "Label"), _frh._c6j("IDS_LBL_CHART_" + _pen) );this._2oh("txt" + _ton + "Value").value = "0";break;case "percentile":case "percentAlongAxis":_zzb=false;this._2oh("lbl" + _ton + "Label").style.visibility = "visible";this._2oh("txt" + _ton + "Value").style.visibility = "visible";_4qn._1je( this._2oh("lbl" + _ton + "Label"), _frh._c6j("IDS_LBL_CHART_" + _pen) );this._2oh("txt" + _ton + "Value").value = "50";break;case "calculation":case "layoutCalculation":case "dataMin":case "dataMax":this._2oh("lbl" + _ton + "Label").style.visibility = "hidden";this._2oh("txt" + _ton + "Value").style.visibility = "hidden";}this._qsb[_ton]=_zzb;};