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 _vce=new _lcm("_vce");_vce._jgn=function(_u4c,_9hf,_6wa,_s8f){this._tue=_s8f!=false;_9hf=_8qn._v65(_9hf, _geb._vc5);if(!_9hf||!( _9hf.getAttribute( "refQuery" )||_9hf.getAttribute( "refDataStore" ) ) ){_67j("IDS_NO_DETAIL_CONTEXT");return;}var _83m=_erh._vtc();var _kac=_ath._ex(_9hf);this._iye=_kac?_agm._kik(_83m, _kac.getAttribute("refQuery")):null;if(!this._iye){if(_9hf.selectSingleNode("masterDetailLinks")){if(this._tue){_erh._ybb();}_8qn._cqh(_9hf, "masterDetailLinks");if(this._tue){_erh._iee();}_67j("IDS_INVALID_MD_RELATIONSHIPS");return;}_67j("IDS_NO_MASTER_CONTEXT");return;}this._5ye=_9hf;this._6ye=_ath._tq9(_9hf);var _g6k=_dth._e2([this._iye, this._6ye]);if(!_g6k){_67j("IDS_MSG_MULTI_TARGET_MASTER_DETAIL");return;}if(this._tue){_erh._ybb();}if(_agm._uo3(this._iye, this._6ye, _9hf)){if(this._tue){_erh._iee();}_67j("IDS_INVALID_MD_RELATIONSHIPS");return;}else{if(this._tue){_erh._ln9();}}this._7ve=this._iye.getAttribute( "name" )==this._6ye.getAttribute( "name" );this._iue=false;if(_geb._6x9[ this._5ye.nodeName ]){var _7gf=_8qn._isc(this._5ye, _geb._nml);if(_7gf.getAttribute("refQuery")==this._5ye.getAttribute("refQuery")){this._iue=true;}}this._thm=[];var nl=_9hf.selectNodes("masterDetailLinks/masterDetailLink");for(var i=0;i<nl.length;i++){var _948=nl.item(i);var _abn={};_abn._rx9=_948.selectSingleNode("masterContext/dataItemContext/@refDataItem").value;var _f8n=_948.selectSingleNode( "detailContext/dataItemContext/@refDataItem | detailContext/parameterContext/@parameter" );if(_f8n.name=="refDataItem"){_abn._px9=_f8n.value;}else{_abn._3th=_f8n.value;}this._thm.push(_abn);}this._4le(_u4c, _6wa);};_vce._src=function(){this._6qk=this._2oh("divLinks");this._7gj=this._2oh("divMaster");this._0gj=this._2oh("divDetail");this._4cd=this._2oh("divParameters");this._y1n=this._6qk.appendChild( document.createElementNS( "http://www.w3.org/2000/svg", "svg" ) );this._y1n.style.height="360px";this._y1n.style.width="160px";};_vce._5z2=function(){_4qn._1je( this._2oh( "spanMaster" ), _cgm._hkk( this._iye.getAttribute( "name" ), 30 ) );this._2oh( "spanMaster" ).title = this._iye.getAttribute( "name" );_4qn._1je( this._2oh( "spanDetail" ), _cgm._hkk( this._6ye.getAttribute( "name" ), 30 ) );this._2oh( "spanDetail" ).title = this._6ye.getAttribute( "name" );this._7lg=new _pgk(this._0gj, null, this);this._llg=new _pgk(this._7gj, null, this);this._cub=new _pgk(this._4cd, null, this);this._wba=this._llg._eq9();this._tba=this._7lg._eq9();this._ho6=this._cub._eq9();_u0n._1y2(this._wba, this._iye);_u0n._1y2(this._tba, this._6ye);_u0n._3a6(this._0gj);_u0n._3a6(this._7gj);_u0n._3a6(this._4cd);this._7dj();};_vce._5pe=function(_83m,_lb1){return _agm._am3(_83m, _lb1);};_vce._xt3=function(_fsm,_prm){var _opi=this._nz(_fsm, _prm);_8qn._k5g(_opi, "queries/query/slicer/contextSlice/parameterizedSlice");return _opi;};_vce._nz=function(_fsm,_prm){var _uwm=_fsm.getAttribute("name");var _ara=null;var _83m=_dth._ug8(_fsm);var _opi=null;if(_prm.nodeName=="burstRecipient"){var _lb1=false;_opi=this._5pe(_83m, _lb1);var _qxj=_r0n._62g(_fsm, _prm.getAttribute("refDataItem"));var _j9n=_opi.selectSingleNode("layouts/layout//list");_j9n.setAttribute("refQuery", _uwm);_5hn._gp3(_j9n, [_qxj]);return _opi;}else if(_8qn._isc(_prm, _geb._nml)){var _8rm=_8qn._isc(_prm, _geb._nml);if(_8rm.getAttribute("refQuery")==_prm.getAttribute("refQuery")){var _lb1=false;_opi=this._5pe(_83m, _lb1);var _j9n=_opi.selectSingleNode("layouts/layout//list");_j9n.setAttribute("refQuery", _uwm);var _79h=_prm.selectNodes(".//*[@refDataItem][not (self::dataItemContext)]");var _x7i=[];for(var i=0; i<_79h.length; i++){var _79k=_79h.item(i).getAttribute("refDataItem");_x7i.push(_r0n._62g(_fsm, _79k));}_5hn._gp3(_j9n, _x7i);return _opi;}return _r0n._177(this._6ye);}else if(_prm.nodeName=="vizDataSet"||_prm.nodeName=="vcDataSet"){var _lb1=true;_opi=this._5pe(_83m, _lb1);var _j9n=_opi.selectSingleNode("layouts/layout//list");_ara=_j9n.parentNode;_ara.removeChild(_j9n);var _cyf=_prm.nodeName=="vizDataSet"?"viz":"vizControl";var _a3k=_8qn._12g(_prm, _cyf);var _5qm=_8qn._cik(_prm);var _32h=_erh._e5j(_a3k, true);if(_prm.nodeName=="vizDataSet"){_8qn._k5g(_32h, "*[not(self::vizDataSets or self::vizPropertyValues)]");_8qn._k5g(_32h, "vizDataSets/vizDataSet[not(position()=" + (_5qm + 1) + ")]");_8qn._k5g(_32h, "vizDataSets/vizDataSet/*[not(self::vizCategories or self::vizValues or self::vizDefaultMeasure)]"); }else{_8qn._k5g(_32h, "*[not(self::vcDataSets or self::vizPropertyValues)]");_8qn._k5g(_32h, "vcDataSets/vcDataSet[not(position()=" + (_5qm + 1) + ")]"); }_ara.appendChild(_32h);_q0n._bsc(_opi.selectSingleNode("layouts/layout"));if(_vzm._49b()){_agm._j7g(_opi, false);}return _opi;}else if(_8qn._12g(_prm, "page")){var _lb1=true;_opi=this._5pe(_83m, _lb1);var _j9n=_opi.selectSingleNode("layouts/layout//list");_ara=_j9n.parentNode;_ara.removeChild(_j9n);}else{var _lb1=true;_opi=this._5pe(_83m, _lb1);var _kkf=_opi.selectSingleNode("layouts/layout/reportPages");_ara=_kkf;_8qn._k5g(_kkf, "*");}var _14h=_erh._e5j(_prm, true);_8qn._cqh(_14h, "masterDetailLinks");_8qn._k5g(_14h, ".//layoutComponentRef");_8qn._k5g(_14h, ".//TOCEntry");var _4w4=_j9g._89j.concat("appOnSelectSetVariableValues", "appContainerFilter", "appContainerSelect", "appControlEnabled", "appListColumnProperties", "appCrosstabNodeMemberProperties", "appChartProperties", "appListSummary");_8qn._k5g(_14h, _8qn._o5b(".//", _4w4));_8qn._cqh(_14h, ".//viz");_8qn._k5g(_14h, _8qn._o5b(".//", _geb._oml));_8qn._k5g( _14h, ".//v2_conditionalSolidPalette | .//v2_conditionalPointPalette | .//v2_conditionalLinePalette | .//notes" );var _6nf=_14h.selectNodes(".//*[@refQuery]");for(var i=0;i<_6nf.length;i++){var _zkn=_6nf.item(i);var _3pi=_zkn.parentNode;_3pi.removeChild(_zkn);if(_geb._zml[_14h.nodeName]){if(_3pi.nodeName==(_zkn.nodeName+"s")&&!_3pi.selectSingleNode(_zkn.nodeName)){_3pi.parentNode.removeChild(_3pi);}}}if(_14h.nodeName=="crosstab"){var _dz5=_14h.selectNodes(".//appCrosstabSummary");var _tzl=_dz5.length;for(var i=0; i<_tzl; i++){var _lb9=_dz5.item(i);_mlk._gie(_14h, _lb9, false);}}_ara.appendChild(_14h);_q0n._bsc(_opi.selectSingleNode("layouts/layout"));if(_vzm._49b()){_agm._j7g(_opi, false);}return _opi;};_vce._wl3=function(){this._5a1();this._pj8( "btnNewLink", this._wba.selectSingleNode( "listItems/listItem" )&&( this._tba.selectSingleNode( "listItems/listItem" )||this._ho6.selectSingleNode( "listItems/listItem" ) ) );this._7lg._wfn();this._llg._wfn();this._qeg();this._tu8();this._2oh( "chkSection" ).checked = this._7ve&&!this._5ye.selectSingleNode( "masterDetailLinks" );this._2oh( "chkInherit" ).checked = this._iue&&!this._5ye.selectSingleNode( "masterDetailLinks" );this._7dj();var _83m=this._xt3(this._6ye, this._5ye);var _y5h=_dth._ug8(this._5ye);if(_agm._vuc(_y5h)){_83m.setAttribute("application", "true");}this._nfd=new _mx2(this, _agm._2em(_83m, true), false, _agm._vuc(_83m));this._nfd._ign();};_vce._2c7=function(_yal){};_vce._996=function(_yal){var _5um=_yal._8ik();if(_5um){_08j(_5um);}this._mfg=_yal._otc();var o={};for(var i=0;this._mfg&&i<this._mfg.length;i++){o[this._mfg[i].Name]=true;}var _and=false;var nl=this._5ye.selectNodes("masterDetailLinks/masterDetailLink/detailContext/*/@parameter");for(var i=0;i<nl.length;i++){var _i0j=nl.item(i).value;if(!o[_i0j]){_and=true;for(var _x7n=0;_x7n<this._thm.length;_x7n++){var _abn=this._thm[_x7n];if(_abn&&(_abn._3th==_i0j)){this._thm[_x7n]=null;}}}}if(_and){this._5a1();this._tu8();this._7dj();setTimeout( '_67j( "IDS_INVALID_MD_PARAM_RELATIONSHIPS" )', 0 );}_qcb._zi8(this._cub, false, this._mfg);this._cub._wfn();this._qeg();this._tu8();delete this._nfd;this._nfd=null;};_vce._b65=function(){if(this._nfd){this._nfd._7zm();delete this._nfd;}};_vce._o46=function(){delete this._wba;delete this._tba;delete this._iye;delete this._5ye;delete this._6ye;_4qn._vb7(this._y1n);delete this._thm;this._7lg._fdm();delete this._7lg;this._llg._fdm();delete this._llg;this._cub._fdm();delete this._cub;};_vce._9jk=function(){this._bm8();};_vce._bgn=function(){if(this._tue){_erh._ybb();}_8qn._cqh(this._5ye, "masterDetailLinks");if(this._7ve&&!this._2oh("chkSection").checked){_erh._h56(this._5ye, "masterDetailLinks");}if(this._iue&&!this._2oh("chkInherit").checked){_erh._h56(this._5ye, "masterDetailLinks");}for(var i=0;i<this._thm.length;i++){var _abn=this._thm[i];if(_abn){var _yx6=_erh._h56(this._5ye, "masterDetailLinks");_ath._6y2(_yx6, _abn._rx9, _abn._px9, _abn._3th);}}if(this._tue){_erh._iee(true);}this._3le();};_vce._5a1=function(){for(var i=0;i<this._thm.length;i++){if(this._thm[i]){this._ndd=i;return;}}this._ndd=-1;};_vce._v9b=function(e){if(this._2oh("chkInherit").checked&&this._kq8()>0){this._oag();}this._7dj();};_vce._7dj=function(){this._2oh( "divSection" ).style.display = ( this._7ve&&( this._kq8()==0 ) )?"block":"none";this._2oh( "divSectionUnchecked" ).style.display = ( this._7ve&&( this._kq8()==0 )&&!this._2oh( "chkSection" ).checked )?"block":"none";this._2oh( "divSectionChecked" ).style.display = ( this._7ve&&( this._kq8()==0 )&&this._2oh( "chkSection" ).checked )?"block":"none";this._2oh( "divSomeLinks" ).style.display = ( !this._iue&&this._kq8() > 0 )?"block":"none";this._2oh( "divNoLinks" ).style.display = ( !this._iue&&!this._7ve&&( this._kq8()==0 ) )?"block":"none";this._2oh( "divInherit" ).style.display = this._iue?"block":"none";this._2oh( "divInheritUnchecked" ).style.display = ( this._iue&&!this._2oh( "chkInherit" ).checked )?"block":"none";this._2oh( "divInheritChecked" ).style.display = ( this._iue&&this._2oh( "chkInherit" ).checked )?"block":"none";if(this._iue){var _6fh=_frh._c6j("IDS_EL_"+this._5ye.nodeName);_4qn._1je( this._2oh( "divInheritUnchecked" ), _frh._c6j( "IDS_LBL_MASTERDETAIL_INHERIT_UNCHECKED", _6fh ) );_4qn._1je( this._2oh( "divInheritChecked" ), _frh._c6j( "IDS_LBL_MASTERDETAIL_INHERIT_CHECKED", _6fh ) );}};_vce._kq8=function(){var _opm=0;for(var i=0;i<this._thm.length;i++){if(this._thm[i]){_opm++;}}return _opm;};_vce._qeg=function(){for(var i=0;i<this._thm.length;i++){this._pxh(this._thm[i], i);}};_vce._pxh=function(_abn,i){if(!_abn){return;}if(!_abn._vzc){_abn._vzc=_pgk._lee(this._wba, "value", _abn._rx9);}if(!_abn._odb){if(_abn._px9){_abn._odb=_pgk._lee(this._tba, "value", _abn._px9);}else{_abn._odb=_pgk._lee(this._ho6, "value", _abn._3th);}}if(!_abn._odb){return;}var d=document;var _soc=d.getElementById(_abn._vzc.getAttribute("htmlId")).cells.item(0);var _b0b=_soc.offsetHeight;var _v7n=_8qn._cik(_abn._vzc);var _fqm=_8qn._cik(_abn._odb);var _10h=this._6qk.offsetWidth;var _8gh=_b0b / 2;var _7j9=_b0b*_v7n;var _ab8=_b0b*_fqm;var _brn=this._7gj.offsetTop+_7j9+_8gh-this._7gj.scrollTop;if(_brn<this._7gj.offsetTop){_brn=this._7gj.offsetTop-_8gh;}if(_brn>(this._7gj.offsetTop+this._7gj.offsetHeight)){_brn=this._7gj.offsetTop+this._7gj.offsetHeight+_8gh;}_brn-= this._6qk.offsetTop;var _t08=_abn._px9?this._0gj:this._4cd;var _crn=_t08.offsetTop+_ab8+_8gh-_t08.scrollTop;if(_crn<_t08.offsetTop){_crn=_t08.offsetTop-_8gh;}if(_crn>(_t08.offsetTop+_t08.offsetHeight)){_crn=_t08.offsetTop+_t08.offsetHeight+_8gh;}_crn-= this._6qk.offsetTop;var _97c=12;var _wv6=(_97c / 2);var _la9=(_10h-_97c);if(!_abn._fsh){var fn=this._5xh.bind(this, i);_abn._fsh=this._y1n.appendChild( d.createElementNS( "http://www.w3.org/2000/svg", "polyline" ) );_abn._fsh.setAttribute( "points", "0,0 10,10 20,20 30,30" );_abn._fsh.setAttribute( "fill", "none" );_abn._fsh.setAttribute( "stroke", "black" );_abn._fsh.setAttribute( "stroke-width", "2px" );_abn._fsh.onmousedown=fn;_abn._3x9=this._y1n.appendChild( d.createElementNS( "http://www.w3.org/2000/svg", "polyline" ) );_abn._3x9.setAttribute( "points", _la9 + ",0 " + ( _la9 + _97c ) + "," + _wv6 + " " + _la9 + "," + _97c );_abn._3x9.setAttribute( "fill", "black" );_abn._3x9.setAttribute( "stroke", "black" );_abn._3x9.setAttribute( "stroke-width", "0px" );_abn._3x9.onmousedown=fn;_abn._esh=this._y1n.appendChild( d.createElementNS( "http://www.w3.org/2000/svg", "rect" ) );_abn._esh.setAttribute( "stroke", "black" );_abn._esh.setAttribute( "stroke-width", "0px" );_abn._esh.setAttribute( "fill", "black" );_abn._esh.setAttribute( "width", "8px" );_abn._esh.setAttribute( "height", "8px" );_abn._esh.setAttribute( "y", "0" );_abn._esh.setAttribute( "x", "0" );_abn._esh.onmousedown=fn;}_abn._fsh.setAttribute( "points", "0," + _brn + " " + "16," + _brn + " " + ( _10h - 16 ) + "," + _crn + " " + ( _10h - 3 ) + "," + _crn );_abn._3x9.setAttribute( "points", _la9 + "," + ( _crn - _wv6 ) + " " + ( _la9 + _97c ) + "," + _crn + " " + _la9 + "," + ( _crn + _wv6 ) );_abn._esh.setAttribute("y",(_brn-4).toString());};_vce._buh=function(i){var _abn=this._thm[i];if(_abn){_abn._fsh.parentNode.removeChild(_abn._fsh);_abn._esh.parentNode.removeChild(_abn._esh);if(_abn._3x9){_abn._3x9.parentNode.removeChild(_abn._3x9);}this._thm[i]=null;}};_vce._oag=function(){for(var i=0;i<this._thm.length;i++){this._buh(i);}this._ndd=-1;this._tu8();};_vce._5xh=function(i){this._ndd=i;this._tu8();};_vce._2ol=function(_37e,_wmc){for(var i=0;i<this._thm.length;i++){var _abn=this._thm[i];if((_abn._rx9==_37e)&&(_abn._px9==_wmc)){return _abn;}}return null;};_vce._tu8=function(){for(var i=0;i<this._thm.length;i++){var _abn=this._thm[i];if(_abn&&_abn._fsh){var _pvm=_9l8._9h8((i==this._ndd)?"--primary1":"--text-02");_abn._fsh.setAttribute( "stroke-width", ( i==this._ndd )?"4px":"2px" );_abn._fsh.setAttribute("stroke", _pvm);_abn._3x9.setAttribute("fill", _pvm);_abn._3x9.setAttribute("stroke", _pvm);_abn._esh.setAttribute("fill", _pvm);_abn._esh.setAttribute("stroke", _pvm);}}if(this._ndd==-1){this._llg._rn9();this._7lg._rn9();this._cub._rn9();}else{var _abn=this._thm[this._ndd];this._llg._uab(_pgk._lee(this._wba, "value", _abn._rx9), false);if(_abn._px9){this._cub._rn9();this._7lg._uab(_pgk._lee(this._tba, "value", _abn._px9), false);}else{this._7lg._rn9();this._cub._uab(_pgk._lee(this._ho6, "value", _abn._3th), false);}}};_vce._ua7=function(_a6k){this._qeg();};_vce._pe4=function(_a6k,_mzj,_zdf){if(this._ndd==-1){_mzj.setAttribute( "selected", "false" );if(_zpn._qsh["hal"]["enableAccessibility"]){this._2oh("btnNewLink").focus();}_67j("IDS_MSG_NEW_LINK");return;}var _abn=this._thm[this._ndd];if(_a6k._ezm()=="_vce_divMaster"){_abn._rx9=_mzj.getAttribute("value");_abn._vzc=null;}else if(_a6k._ezm()=="_vce_divDetail"){_abn._px9=_mzj.getAttribute("value");_abn._3th="";_abn._odb=null;}else{_abn._3th=_mzj.getAttribute("value");_abn._px9="";_abn._odb=null;}this._pxh(_abn, this._ndd);this._tu8();};_vce._acj=function(e){if((e.keyCode==_4qn._qrh)&&(this._ndd!=-1)){this._buh(this._ndd);this._5a1();this._tu8();this._7dj();}this._1f7(e);};_vce._5ll=function(){var _abn={};this._thm.push(_abn);_abn._rx9=_pgk._m65(this._wba, 0).getAttribute("value");var _mzj=_pgk._m65(this._tba, 0);if(_mzj){_abn._px9=_mzj.getAttribute("value");_abn._3th="";}else{_mzj=_pgk._m65(this._ho6, 0);_abn._3th=_mzj.getAttribute("value");_abn._px9="";}this._ndd=this._thm.length-1;this._pxh(_abn, this._ndd);this._tu8();if(this._iue){this._2oh("chkInherit").checked=false;}this._7dj();};
|