_7aj.js 6.2 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 _7aj={};_7aj._ymh=function(_o1k,_83m,_mai,_kzi,_2y4){var d=_o1k.ownerDocument;var nl;if(!_kzi){nl=_7hn._x5g(_83m, "queries/*");}else {nl=_7hn._x5g( _83m, "queries/*[*/metadataPath[@path=" + _cgm._zxc( _kzi ) + "]]" );if(nl.length==0&&_agm._j75(_83m)===_kzi){var _2wf="queries/*[source/model]";if(_2y4){_2wf += " | queries/*[source/queryRef] | queries/*[source/sqlQuery] | queries/*[source/queryOperation] | queries/*[source/joinOperation] | queries/*[source/metadataPath]";}nl=_7hn._x5g(_83m, _2wf);}}var _tzl=nl.length;for(var i=0; i<_tzl;++i){this._9hk(_o1k, nl.item(i), _mai);}};_7aj._a46=function(_o1k){if(_7hn._x5g(_o1k, "treeNode/treeNode").length>100){_8qn._qt9( _o1k, ".//treeNode", "expanded" );return true;}return false;};_7aj._9hk=function(_o1k,_fsm,_mai){var d=_o1k.ownerDocument;var _uwm=_fsm.getAttribute("name");var _t2k=this._6g7( d, _o1k, _uwm, _uwm, "queryRef", null, "def_el_query" );if(_mai){this._8de(_t2k, _fsm, true);}return _t2k;};_7aj._x4b=function(_o1k,_bkf,_mai){var d=_o1k.ownerDocument;switch(_bkf.nodeName){case "report":this._ymh(_o1k, _bkf, false);break;case "query":this._9hk(_o1k, _bkf, _mai);break;case "queryRef":this._9hk(_o1k, _enl._765(_bkf), _mai);break;case "queryOperation":var _osn=_bkf.getAttribute("setOperation");var _t2k=_o1k.appendChild(d.createElement("treeNode"));var _vdn=_bkf.getAttribute("name");if(_vdn){_t2k.setAttribute("label", _vdn);}else{_t2k.setAttribute( "idsLabel", "IDS_PROPVAL_SETOP_" + _osn );}_t2k.setAttribute( "smallSvgIcon", "def_setOperation_" + _osn );_t2k.setAttribute( "expandable", "true" );_t2k.setAttribute( "expanded", "true" );_t2k.setAttribute( "nodeName", "queryOperationRef" );if(_mai){this._nw(_t2k, _bkf);}break;case "joinOperation":var _t2k=_o1k.appendChild(d.createElement("treeNode"));_t2k.setAttribute( "idsLabel", "IDS_EL_joinOperation" );_t2k.setAttribute( "smallSvgIcon", "def_joinOperation" );_t2k.setAttribute( "expandable", "true" );_t2k.setAttribute( "expanded", "true" );_t2k.setAttribute( "nodeName", "joinOperationRef" );var nl=_7hn._x5g(_bkf, "joinOperands/joinOperand/queryRef");for(var i=0;i<nl.length;i++){this._9hk(_t2k, _enl._765(nl.item(i)), _mai);}break;case "sqlQuery":var _ubc=_o1k.appendChild(d.createElement("treeNode"));_ubc.setAttribute( "expandable", "true" );_ubc.setAttribute( "expanded", "true" );_ubc.setAttribute( "nodeName", "sqlQueryRef" );var _uwm=_bkf.getAttribute("name");_ubc.setAttribute("label", _uwm);_ubc.setAttribute( "smallSvgIcon", "def_el_" + _bkf.nodeName );var nl=_7hn._x5g(_bkf, "mdProjectedItems/mdProjectedItem/@name");for(var i=0; i<nl.length;++i){var _79k=nl.item(i).value;var _t2k=this._6g7( d, _ubc, _79k, _79k, "dataItemRef", null, "def_el_dataItem" );_t2k.setAttribute("query", _uwm);_t2k.setAttribute("expression", "[" + _uwm + "].[" + _6aj._422( _79k ) + "]");}break;case "mdxQuery":var _ubc=_o1k.appendChild(d.createElement("treeNode"));_ubc.setAttribute( "expandable", "true" );_ubc.setAttribute( "expanded", "true" );var _uwm=_bkf.getAttribute("name");_ubc.setAttribute("label", _uwm);_ubc.setAttribute( "smallSvgIcon", "def_el_" + _bkf.nodeName );var _han=_7hn._x5g(_bkf, "mdDimensionalInfo/mdDimensions/mdDimension");for(var _wjn=0; _wjn<_han.length;++_wjn){var _1ln=_han.item(_wjn);var _0on=_1ln.getAttribute("name");var _j4l=this._6g7( d, _ubc, _0on, _0on, "dimension", null, "def_el_dimension" );var _98m="[" + _uwm + "].[" + _6aj._422( _0on ) + "]";var _btm=_7hn._x5g(_1ln, "mdHierarchy");for(var _n7n=0; _n7n<_btm.length;++_n7n){var _89n=_btm.item(_n7n);var _6dn=_89n.getAttribute("name");var _wyj=this._6g7( d, _j4l, _6dn, _6dn, "dataItemRef", null, "def_el_hierarchy" );_wyj.setAttribute("query", _uwm);var _xdl=_98m+".[" + _6aj._422( _6dn ) + "]";_wyj.setAttribute("expression", _xdl);var _i4m=_7hn._x5g(_89n, "mdLevel");for(var _6qm=0; _6qm<_i4m.length; _6qm++){var _zrm=_i4m.item(_6qm);var _fwm=_zrm.getAttribute("name");var _fni=this._6g7( d, _wyj, _fwm, _fwm, "dataItemRef", null, "def_el_level" );_fni.setAttribute("query", _uwm);_fni.setAttribute("expression", _xdl + ".[" + _6aj._422( _fwm ) + "]");}}}var _zvm=_frh._c6j("IDS_EL_factList");var _jmi=this._6g7( d, _ubc, _zvm, _zvm, "facts", null, "def_el_measure" );var nl=_7hn._x5g(_bkf, "mdDimensionalInfo/mdFacts/mdFact/@name");for(var i=0; i<nl.length;++i){var _zcn=nl.item(i).value;var _hyj=this._6g7( d, _jmi, _zcn, _zcn, "dataItemRef", "fact.gif" );_hyj.setAttribute("query", _uwm);_hyj.setAttribute("expression", "[" + _uwm + "].[" + _6aj._422( _zcn ) + "]");}break;}};_7aj._8de=function(_o1k,_fsm,_yci){var d=_o1k.ownerDocument;var _uwm=_fsm.getAttribute("name");var nl=_7hn._x5g(_fsm, "selection/*");var _tzl=nl.length;for(var i=0; i<_tzl;++i){this._z9g(d, _o1k, nl.item(i), _uwm, _yci);}};_7aj._z9g=function(d,_o1k,_qxj,_uwm,_yci){var _79k=_qxj.getAttribute("name");var _2i9=_6aj._422(_79k);var _p8e=_6aj._422(_uwm);var _t2k=this._6g7(d, _o1k, _79k, _79k, "dataItemRef", null, _nlk._g3g(_qxj));var _wvi=_qxj.getAttribute("aggregate");if(_wvi){_t2k.setAttribute("aggregate", _wvi);}var _ek9=_qxj.getAttribute("rollupAggregate");if(_wvi){_t2k.setAttribute("rollupAggregate", _ek9);}_t2k.setAttribute("query", _uwm);_t2k.setAttribute("expression", _yci?"[" + _p8e + "].[" + _2i9 + "]":"[" + _2i9 + "]");return _t2k;};_7aj._nw=function(_o1k,_vsa){var _m5f=_enl._hx(_vsa);var _uwm=_vsa.getAttribute("name");var d=_o1k.ownerDocument;var _tzl=_m5f.length;for(var i=0; i<_tzl;++i){var _79k=_m5f[i];var _t2k=this._6g7( d, _o1k, _79k, _79k, "dataItemRef", null, "def_el_dataItem" );_t2k.setAttribute("expression", "[" + _uwm + "].[" + _6aj._422( _79k ) + "]");}};_7aj._x03=function(_u2k,_uwm,_79k){return _7hn._ij8( _u2k, ".//*[@name=" + _cgm._zxc( _79k ) + "][@query=" + _cgm._zxc( _uwm ) + "]" );};_7aj._6g7=function(d, _ksa, _dwm, _vdn, _ick, _cdn, _ygl){var _t2k=_ksa.appendChild(d.createElement("treeNode"));_t2k.setAttribute("nodeName", _ick);_t2k.setAttribute("label", _dwm);_t2k.setAttribute("name", _vdn);if(_cdn){_t2k.setAttribute("smallIcon", _cdn);}_t2k.setAttribute( "expandable", "true" );_t2k.setAttribute( "expanded", "true" );if(_ygl){_t2k.setAttribute("smallSvgIcon", _ygl);}return _t2k;};