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 _z45=new _lcm("_z45");_z45._jgn=function(_u4c, _83m, _rlm, _x7i, _wk9, _jof, _obm, _kyf, _vff, _ebe){this._irl=_83m;this._vhm=_rlm;this._ajm=_rlm.length>0?_dth._tq9(_rlm[0]):null;this._939=_wk9;this._fze=_jof;this._cyh=_x7i;this._gqb=_u4c;this._c3f=_kyf!=undefined?_kyf:'style';this._rxe=_vff!=undefined?_vff:null;this._3id=_ebe!=undefined?_ebe:null;if(_obm!=undefined){this._4le(_u4c, null, _obm);}else{this._4le(_u4c);}}; _z45._5z2=function(){this._2oh("divDataItems").scrollTop=0;if(this._cyh){this._9tb=new _pgk(this._2oh("divDataItems"), _frh._53g("EmptyList"), this);this._c43();this._9tb._wfn();if(this._939){this._9tb._hwc(this._939, false, false);}if(!this._9tb._885()){this._9tb._gwc(0, false);}}else{var _u2k=_frh._53g('ModelTree');_7aj._ymh(_u2k, this._irl, true);var _lai=_7aj._a46(_u2k);this._atb=new _vgk(this._2oh("divDataItems"), _u2k, this);this._atb._wfn();var _3ih=_lai?"treeNode":"treeNode/treeNode";var _smi=_u2k.selectSingleNode(_3ih);this._atb._gqh(_smi, false, false);}this._93n=new _jgk(this._2oh("tblType"), this._53g("cboType"), null, this);this._pmb();};_z45._o46=function(){if(this._9tb){this._9tb._fdm();delete this._9tb;}else if(this._atb){this._atb._fdm();delete this._atb;}this._93n._fdm();delete this._93n;delete this._irl;delete this._vhm;delete this._ajm;delete this._fze;delete this._cyh;};_z45._bgn=function(){var _83m=this._irl;var _rlm=this._vhm;var _b6k=this._fze;var _qxj=this._fi5();var _pen=this._93n._qik();this._3le();switch(_pen){case "strings":switch(this._c3f){case 'style':_8fm._jgn("_vx2", this._gqb, _83m, _rlm, _qxj, null, _b6k);break;case 'palette':_8fm._jgn("_zc1", this._gqb, _83m, _rlm, _qxj, null, _b6k, this._rxe, this._3id);break;}break;case "numeric":switch(this._c3f){case 'style':_8fm._jgn("_sk3", this._gqb, _83m, _rlm, _qxj, _q7g._skk, null, _b6k);break;case 'palette':_8fm._jgn("_qo1", this._gqb, _83m, _rlm, _qxj, _q7g._skk, null, _b6k, this._rxe, this._3id);break;}break;case "date":switch(this._c3f){case 'style':_8fm._jgn("_sk3", this._gqb, _83m, _rlm, _qxj, _q7g._xzm, null, _b6k);break;case 'palette':_8fm._jgn("_qo1", this._gqb, _83m, _rlm, _qxj, _q7g._xzm, null, _b6k, this._rxe, this._3id);break;}break;case "datetime":switch(this._c3f){case 'style':_8fm._jgn("_sk3", this._gqb, _83m, _rlm, _qxj, _q7g._r8j, null, _b6k);break;case 'palette':_8fm._jgn("_qo1", this._gqb, _83m, _rlm, _qxj, _q7g._r8j, null, _b6k, this._rxe, this._3id);break;}break;case "time":switch(this._c3f){case 'style':_8fm._jgn("_sk3", this._gqb, _83m, _rlm, _qxj, _q7g._yzm, null, _b6k);break;case 'palette':_8fm._jgn("_qo1", this._gqb, _83m, _rlm, _qxj, _q7g._yzm, null, _b6k, this._rxe, this._3id);break;}break;case "interval":switch(this._c3f){case 'style':_8fm._jgn("_sk3", this._gqb, _83m, _rlm, _qxj, _q7g._t8j, null, _b6k);break;case 'palette':_8fm._jgn("_qo1", this._gqb, _83m, _rlm, _qxj, _q7g._t8j, null, _b6k, this._rxe, this._3id);break;}break;}};_z45._fg4=function(_a6k,_mzj,_zdf){this._pmb();};_z45._7k2=function(_a6k,_mzj){this._bgn();};_z45._pe4=function(_a6k,_mzj,_zdf){this._pmb();};_z45._oi2=function(_a6k,_mzj){this._bgn();};_z45._fi5=function(){if(this._atb){var _txd=this._atb._5r9();var _79k=_txd.getAttribute("name");var _uwm=_txd.getAttribute("query");var _958=_agm._rg8(this._irl, _uwm, _79k);}else{var _79k=this._9tb._885().getAttribute("value");var _958=_r0n._62g(this._ajm, _79k);}return _958;};_z45._pmb=function(){var _a6k=this._93n._o2g();var _ozj=_a6k._eq9();_8qn._k5g(_ozj, "listItems/listItem");var _958=this._fi5();if(!_958){this._93n._mqh(false);_a6k._wfn();this._pj8("btnOk", false);}else{var _dmm=[];switch(_958.nodeName){case "dataItemTuple":case "dataItemSet":case "dataItemChildrenSet":case "dataItemSetExpression":case "dataItemLevelSet":case "dataItemHierarchySet":case "dataItemNamedSet":case "dataItemMember":case "dataItemCalculatedMember":_dmm.push("strings");break;case "dataItemMeasurePercentage":case "dataItemCalculatedMeasure":case "dataItemMeasure":_dmm.push("numeric");break;default:switch(_nlk._p6b(_958)){case _q7g._tkk:case _q7g._skk:case _q7g._afm:_dmm.push("numeric");break;case _q7g._bml:_dmm.push("strings");break;case _q7g._r8j:_dmm.push("datetime");break;case _q7g._t8j:_dmm.push("interval");break;case _q7g._xzm:_dmm.push("date");break;case _q7g._yzm:_dmm.push("time");break;default:if(_nlk._195(_958)){_dmm.push("numeric");}else{_dmm.push("strings");_dmm.push("numeric");_dmm.push("datetime");_dmm.push("interval");_dmm.push("date");_dmm.push("time");}break;}break;}for(var i=0; i<_dmm.length;++i){var _pen=_dmm[i];var _33l;switch(_pen){case "strings":_33l="IDS_LBL_STRINGS";break;case "numeric":_33l="IDS_LBL_NUMERIC_RANGE";break;case "datetime":_33l="IDS_LBL_DATETIME_RANGE";break;case "date":_33l="IDS_LBL_DATE_RANGE";break;case "time":_33l="IDS_LBL_TIME_RANGE";break;case "interval":_33l="IDS_LBL_INTERVAL_RANGE";break;}var _mzj=_a6k._767();_mzj.setAttribute("label", _frh._c6j(_33l));_mzj.setAttribute("value", _pen);}this._93n._mqh(_dmm.length>1);this._pj8("btnOk", true);_a6k._wfn();this._93n._gwc(0);}};_z45._c43=function(){var _ozj=this._9tb._eq9();var _ini=_ozj.selectSingleNode("listItems");var _5rn=_ozj.ownerDocument;for(var i=0; i<this._cyh.length; i++){var _qxj=this._cyh[i];var _vdn=_qxj.getAttribute("name");var _mzj=_ini.appendChild(_5rn.createElement("listItem"));_mzj.setAttribute("roid", _qxj.getAttribute("iid"));_mzj.setAttribute("label", _vdn);_mzj.setAttribute("value", _vdn);_mzj.setAttribute("smallSvgIcon", _nlk._g3g(_qxj));_mzj.setAttribute("nodeName", _qxj.nodeName);}};
|