_mce.js 4.9 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 _mce=new _lcm("_mce");_mce._jgn=function(_rtd,_b6k,_s8f,_u1c){this._ydd=_rtd;this._tue=_s8f;this._tob=(_u1c===undefined)?_agm._vuc(_dth._ug8(_rtd)):_u1c;this._4le(null, _b6k);};_mce._hvc=function(){_hyc._7gn(this);};_mce._zjb=function(_jvk){if(_jvk&&_jvk[0]){this._2oh("txtComponentPath").title=_jvk[0].searchPath;this._2oh("txtComponentPath").value=_jvk[0].defaultName;}setTimeout(this._7wh.bind(this), 0); return true;};_mce._cy2=function(_jug){if(_jug){return;}if(_qkk._qik("UseGlassOpenSaveDialog")){ var _09i=["report", "reportTemplate"];_ypn._4qh(this._zjb.bind(this), _09i);}else{var _s4k={report:true,reportTemplate:true};_8fm._vqh( "_a4b", "_8kk", this, _s4k, null );}this._k4a();};_mce._slb=function(){if(this._njj){this._njj._bzm();}else{this._njj=new _vgk( this._2oh( "divComponents" ), _frh._53g( "AsyncTree" ), this );}var _lvi=_y7g._le();var _1wg=this._2oh("radThisReport").checked;var _83m=_1wg?_erh._vtc():_xb5._a6j(this._2oh("txtComponentPath").title);if(_83m){var nl=_83m.selectNodes("layouts//page");var _buk=this._njj._cr9();for(var i=0;i<nl.length;i++){this._hn8(nl.item(i), _buk, _1wg, _lvi);}}this._njj._wfn();var _t2k=this._njj._cr9().selectSingleNode( ".//treeNode[@label=" + _cgm._zxc( this._ydd.getAttribute( "refLayoutElement" ) ) + "]" );if(_t2k){this._njj._gqh(_t2k);this._njj._6sc(_t2k);}if(!this._njj._cr9().selectSingleNode(".//treeNode")){this._njj._u6g(_frh._c6j(_83m?"IDS_MSG_NO_LCR":"IDS_MSG_LCR_REPORT_NOT_CACHED"));}};_mce._za1=_6qn._cdm( ["layoutComponent", "vizDataSet", "vizControl", "customControlDataSet", "listControl"] );_mce._v1=_6qn._cdm([]);_mce._hn8=function(_x6h,_ksa,_1wg,_lvi){var nl=_x6h.selectNodes("*");var _tzl=nl.length;for(var i=0;i<_tzl;i++){var n=nl.item(i);var _ick=n.nodeName;if(this._za1.has(_ick)||(!_1wg&&this._v1.has(_ick))){continue;}if(n.getAttribute("name")&&_geb._ile[_ick]){this._hn8(n, this._6g7(n, _ksa, _lvi.has(_ick)), _1wg, _lvi);}else{this._hn8(n, _ksa, _1wg, _lvi);}}};_mce._6g7=function(_x6h,_ksa,_9xl){var _ick=_x6h.nodeName;var _t2k=_ksa.appendChild(_ksa.ownerDocument.createElement("treeNode"));_t2k.setAttribute( "expandable", "true" );_t2k.setAttribute( "expanded", "true" );_t2k.setAttribute( _9xl?"smallSvgIcon":"smallIcon", _9xl?( "def_el_" + _ick ):( _ick + ".gif" ) );_t2k.setAttribute("specName", _ick);_t2k.setAttribute( "label", _x6h.getAttribute( "name" ) );return _t2k;};_mce._5z2=function(){var _y6h=this._ydd.selectSingleNode("reportPath");this._2oh("radThisReport").checked=!_y6h;this._2oh("radAnotherReport").checked=!!_y6h;this._2oh( "radThisReport" ).style.display = "";this._2oh( "radAnotherReport" ).style.display = "";this._2oh( "lblThisReport" ).style.display = "";var _vdn=_y6h?_dth._hr9( _y6h, "ReportName" ):"";this._2oh("txtComponentPath").value=_vdn;this._2oh( "txtComponentPath" ).title = _y6h?_y6h.getAttribute( "path" ):"";this._slb();this._zj6();};_mce._o46=function(){delete this._ydd;this._njj._fdm();this._njj=null;};_mce._bgn=function(){var _20c=this._2oh("radAnotherReport").checked;var _y6h=this._ydd.selectSingleNode("reportPath");var _6b8=this._ydd.getAttribute("refLayoutElement");var _dwm=this._njj._5r9().getAttribute("label");if((_6b8!=_dwm)||!_20c ||( _y6h&&( _y6h.getAttribute( "path" ) != this._2oh( "txtComponentPath" ).title ) ) ){_8qn._k5g(this._ydd, "*");}if(this._tue){_erh._ybb();}this._ydd.setAttribute( "refLayoutElement", this._njj._5r9().getAttribute( "label" ) );if(_20c){var _y6h=_erh._h56(this._ydd, "reportPath");_y6h.setAttribute( "path", this._2oh( "txtComponentPath" ).title );_dth._ru9( _y6h, "ReportName", this._2oh( "txtComponentPath" ).value );if(this._tob){_wle._k77(this._ydd);}}if(this._tue){_erh._iee(true);}this._3le();};_mce._fg4=function(_h7k,_t2k,_zdf){this._zj6();};_mce._7k2=function(_h7k,_t2k){if(!_t2k.selectSingleNode( "*" )&&!_zpn._qsh["hal"]["enableAccessibility"] ){setTimeout(this._bgn.bind(this), 0);}};_mce._k4a=function(){this._slb();this._zj6();};_mce._zj6=function(){var _t2k=this._njj._5r9();this._pj8("btnOK", _t2k!=null);this._pj8( "btnBrowse", this._2oh( "radAnotherReport" ).checked, "hal/images/dotdotdot" );_4qn._cb5( this._2oh( "txtComponentPath" ), this._2oh( "radAnotherReport" ).checked );};_mce._g1g=function(){this._2oh("txtComponentPath").title=_a4b._oq9();this._2oh("txtComponentPath").value=_a4b._nq9();setTimeout(this._7wh.bind(this), 0);return true;};_mce._7wh=function(){_xb5._7gn(this, [ this._2oh("txtComponentPath").title ]);};_mce._24a=function(){var _bnd=false;var _83m=_xb5._a6j(this._2oh("txtComponentPath").title);if(_83m){var _ww2=_83m.getAttribute("expressionLocale");_bnd=(_ypn._om8==_ww2);}return _bnd;};_mce._rag=function(){_mce._2oh( "txtComponentPath" ).title = "";_mce._2oh( "txtComponentPath" ).value = "";_mce._hvc();};_mce._996=function(_yal){var _5um=_yal._8ik();if(_5um){_08j(_5um);}this._slb();this._zj6();};