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 _a4b=new _lcm( "_a4b", "dlgContentManager" );_a4b._8kk=function(_6wa,_s4k,_mha,_3en,_jxm){this._r1n=false;this._lhn=false;this._2ij=_s4k;this._s3n=_3en||"";this._egg=_3en?false:this._egg;this._a8a=_mha;this._4le(null, _6wa, _jxm||_frh._c6j("IDS_TITLE_OPEN"));};_a4b._9kk=function(_6wa,_s4k,_3en,_9ak){this._r1n=true;this._lhn=false;this._2ij=_s4k;this._s3n=_3en||"";this._ikj=_9ak||"";this._4le(null, _6wa, _frh._c6j("IDS_TITLE_SAVE_AS"));};_a4b._xll=function(_6wa,_s4k,_mha,_3en,_jxm){this._r1n=false;this._lhn=true;this._2ij=_s4k;this._s3n=_3en||"";this._egg=_3en?false:this._egg;this._a8a=_mha;this._4le(null, _6wa, _jxm||_frh._c6j("IDS_TITLE_NEWFROMTEMPLATE"));};_a4b._src=function(){this._egg=false;this._8pb=false;if(!_al8._v6j("canUseReportStudioFileManagement")){this._2oh( "btnDelete" ).style.display = "none";}var _fxj=this._53g('PathCombo');this._0ql=new _jgk(this._2oh("cboPathCombo"), _fxj, null, this);this._wze=new _pgk( this._2oh( "divDirectoryListView" ), this._53g( "ListWithCaseInsensitiveKeySearch" ), this );this._3pg=this._2oh("txtFileName");var _8gi=this._jqe.bind(this);var _6na=_olk._zn9(_8gi);this._3pg.onchange=_8gi;this._3pg.onpaste=_6na;this._3pg.onkeyup=_8gi;this._3pg.onkeypress=_6na;this._q2i=this._2oh("imgPreview");};_a4b._fdm=function(){if(this._0ql){this._0ql._fdm();delete this._0ql;}if(this._wze){this._wze._fdm();delete this._wze;}};_a4b._5z2=function(){this._ng7();if(this._r1n){this._2oh( "txtFileName" ).style.display = "";this._2oh("txtFileName").value=this._ikj;this._2oh( "cboFileType" ).style.display = "none";_4qn._1je( this._2oh( "spanFileName" ), _frh._c6j( "IDS_LBL_NAME" ) );_4qn._1je( this._2oh( "tdPathLabel" ), _frh._c6j( "IDS_LBL_SAVEIN" ) );_4qn._1je( this._2oh( "spanOKLabel" ), _frh._c6j( "IDS_BTN_SAVE" ) );}else{this._2oh( "txtFileName" ).style.display = "none";this._2oh( "cboFileType" ).style.display = "";_4qn._1je( this._2oh( "spanFileName" ), _frh._c6j( "IDS_LBL_FILETYPE" ) );_4qn._1je( this._2oh( "tdPathLabel" ), _frh._c6j( "IDS_LBL_LOOKIN" ) );_4qn._1je( this._2oh( "spanOKLabel" ), _frh._c6j( "IDS_BTN_OPEN" ) );}this._2oh( "btnOK" ).style.display = this._lhn?"none":"";this._2oh( "btnNewOk" ).style.display = this._lhn?"":"none";var _fxj=this._53g('FileType');var _ozj=_fxj.selectSingleNode("listView");if(this._2ij){var nl=_ozj.selectNodes("listItems/listItem");for(var i=nl.length-1;i>=0;i--){var _mzj=nl.item(i);if(!this._2ij[_mzj.getAttribute( "value" ).split( "," )[0]] ){_mzj.parentNode.removeChild(_mzj);}}}this._fhg=new _jgk(this._2oh("cboFileType"), _fxj, null, this);this._fhg._2g4(_pgk._m65(_ozj, 0));if(!this._04i){var nl=_ozj.selectNodes("listItems/listItem/@value");this._04i=_m0n._je8( _8qn._fde( null, nl ).join( "," ).split( "," ) );}this._wze._bzm();this._wze._wfn();var _py4=this._2oh("divDirectoryListView");_u0n._3a6(_py4);_py4.style.width=this._8pb?"340px":"450px";this._2oh( "tdPreview" ).style.display = this._8pb?"":"none";};_a4b._ng7=function(){this._q2i.src="hal/images/blank.gif";};_a4b._wl3=function(){if(!this._egg){this._zib();this._egg=true;}this._3ab();this._zj6();if(this._r1n){this._3pg.focus();this._3pg.select();}else{this._2oh("btnCancel").focus();}};_a4b._o46=function(){delete this._kd3;if(this._fhg){this._fhg._fdm();delete this._fhg;}delete this._alg;delete this._s3n;delete this._ikj;this._ng7();};_a4b._g67=function(_35k,_a58){if(_35k==this._fhg){this._alg=_m0n._je8( _a58.getAttribute( "value" ).split( "," ) );this._3ab(true);return;}if(!_a58||_a58==this._109){return;}this._109=_a58;var _ini=_35k._o2g()._5g8();var _mzj=this._109.nextSibling;var _w6h=null;var _416=this._109.getAttribute("indentLevel");while(_mzj){var _ztf=_mzj.getAttribute("indentLevel");if(!_ztf||_ztf<=_416){break;}_w6h=_mzj;_mzj= _mzj.nextSibling;_ini.removeChild(_w6h);}var n=this._109.nextSibling;var _mci=true;while(n){if(n==this._erl){_mci=false;break;}n=n.nextSibling;}this._0u9(_mci);this._3ab();};_a4b._jg2=function(_35k,_a6k){_35k._ic7("");};_a4b._kg2=function(_35k,_a6k){_a6k._wfn();_35k._yp3();};_a4b._qi8=function(){var nl=this._wze._eq9().selectNodes("listItems/listItem/@label");var _a8k=_8qn._g8b(nl, _frh._c6j("IDS_NEWFOLDER_NAME"));_jcb._u86( this._xp9(), _a8k, Function( '_vdn', '_a4b._1ee( _vdn )' ) );};_a4b._2ie=function(){if((this._109==this._erl)||(this._109==this._8kg)){return;}var _mzj=this._109;var _iw5=parseInt(_mzj.getAttribute("indentLevel"));while(_mzj.previousSibling){_mzj=_mzj.previousSibling;var _ldf=parseInt(_mzj.getAttribute("indentLevel"));if(!_ldf||_ldf<_iw5){this._0ql._hwc(_mzj.getAttribute("value"), false);this._g67(this._0ql, _mzj);break;}}};_a4b._yvc=function(){_jcb._lt9( this._xp9(), this._wze._885().getAttribute( "label" ), Function( '_vdn', '_a4b._wem( _vdn )' ) );};_a4b._ovc=function(){_jcb._7rc(this._xp9(), this._wze._885().getAttribute("label"),function(){ _a4b._edm(); });};_a4b._nb7=function(){var _mzj=this._wze._885();_8fm._jgn( "_kce", this._xp9(), _mzj.getAttribute( "label" ), "images/" + _mzj.getAttribute( "smallIcon" ), _mzj.getAttribute( "path" ) );};_a4b._pg1=function(){if(this._kd3){this._kd3._7zm();this._kd3=null;}};_a4b._3ab=function(_c2c){this._pg1();if(_c2c&&!this._qwb){var _mzj=this._wze._885();if(_mzj){this._qwb=_mzj.getAttribute("label");}}this._wze._bzm();this._wze._wfn();_u0n._3a6(this._2oh("divDirectoryListView"));if(this._109){this._kd3=new _bk3(this, this._109.getAttribute("path"));this._kd3._lqh(_ylh._brc(this._js3));this._kd3._ign();}this._zj6();};_a4b._1ee=function(_vdn){if(_jcb._yje(_vdn)&&this._109){var _yal=new _y26( this, this._109.getAttribute( "path" ), _vdn, "folder");var _a9l=_ylh._brc(this._2e5);_a9l._p3n=_vdn;_yal._lqh(_a9l);_5ml._y5g(_yal, _frh._c6j("IDS_MSG_CREATING_FOLDER"));}};_a4b._wem=function(_vdn){if(_jcb._yje(_vdn)){var _mzj=this._wze._885();var _3en=_mzj.getAttribute("path");var _pen=_mzj.getAttribute("class");var _yal=_jcb._dp1(this, _3en, _pen, _vdn);var _a9l=_ylh._brc(this._01d);_a9l._p3n=_vdn;_yal._lqh(_a9l);_5ml._y5g(_yal, _frh._c6j("IDS_MSG_RENAMING_OBJECT"));}};_a4b._edm=function(){var _yal=_jcb._ap1(this, this._wze._885().getAttribute("path"));_yal._lqh(_ylh._brc(this._z0d));_5ml._y5g(_yal, _frh._c6j("IDS_MSG_DELETING_OBJECT"));};_a4b._js3=1;_a4b._2e5=2;_a4b._01d=3;_a4b._z0d=4;_a4b._996=function(_yal){var _5um=_yal._8ik();if(_5um){_08j(_5um);}var _a9l=_yal._ynh();var _7ma=_yal._63g();switch(_a9l._u1n){case this._js3:this._fu(_7ma);break;case this._2e5:case this._01d:if(_jcb._ig4(_7ma)){this._qwb=_a9l._p3n;this._3ab(true);}break;case this._z0d:if(_jcb._ig4(_7ma)){this._3ab();}break;}};_a4b._fu=function(_7ma){this._wze._bzm();this._5l6=[];this._5b3=[];var _akf=_jcb._sb7(_7ma);if(_akf){var nl=_akf.selectNodes("item");var _tzl=nl.length;var _ldf=parseInt(this._109.getAttribute("indentLevel"))+1;for(var i=0;i<_tzl;i++){var _mzj=null;var _d9n=nl.item(i);var _pen=_d9n.getAttribute( "xsi:type" ).split( ":" )[1];var _jjh=_d9n.selectSingleNode("searchPath/value").text;var _vdn=_d9n.selectSingleNode("defaultName/value").text;this._5l6.push(_vdn.toLowerCase());this._5b3.push(_pen);if(this._a8a){switch(_pen){case "report":case "reportTemplate":case "query":case "analysis":case "interactiveReport":var _sjf=_d9n.selectSingleNode("metadataModelPackage/value/item/searchPath/value");if(!_sjf){continue;}var _ivf=_sjf.text;if(!_m0n._wik(this._a8a, _ivf)){continue;}}}switch(_pen){case "report":case "reportView":case "query":case "reportTemplate":case "interactiveReport":case "exploration":var _86n=_d9n.selectSingleNode("permissions/value/item[text()='read']")!=null;var _1om=_d9n.selectSingleNode("permissions/value/item[text()='write']")!=null;if(!_86n&&!_1om){continue;}break;}if(!this._r1n&&this._04i[_pen]){if(this._alg&&!this._alg[_pen]){continue;}}var _pnm=_d9n.selectSingleNode( "shown/value" ).text=="true";if(!_pnm){continue;}switch(_pen){case "package":_mzj=this._wze._767();var _q1j="package.gif";var _hff="IDS_CCHL_AC_TYPE_PACKAGE";if(_d9n.selectSingleNode("userInterfaces/value/item[text()='metricStudio']")){_q1j="package_metricStudio.gif";_hff="IDS_AC_TYPE_package_metricStudio";}else if(_d9n.selectSingleNode("userInterfaces/value/item[text()='planningContributor']")){_q1j="package_planningContributor.gif";_hff="IDS_AC_TYPE_package_planningContributor";}_mzj.setAttribute("smallIcon", _q1j);_mzj.setAttribute( "icon", _q1j.replace( ".gif", "_200x200.gif" ) );_mzj.setAttribute("idsExtraAriaLabel", _hff);break;case "report":case "reportTemplate":case "analysis":case "interactiveReport":case "exploration":if(this._2ij[_pen]){_mzj=this._wze._767();_mzj.setAttribute( "storeID", _d9n.selectSingleNode( "storeID/value" ).text );_mzj.setAttribute( "smallIcon", _pen + ".gif" );_mzj.setAttribute( "icon", _pen + "_200x200.gif" );_mzj.setAttribute( "idsExtraAriaLabel", "IDS_AC_TYPE_report_" + _pen ); }break;case "reportView":if(this._2ij[_pen]){_mzj=this._wze._767();_mzj.setAttribute( "smallIcon", "report.gif" );_mzj.setAttribute( "icon", "report_200x200.gif" );_mzj.setAttribute( "idsExtraAriaLabel", "IDS_AC_TYPE_report_reportView" ); }break;case "folder":_mzj=this._wze._767();_mzj.setAttribute( "smallIcon", "hal/images/tv_folder.gif" );_mzj.setAttribute( "icon", "hal/images/tv_folder_200x200.gif" );_mzj.setAttribute( "idsExtraAriaLabel", "IDS_HAL_AC_TYPE_FOLDER" ); break;case "query":if(this._2ij[_pen]){_mzj=this._wze._767();_mzj.setAttribute( "storeID", _d9n.selectSingleNode( "storeID/value" ).text );_mzj.setAttribute( "smallIcon", "qs_query.gif" );_mzj.setAttribute( "icon", "qs_query_200x200.gif" );_mzj.setAttribute( "idsExtraAriaLabel", "IDS_AC_TYPE_report_query" ); }break;}if(_mzj){_mzj.setAttribute("label", _vdn);_mzj.setAttribute("name", _vdn);_mzj.setAttribute("path", _jjh);_mzj.setAttribute("value", _jjh);_mzj.setAttribute("class", _pen);_mzj.setAttribute("indentLevel", _ldf.toString());}}}this._wze._wfn();if(this._qwb){var _mzj=this._wze._lee("label", this._qwb);if(_mzj){this._wze._uab(_mzj);}delete this._qwb;}};_a4b._cf4=function(){this._0ql._hwc(this._8kg.getAttribute("value"), false);this._g67(this._0ql, this._8kg);};_a4b._pi8=function(){this._0ql._hwc(this._erl.getAttribute("value"), false);this._g67(this._0ql, this._erl);};_a4b._pe4=function(_a6k,_mzj,_zdf){var _lvm=_mzj.getAttribute("class");switch(_lvm){case "report":case "query":case "reportTemplate":case "analysis":case "interactiveReport":this._3pg.value=_mzj.getAttribute("label");break;case "package":if(this._2ij[_lvm]){this._3pg.value=_mzj.getAttribute("label");}break;}setTimeout('_a4b._zj6()', 0);this._7n5();};_a4b._7n5=function(){if(!this._8pb){return;}var _mzj=this._wze._885();if(!_mzj||!this._2oh("chkShowPreview").checked){this._ng7();return;}switch(_mzj.getAttribute("class")){case "report":case "query":case "reportTemplate":break;default:this._ng7();return;}this._ng7();this._q2i.src=_qgn._a9g+"/icd/feeds/cm/system/rds/content/report/" + _mzj.getAttribute( "storeID" ) + "?version=NO_DATA&fmt=Image&height=" + this._q2i.offsetHeight + "&width=" + this._q2i.offsetWidth;};_a4b._oi2=function(_a6k,_mzj){switch(_mzj.getAttribute("class")){case "query":if(this._r1n){break;}case "report":case "reportView":case "reportTemplate":case "analysis":case "interactiveReport":case "exploration":this._bgn();break;case "package":case "home":case "folder":this._twh(_mzj);break;}this._zj6();};_a4b._oq9=function(){var _mzj=this._wze._885();return _mzj?_mzj.getAttribute( "path" ):"";};_a4b._966=function(){var _mzj=this._wze._885();return _mzj?_mzj.getAttribute( "storeID" ):"";};_a4b._nq9=function(){var _mzj=this._wze._885();return _mzj?_mzj.getAttribute( "label" ):"";};_a4b._ig8=function(){var _mzj=this._wze._885();return _mzj?_mzj.getAttribute( "class" ):"";};_a4b._vg8=function(){return this._109.getAttribute("path");};_a4b._2r9=function(){return this._3pg.value;};_a4b._q75=function(_9ak){var _2kn=this._5l6.indexOf(_9ak.toLowerCase());if(_2kn!=-1){return this._5b3[_2kn];}return "";};_a4b._twh=function(_mzj){var _0d9=_mzj.cloneNode(true);this._0ql._o2g()._5g8().insertBefore(_0d9, this._109.nextSibling);this._109=_0d9;this._0ql._hwc(_0d9.getAttribute("value"), false);this._3ab();this._zj6();};_a4b._n86=function(_3en){if(this._09b()){var _mzj=this._wze._885();if(_mzj&&(_mzj.getAttribute("path")==_3en)){this._bgn();}}};_a4b._bgn=function(){var _mzj=this._wze._885();if(_mzj){var _lvm=_mzj.getAttribute("class");switch(_lvm){case "package":if(this._2ij[_lvm]){break;}case "home":case "folder":this._twh(_mzj);return;}}this._pg1();this._3le();};_a4b._9jk=function(){this._pg1();this._bm8();};_a4b._zib=function(){var _a6k=this._0ql._o2g();_a6k._bzm();var _emc=_hyc._wmb ?_hyc._wmb:_frh._c6j("IDS_CM_PUBLIC_FOLDER");var _ozi=_hyc._yxh ?_hyc._yxh:_frh._c6j("IDS_CM_PERSONAL_FOLDER");var _ra9=this._2oh("lblPublicFolders");var _jff=this._2oh("lblMyFolders");_4qn._1je(_ra9, _emc);_4qn._1je(_jff, _ozi);this._8kg=_a6k._767();this._8kg.setAttribute("label", _emc);this._8kg.setAttribute( "value", "/content" );this._8kg.setAttribute( "smallIcon", "publicfolder.gif" );this._8kg.setAttribute( "path", "/content" );this._8kg.setAttribute( "class", "content" );this._8kg.setAttribute("indentLevel", 0);var _qak="~/folder";this._erl=_a6k._767();this._erl.setAttribute("label", _ozi);this._erl.setAttribute("value", _qak);this._erl.setAttribute( "smallIcon", "myfolder.gif" );this._erl.setAttribute("path", _qak);this._erl.setAttribute( "class", "folder" );this._erl.setAttribute("indentLevel", 0);var _sgf=this._erl;var _68f=true;if(_hyc._fhm){_68f=(_hyc._fhm[0].Type!="content");var _ini=_a6k._5g8();var d=_ini.ownerDocument;var _yud=_68f?null:this._erl;var _lqm=_68f?4:1;for(var i=_lqm; i<_hyc._fhm.length;++i){var o=_hyc._fhm[i];var _mzj=_ini.insertBefore(d.createElement("listItem"), _yud);_mzj.setAttribute("label", o.Name);_mzj.setAttribute("value", o.Path);_mzj.setAttribute( "smallIcon", ( o.Type=="package" )?"package.gif":"hal/images/tv_folder.gif" );_mzj.setAttribute("path", o.Path);_mzj.setAttribute("class", o.Type);_mzj.setAttribute("indentLevel", i-_lqm+1);_sgf=_mzj;}}this._109=_sgf;this._0ql._2g4(_sgf);this._0u9(_68f);};_a4b._0u9=function(_mci){_4gm._rje(this._2oh("btnPublicFolders"), !_mci);_4gm._rje(this._2oh("btnMyFolders"), _mci);var _ini=this._0ql._o2g()._5g8();var _mzj=_mci?this._8kg.nextSibling:this._erl.nextSibling;var _w6h=null;var _a2k=_mci?this._erl:null;while(_mzj!=_a2k){_w6h=_mzj;_mzj=_mzj.nextSibling;_ini.removeChild(_w6h);}};_a4b._zj6=function(){var _mzj=this._wze._885();var _wqn=(this._r1n&&this._3pg.value);var _kvl=false;var _oci=true;var _twl=false;var _xug=(_mzj!=null);var _ynm=(this._109.getAttribute("indentLevel")>0);if(_mzj){var _lvm=_mzj.getAttribute("class");switch(_lvm){case "report":case "reportView":case "reportTemplate":case "query":case "analysis":case "interactiveReport":case "exploration":_wqn=this._2ij[_lvm];_twl=true;_kvl=true;break;case "folder":_wqn=true;_twl=true;_kvl=true;break;case "package":case "home":_wqn=true;break;}}else{this._ng7();}this._pj8("btnOK", _wqn);this._pj8("btnNewOk", _wqn);this._pj8("btnDelete", _kvl);this._pj8("btnNewFolder", _oci);this._pj8("btnRename", _twl);this._pj8("btnProperties", _xug);this._pj8("btnUpDir", _ynm);};_a4b._jqe=function(){this._wze._rn9();this._zj6();};
|