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 _sf7={};_sf7._456=function(_oxd,_b48){if(_b48){var _vpi=_b48.selectSingleNode("group");if(_vpi){var _ty6=this._l3d(_oxd.ownerDocument, _vpi);if(_ty6){_8qn._35b(_oxd, _8qn._k5g(_ty6, "treeNode"));}}}return _oxd.selectSingleNode("treeNode")!=null;};_sf7._l3d=function(_0yl,_qrm){var _4ac=_0yl.createElement("treeNode");_4ac.setAttribute("nodeName", _qrm.nodeName);var _2bk=_qrm.getAttribute("idsLabel");if(_2bk){_4ac.setAttribute("label", _frh._c6j(_2bk));}else{var _vdn=_qrm.getAttribute("name");if(_vdn){_4ac.setAttribute("label", _vdn);}}_4ac.setAttribute( "smallSvgIcon", "def_hal_folder_16x16" );_4ac.setAttribute( "expandedSmallSvgIcon", "def_hal_folder_expanded_16x16" );_4ac.setAttribute( "expandable", "true" );_4ac.setAttribute( "idsExtraAriaLabel", "IDS_HAL_AC_TYPE_FOLDER" );var _8dk=_qrm.getAttribute("qosLevel");switch(_8dk){case "limited":case "restricted":_4ac.setAttribute( "stateSmallIcon", "functions/qosLevel_" + _8dk + ".gif" );break;case "unavailable":return null;}var nl=_qrm.selectNodes( "group | function" );for(var i=0;i<nl.length;++i){var n=nl.item(i); var _t2k=null;switch(n.nodeName){case "group":_t2k=this._l3d(_0yl, n);break;case "function":_t2k=_0yl.createElement("treeNode");_t2k.setAttribute("nodeName", n.nodeName);_t2k.setAttribute( "label", n.getAttribute( "name" ) );_t2k.setAttribute( "name", n.getAttribute( "name" ) );_t2k.setAttribute( "functionId", n.getAttribute( "id" ) );var _pen=n.getAttribute( "type" )||"function";_t2k.setAttribute("type", _pen);_t2k.setAttribute( "smallSvgIcon", "def_expr_" + _pen );var _3mn=n.selectSingleNode('tip');if(_3mn){_t2k.appendChild(_3mn.cloneNode(true)); }var _o3m=n.selectSingleNode('syntax');if(_o3m){_t2k.appendChild(_o3m.cloneNode(true)); }for(var j=1; j<10; j++){var _s4l=n.selectSingleNode("example."+j);if(!_s4l){break;}_t2k.appendChild(_s4l.cloneNode(true)); var _93m=n.selectSingleNode("result."+j);if(_93m){_t2k.appendChild(_93m.cloneNode(true)); }var _17h=n.selectSingleNode("resultdata."+j);if(_17h){_t2k.appendChild(_17h.cloneNode(true)); } }_8qn._9rc(_t2k, n, "dropText");var _8dk=n.getAttribute("qosLevel");switch(_8dk){case "limited":case "restricted":_t2k.setAttribute( "stateSmallIcon", "functions/qosLevel_" + _8dk + ".gif" );_t2k.setAttribute( "idsExtraAriaLabel", "IDS_AC_STATE_qosLevel_" + _8dk );break;case "unavailable":_t2k=null;break;} break;}if(_t2k){_4ac.appendChild(_t2k);}}if(_4ac.selectSingleNode("treeNode")){return _4ac;}return null;};_sf7._lt=function(_ajh){var _nlm=_ajh.split("\n");if((_nlm.length==0)||((_nlm.length==1)&&!_nlm[0])){return "";}var _16c=-1;for(var i=0;i<_nlm.length;++i){if(_nlm[i].match(/^[-\t\s]+$/)){_16c=i;}}var _n4n=[];var _x99=0;for(var i=(_nlm[0].length==0)?1:0; i<_nlm.length; i++){if(_x99++==0){_n4n.push("<div>");_n4n.push("<table role='presentation' border='2' style='font-size:smaller;color:navy'>");}var _mdn=_nlm[i];if(i<_16c){_n4n.push("<tr style='color:black'><th>");_n4n.push(_mdn.replace(/\t/g, "</th><th>"));_n4n.push("</th></tr>");}else if(i!=_16c){_n4n.push("<tr><td>");_n4n.push(_mdn.replace(/\t/g, "</td><td>"));_n4n.push("</td></tr>");}}if(_x99>0){_n4n.push("</table></div>");}return _n4n.join("");};_sf7._mf6=function(_qyj){if(!_qyj){return "";}var _n4n=[];var _o3m=_qyj.selectSingleNode("syntax");if(_o3m&&_o3m.text){_n4n.push("<div style='font-weight:bold' HAL_isSelectable='true'>");_n4n.push(_cgm._qoh(_o3m.text));_n4n.push("</div>");}var _3mn=_qyj.selectSingleNode("tip");if(_3mn&&_3mn.text){_n4n.push("<div HAL_isSelectable='true'>");_n4n.push(_cgm._qoh(_3mn.text));_n4n.push("</div>");}for(var i=1;i<10;i++){var _s4l=_qyj.selectSingleNode("example."+i);if(!_s4l){break;}var _pt6=false;if(_s4l&&_s4l.text){_n4n.push("\n<div HAL_isSelectable='true'>");_n4n.push(_cgm._qoh(_s4l.text));_n4n.push("</div>");_pt6=true;}var _93m=_qyj.selectSingleNode("result."+i);if(_93m&&_93m.text){_n4n.push("<div HAL_isSelectable='true'>");_n4n.push(_cgm._qoh(_93m.text));_n4n.push("</div>");_pt6=true;}var _17h=_qyj.selectSingleNode("resultdata."+i);if(_17h&&_17h.text){_n4n.push(this._lt(_cgm._qoh(_17h.text)));_pt6=true;}if(_pt6){_n4n.push("<BR/>");}}return _n4n.join("").replace( /[\n]/g, "<BR/>" ).replace( /\s\s/g, " " );};_sf7._303=function(_3gh,_20k){if(_20k){var _qyj=_20k.selectSingleNode( ".//function[@id=" + _cgm._zxc( _3gh ) + "]" );return this._mf6(_qyj);}return "";};_sf7._u56=function(_pak,_20k){if(_20k){var _qyj=_20k.selectSingleNode( ".//function[translate(@name,'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz')=" + _cgm._zxc( _pak.toLowerCase() ) + "]" );return this._mf6(_qyj);}return "";};function _gpc(_gum, _jy7, _989, _b6k, _94c){var _u2k=_frh._53g("AsyncTree");_u2k.setAttribute( "stateSmallIconHeight", "16px" );_u2k.setAttribute( "stateSmallIconWidth", "6px" );_u2k.setAttribute( "htmlDrag", "true" );this._41f=new _vgk(_989, _u2k, _b6k);this._41f._u6g(_frh._c6j("IDS_FUNCTIONS_NOT_AVAILABLE"));var _0um=Q.defer();this._419=_0um.promise;if(!_gum){_0um.resolve(true);return;}switch(_94c){case _gpc._yv9:_gum._i97().done(function(_20k){this._ohj=_20k;if(_qkk._qik("BusinessExprEditor")){_dnl._s5g("text!res/QueryFunctions.xml").done(function(_g1b){var _usa=_8qn._dhe(_g1b).documentElement;if(!_jy7){this._ahb(_usa, ".//function[type='dimensional']");}var nl=_usa.selectNodes(".//function");for(var i=0; i<nl.length;++i){var n=nl.item(i);var _zln=_20k.selectSingleNode(".//" + n.nodeName + "[@id=" + _cgm._zxc( n.getAttribute("id") ) + "]");_8qn._q5b(n, _zln);}this._509=_usa;_0um.resolve(true);});}else{this._509=_20k;_0um.resolve(true);}}.bind(this));break;default:_gum._h66().done(function(_20k){this._ohj=this._509=_20k;_0um.resolve(true);}.bind(this));break;}};_gpc._ake=0;_gpc._il8=1;_gpc._yv9=2;_gpc.prototype._fdm=function(){this._41f._fdm();};_gpc.prototype._j3g=function(){return this._41f;};_gpc.prototype._oxc=function(){this._419.done(function(){if(this._q8a||!this._509){return;}this._q8a=true;var _989=this._41f._3fe();_989.scrollTop=0;this._41f._bzm();if(_sf7._456(this._41f._cr9(), this._509)){this._41f._wfn();return;}this._41f._u6g(_frh._c6j("IDS_FUNCTIONS_NOT_AVAILABLE"));}.bind(this));};_gpc.prototype._303=function(_3gh){return _sf7._303(_3gh, this._ohj);};_gpc.prototype._u56=function(_pak){return _sf7._u56(_pak, this._ohj);};_gpc.prototype._2p9=function(_lfl){if(!this._509){return;}var _20k=this._509.cloneNode(true);if(_lfl){this._ahb(_20k, _lfl);this._rng=_lfl;}this._41f._bzm();if(_sf7._456(this._41f._cr9(), _20k)){this._41f._wfn();return;}this._41f._u6g(_frh._c6j("IDS_FUNCTIONS_NOT_AVAILABLE"));};_gpc.prototype._ahb=function(_20k,_lfl){_8qn._k5g(_20k, _lfl);_8qn._k5g(_20k, ".//group[not(*)]");var nl=_20k.selectNodes("*/group/group");if(nl.length==1){var _qrm=nl.item(0);_8qn._35b(_qrm.parentNode, _8qn._k5g(_qrm, "*"));_qrm.parentNode.removeChild(_qrm);}};_gpc.prototype._8ph=function(){return !!this._rng;};function _5mh(_gum, _5pd, _b6k){this._2cd=_5pd;this._vij=_b6k;this._fda=null;var _0um=Q.defer();this._419=_0um.promise;if(!_gum){_0um.resolve(true);return;}Q.all([_gum._297(), _gum._dd4()]).spread(function(_wv2,_z64){this._js2=_wv2;this._024=_z64;_0um.resolve(true);}.bind(this)).done();};_5mh.prototype._fdm=function(){if(this._fda){this._fda._fdm();}this._2cd=null;};_5mh.prototype._j3g=function(){return this._fda;};_5mh.prototype._uqh=function(_9d2){this._419.done(function(){if(this._fda){if(_9d2){this._jd();return;}return;}var doc=_8qn._w5b();var _u2k=doc.appendChild(doc.createElement("treeView"));_u2k.setAttribute( "htmlDrag", "true" );this._rj(_u2k); _sf7._456(_u2k, this._js2);var _fbi=!!_u2k.selectSingleNode("treeNode");this._la(_u2k);var _5y5=_u2k.appendChild(doc.createElement("treeNode"));_5y5.setAttribute("nodeName", "macroBlockIdentifier" );_5y5.setAttribute( "label", _frh._c6j( "IDS_LBL_INSERT_MACRO_BLOCK" ) );_5y5.setAttribute("smallSvgIcon", "def_expr_literal");this._fda=new _vgk(this._2cd, _u2k, this._vij);this._2cd.scrollTop=0;if(!_fbi){this._fda._u6g(_frh._c6j("IDS_MACRO_NOT_AVAILABLE"));}}.bind(this));};_5mh.prototype._la=function(_oxd){var _yz1=_oxd.ownerDocument.createElement("treeNode");var i=_qcb._k23(_yz1);if(i>0){ _yz1.setAttribute( "nodeName", "reportParametersRoot_macro" );_yz1.setAttribute( "label", _frh._c6j( "IDS_LBL_REPORT_PARAMETERS" ) );_yz1.setAttribute( "smallSvgIcon", "def_hal_folder_16x16" );_yz1.setAttribute( "expandedSmallSvgIcon", "def_hal_folder_expanded_16x16" );_yz1.setAttribute( "expandable", "true" );_yz1.setAttribute( "idsExtraAriaLabel", "IDS_HAL_AC_TYPE_FOLDER" );_oxd.insertBefore(_yz1, _oxd.firstChild);}};_5mh.prototype._jd=function(){var _674=this._fda._cr9().selectSingleNode( "treeNode[@nodeName = 'reportParametersRoot_macro']" );if(_674){var _33m=_674.parentNode;_33m.removeChild(_674);this._la(_33m);this._fda._wfn();}};_5mh.prototype._rj=function(_oxd){if(!this._024){return;}var _4va=this._024.selectNodes(".//parameterMap");if(_4va.length>0){var _0yl=_oxd.ownerDocument;var _wh3=null;var _874=null;for(var iMap=0;iMap<_4va.length;iMap++){var _0xd=_4va.item(iMap);var _w9i=_0xd.getAttribute("hidden");if(_0xd.getAttribute( "name" )=="_env" ){_874=_0xd;}else if(_w9i!="1"){if(!_wh3){_wh3=_oxd.appendChild(_0yl.createElement("treeNode"));_wh3.setAttribute( "label", _frh._c6j( "IDS_LBL_PARAMETER_MAPS" ) );_wh3.setAttribute("smallSvgIcon", "def_hal_folder_16x16");_wh3.setAttribute("expandedSmallSvgIcon", "def_hal_folder_expanded_16x16");_wh3.setAttribute("expandable", "true");_wh3.setAttribute("idsExtraAriaLabel", "IDS_HAL_AC_TYPE_FOLDER" );}this._4l4(_wh3, _0xd);}}if(_874){this._c8(_oxd, _874);}}var _dx7=Application._t75();this._c9(_oxd, _dx7, true);};_5mh.prototype._wt1=function(_n48,_ky6){var _t2k=_n48.appendChild(_n48.ownerDocument.createElement("treeNode"));_t2k.setAttribute("nodeName", _ky6.nodeName);_t2k.setAttribute( "label", _ky6.getAttribute( "key" ) );_t2k.setAttribute( "key", _ky6.getAttribute( "key" ) );_t2k.setAttribute( "smallSvgIcon", "def_password_key" );_t2k.setAttribute( "idsExtraAriaLabel", "IDS_AC_TYPE_PARAMETER_MAP_ENTRY" );};_5mh.prototype._4l4=function(_wh3,_0xd){var _0yl=_wh3.ownerDocument;var _n48=_wh3.appendChild(_0yl.createElement("treeNode"));_n48.setAttribute("nodeName", _0xd.nodeName);_n48.setAttribute( "label", _0xd.getAttribute( "name" ) );_n48.setAttribute( "name", _0xd.getAttribute( "name" ) );_n48.setAttribute( "smallSvgIcon", "def_hal_folder_16x16" );_n48.setAttribute( "expandedSmallSvgIcon", "def_hal_folder_expanded_16x16" );_n48.setAttribute( "expandable", "true");_n48.setAttribute( "idsExtraAriaLabel", "IDS_AC_TYPE_PARAMETER_MAP" );if(_0xd.selectSingleNode("queryItemMap")){_n48.setAttribute( "isQueryItemMap", "true");}var _umf=_0xd.selectNodes("parameterMapEntry");for(var iEntry=0;iEntry<_umf.length;iEntry++){this._wt1(_n48, _umf.item(iEntry));}};_5mh.prototype._c8=function(_oxd,_874){var _0yl=_oxd.ownerDocument;var _n48=_oxd.appendChild(_0yl.createElement("treeNode"));_n48.setAttribute( "nodeName", "sessionParametersRoot" );_n48.setAttribute( "label", _frh._c6j( "IDS_LBL_SESSION_PARAMETERS" ) );_n48.setAttribute("smallSvgIcon", "def_hal_folder_16x16");_n48.setAttribute("expandedSmallSvgIcon", "def_hal_folder_expanded_16x16");_n48.setAttribute("expandable", "true");_n48.setAttribute("idsExtraAriaLabel", "IDS_HAL_AC_TYPE_FOLDER" );var _umf=_874.selectNodes("parameterMapEntry");for(var iEntry=0;iEntry<_umf.length;iEntry++){var _irm=_umf.item(iEntry);var _t2k=_n48.appendChild(_0yl.createElement("treeNode"));_t2k.setAttribute("nodeName", _irm.nodeName);_t2k.setAttribute( "label", _irm.getAttribute( "key" ) );_t2k.setAttribute( "key", _irm.getAttribute( "key" ) );_t2k.setAttribute( "smallSvgIcon", "def_password_key" );_t2k.setAttribute( "idsExtraAriaLabel", "IDS_AC_TYPE_SESSION_PARAMETER" );} };_5mh.prototype._c9=function(_oxd,_dx7,_vxk){var _0yl=_oxd.ownerDocument;var _tzl=_dx7?_dx7.length:0;if(!_tzl){return;}var _n48=_oxd.appendChild(_0yl.createElement("treeNode"));_n48.setAttribute("nodeName", "globalParametersRoot" );_n48.setAttribute("label", _frh._c6j( "IDS_LBL_GLOBAL_PARAMETERS"));_n48.setAttribute("smallSvgIcon", "def_hal_folder_16x16");_n48.setAttribute("expandedSmallSvgIcon", "def_hal_folder_expanded_16x16");_n48.setAttribute("expandable", "true");_n48.setAttribute("idsExtraAriaLabel", "IDS_HAL_AC_TYPE_FOLDER" );for(var i=0; i<_tzl; i++){var _wvm=_dx7[i];var _t2k=_n48.appendChild(_0yl.createElement("treeNode"));_t2k.setAttribute("nodeName", _vxk?"parameterMapEntry":"parameter");_t2k.setAttribute("label", _wvm);_t2k.setAttribute("key", _wvm);_t2k.setAttribute("smallSvgIcon", _vxk?"def_password_key":"def_parameter" );_t2k.setAttribute("idsExtraAriaLabel", _vxk?"IDS_AC_TYPE_SESSION_PARAMETER":"");}};_5mh.prototype._303=function(_3gh){return _sf7._303(_3gh, this._js2);};_5mh.prototype._u56=function(_pak){return _sf7._u56(_pak, this._js2);};_5mh.prototype._du=function(_0xd){var _umf=_0xd.selectNodes("queryItemMapEntry");var _tzl=_umf.length;if(_tzl>0){for(var iEntry=0;iEntry<_tzl;iEntry++){this._wt1(this._xhj, _umf.item(iEntry));}return true;}return false;};
|