_pf2.js 4.3 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. function _pf2(_b6k, _83m, _z1b, _rf3, _57f){this._irl=_83m;this._1t7=_83m.cloneNode(true);if(!this._t5i){this._t5i=_8qn._o5b( ".//", _geb._u33, "[@iid][not(ancestor::layoutComponent)]" );}var nl=this._1t7.selectNodes(this._t5i);var _tzl=nl.length;for(var i=0;i<_tzl;i++){var n=nl.item(i);var _zyd=_8qn._w6b( n, "XMLAttributes" ).appendChild( n.ownerDocument.createElement( "XMLAttribute" ) );_zyd.setAttribute( "name", "roid" );_zyd.setAttribute( "value", n.getAttribute( "iid" ) );_zyd.setAttribute( "output", "HTML" );}this._1t7=_agm._pd1(this._1t7);_8qn._cqh(this._1t7, "upgradeInfo");var _gen=_8qn._iwc(this._1t7);_gen=_agm._65b(_gen);var _9f2=(_83m.getAttribute('application')==='true'?'reportServiceInteractiveReportSpecification':'');_pf2.baseConstructor.call(this, _b6k, _gen, _z1b, _rf3, _57f, _9f2);};_olk._vjl(_pf2, _957);_pf2.prototype._ao3=function(){if(!this._4o5){this._4o5=_857._w12(this._1oh(), this._irl, this._1t7);}return this._4o5;};function _857(_g5l, _83m, _458){this._4lj="";this._vsk="";this._irl=_83m;if(_g5l.nodeName=="missingMember"){this._vsk=_g5l.getAttribute("memberUniqueName");this._ikm=_frh._c6j("IDS_MISSING_MUN", this._vsk);this._9tk="";this._04n=_857._yrh;this._igj=_857._4db;if(_83m){var _fsm=_agm._kik(_83m, _g5l.getAttribute("queryRef"));if(_fsm){var _qxj=_r0n._62g(_fsm, _g5l.getAttribute("refDataItem"));if(_qxj){this._qkj=_8qn._tik(_83m, _qxj);}}}}else{var _jxm=_g5l.getAttribute("title");var _rel=_g5l.text;this._ikm=_jxm||"";this._9tk=_rel||"";this._04n=(_g5l.parentNode.nodeName=="queryProblems")?_857._yrh:_857._c8g;this._qkj=_g5l.getAttribute("location");this._4lj=_g5l.getAttribute("position");this._elj=_g5l.getAttribute("severity");switch(_g5l.getAttribute("severity")){case "information":this._igj=_857._2zc;break;case "warning":this._igj=_857._ml8;break;case "fatal":case "error":default:this._igj=_857._4db;}if(this._qkj&&_83m){var i=this._qkj.indexOf("page");if(i>=0){var _c0j=this._qkj.substring(0, i+4);var _t9n=_458.selectSingleNode(_c0j);if(_t9n){var _kkf=_t9n.selectSingleNode("ancestor::reportPages");var _zxm=_8qn._tik(_458, _kkf);_zxm += "//page[@name=" + _cgm._zxc( _t9n.getAttribute("name") ) + "]";this._qkj=_zxm+this._qkj.substr(i+4);}}this._qkj=this._qkj.replace(/dataItem\/expression/, "*");this._qkj=this._qkj.replace(/dataItem(\[[^\]]*\])\/expression/, "*$1");this._qkj=this._qkj.replace( /\[@roid='([^']*)'\].*/, "[@iid='$1']");}}};_857._w12=function(_f4l,_83m,_458){var a=[];if(_f4l){var nl=_f4l.selectNodes( ".//*[self::message | self::missingMember]" );for(var i=0;i<nl.length;i++){a.push(new _857(nl.item(i), _83m, _458));}}return a;};_857.prototype._q66=function(){var _rel=this._9tk.replace(/\n/g, " ");return this._ikm+((this._ikm&&_rel)?":":"")+ _cgm._hkk(_rel, 300, true);};_857.prototype._ife=function(){return this._ikm+((this._ikm&&this._9tk)?"\r\n":"")+ this._9tk;};_857.prototype._yd8=function(_a6k,_p79){var _mzj=_a6k._767();var _dwm=_p79?this._q66():this._ife();_mzj.setAttribute("label", _dwm);_mzj.setAttribute("problemFullTitle", this._ife());_mzj.setAttribute( "problemTitle", this._ikm||"" );_mzj.setAttribute( "problemMessageBody", this._9tk||"" );_mzj.setAttribute( "problemLocation", this._qkj||"" );_mzj.setAttribute( "problemPosition", this._4lj||"");_mzj.setAttribute( "problemContext", this._vsk||"");_mzj.setAttribute( "problemSeverity", this._elj||"");switch(this._igj){case _857._2zc:_mzj.setAttribute( "smallSvgIcon", "def_hal_icon_info_16x16" );_mzj.setAttribute( "idsAriaLabel", "IDS_HAL_AC_INFO" );break;case _857._ml8:_mzj.setAttribute( "smallSvgIcon", "def_hal_icon_warning_16x16" );_mzj.setAttribute( "idsAriaLabel", "IDS_HAL_AC_WARNING" );break;case _857._4db:default:_mzj.setAttribute( "smallSvgIcon", "def_hal_icon_error_16x16" );_mzj.setAttribute( "idsAriaLabel", "IDS_HAL_AC_ERROR" );}return _mzj;};_857.prototype._g66=function(){if(this._qkj){var _83m=this._irl||_erh._vtc();var _u2m=_6aj._rh2(_83m.selectSingleNode(this._qkj));if(_u2m&&(_r0d._jsh[_u2m.nodeName] ||(_qgn._bsh&&_r0d._ile[_u2m.nodeName]))){return _u2m;}}return null;};_857.prototype._q2g=function(){return this._qkj;};_857._c8g=1;_857._yrh=2;_857._2zc=1;_857._ml8=2;_857._4db=3;