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 _rm9=new _lcm("_rm9");_rm9._jgn=function(_u4c,_9gi,_kzi,_8za,_598){this._gqb=_u4c;this._m1f=_kzi;this._7fa=_8za;this._dv7=_598||"canUseReportStudio";this._d0n._g1i=_9gi;_hyc._7gn(this);};_rm9._cy2=function(_jug){if(_jug){return;}this._4le(this._gqb);this._gqb=null;};_rm9._bgn=function(){if(this._2oh("btnOK").disabled){return;}if(this._2oh("radCurrentPackage").checked!=true){var _t2k=this._kp6._5r9();if(this._fue){_t2k=this._6ub._5r9();}if(_t2k){this._7fa=_t2k.getAttribute("label");this._m1f=_t2k.getAttribute("packagePath");}}var _9gi=this._d0n._g1i;var _hvf=this._n7b();var _jvf=this._o7b();var _lfh=this._1tc();this._3le();if(_9gi){_9gi(_hvf, _jvf, _lfh);}};_rm9._n7b=function(){return this._7fa;};_rm9._o7b=function(){return this._m1f;};_rm9._1tc=function(){return this._fng;};_rm9._5z2=function(){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);var _mfi=document.getElementById("_rm9_rootPane");var _p1k=this._53g("ModelConnectionDlgPane");var _tvg=true;this._80f=new _uzf(_mfi, _p1k, null, null, null, _tvg);var _tsa=_frh._53g("AsyncTree");var d=_tsa.ownerDocument;var _qbc=_tsa.appendChild(d.createElement("treeNode"));_qbc.setAttribute( "name", "/content" );_qbc.setAttribute("label", _emc);_qbc.setAttribute( "expandable", "true" );_qbc.setAttribute( "smallIcon", "publicfolder.gif" );_qbc.setAttribute( "idsExtraAriaLabel", "IDS_AC_TYPE_publicfolder" );this._kp6=new _vgk(this._2oh("divConnectionsPublicFolders"), _tsa, this);var _35h=_frh._53g("AsyncTree");var _yni=_35h.appendChild(d.createElement("treeNode"));_yni.setAttribute( "name", "~/folder" );_yni.setAttribute("label", _ozi);_yni.setAttribute( "expandable", "true" );_yni.setAttribute( "smallIcon", "myfolder.gif" );_yni.setAttribute( "idsExtraAriaLabel", "IDS_AC_TYPE_myfolder" );this._6ub=new _vgk(this._2oh("divConnectionsMyFolders"), _35h, this);var _68f=false;if(_hyc._fhm){_68f=(_hyc._fhm[0].Type!="content");}this._0u9(_68f);this._2oh("txtPackageName").value=this._7fa;this._cb5("txtPackageName", true);_rm9._fng=_ypn._om8?_ypn._om8:_qgn._5eb;this._2oh("txtLocaleName").value=_r7g._j7b(_rm9._fng);this._zgm();};_rm9._kqe=function(){var _zwk=true;if(this._2oh("radCurrentPackage").checked!=true){var _aof=this._fue?this._6ub:this._kp6;if(!_aof._5r9()||_aof._5r9().getAttribute("cm_nodeType") != "package" ){_zwk=false;}this._cb5("txtPackageName", false);}else{this._cb5("txtPackageName", true);}this._pj8("btnOK", _zwk);};_rm9._wl3=function(){var _gwd=null;var _h7k=null;if(this._fue){_gwd=this._6ub._cr9().selectSingleNode("treeNode");_h7k=this._6ub;}else{_gwd=this._kp6._cr9().selectSingleNode("treeNode");_h7k=this._kp6;}_h7k._onh(_gwd);};_rm9._zgm=function(){this._80f._cbb("ModelConnectionDlgPane", this._m56(), this._m75());};_rm9._4e1=function(){return this._80f._bg8();};_rm9._1q1=function(){return this._80f._jq9();};_rm9._jo9=function(_mzl,_xqm,_id2){this._zgm();};_rm9._b65=function(){if(this._9sk){this._9sk._7zm();delete this._9sk;}};_rm9._o46=function(){this._6ub._fdm();delete this._6ub;this._kp6._fdm();delete this._kp6;delete this._m1f;};_rm9._0u9=function(_mci){_4gm._rje(this._2oh("btnPublicFolders"), !_mci);_4gm._rje(this._2oh("btnMyFolders"), _mci);this._fue=_mci;this._2oh("divConnectionsPublicFolders").style.display = _mci?"none":"";this._2oh("divConnectionsMyFolders").style.display = _mci?"":"none";};_rm9._pi8=function(){_rm9._0u9(true);var _qac=this._6ub._cr9().selectSingleNode("treeNode");this._6ub._onh(_qac);};_rm9._cf4=function(){_rm9._0u9(false);var _ny6=this._kp6._cr9().selectSingleNode("treeNode");this._kp6._onh(_ny6);};_rm9._k61=function(_h7k,_t2k){var _rsf=_t2k.getAttribute("name");var _t4e=_rsf+"/*";var _31b=_rsf+"/package/packageConfiguration";var _4eh ='<bus:query>'+"<search>" + _cgm._e8j( _t4e ) + "[@shown='true'][permission('read') or permission('write') or permission('traverse') or permission('execute')]</search>" +'<sortBy xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:sort[]">' +'<item xsi:type="bus:sort">' +'<propName xsi:type="bus:propEnum">usage</propName>' +'<order xsi:type="bus:orderEnum">ascending</order>' +'</item>'+'<item xsi:type="bus:sort">' +'<propName xsi:type="bus:propEnum">displaySequence</propName>' +'<order xsi:type="bus:orderEnum">descending</order>' +'</item>'+'<item xsi:type="bus:sort">' +'<propName xsi:type="bus:propEnum">defaultName</propName>' +'<order xsi:type="bus:orderEnum">ascending</order>' +'</item>'+'</sortBy>'+'<properties xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:propEnum[]">' +'<item>defaultName</item>'+'<item>searchPath</item>'+'<item>userInterfaces</item>'+'<item>effectiveUserCapabilities</item>'+'</properties>'+'</bus:query>';this._9sk=new _ylh(this, _ylh._mc, _4eh);this._9sk._ign();this._zxe=_t2k;return true;};_rm9._996=function(_yal){var _5um=_yal._8ik();if(_5um){_08j(_5um);}var _7ma=_yal._63g();var _7ui=this._kp6;if(this._fue){_7ui=this._6ub;}if(!_7ma){_7ui._hee(false);return;}var _j05=_7ma.selectSingleNode("/SOAP-ENV:Envelope/SOAP-ENV:Body/*/queryResult");if(!_j05){_7ui._hee(false);return;}var nl=_j05.selectNodes("item");var _tzl=nl.length;for(var i=0;i<_tzl;i++){var _d9n=nl.item(i);var _pen=_d9n.getAttribute( "xsi:type" ).split( ":" )[1];var _5ci=_pen=="package";if(!_5ci&&_pen!="folder"){continue;}var _ivf=_d9n.selectSingleNode("searchPath/value").text;if(_5ci){var _7td=_d9n.selectSingleNode("effectiveUserCapabilities");if(this._dv7&&!_al8._v6j(this._dv7)){continue;}}if(_5ci&&_d9n.selectSingleNode( "userInterfaces/*" )&&!_d9n.selectSingleNode( "userInterfaces/value/item[text()='reportStudio']" ) ){continue;}var _hvf=_d9n.selectSingleNode("defaultName/value").text;var d=this._zxe.ownerDocument;var n=this._zxe.appendChild(d.createElement("treeNode"));n.setAttribute("name", _ivf);n.setAttribute("label", _hvf);n.setAttribute("packagePath", _ivf);n.setAttribute( "expandable", "true" );n.setAttribute("cm_nodeType", _pen);var _q1j="package.gif";var _hff="IDS_CCHL_AC_TYPE_PACKAGE";if(_pen=="folder"){_q1j="hal/images/tv_folder.gif";_hff="IDS_HAL_AC_TYPE_FOLDER";}else 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";}n.setAttribute("smallIcon", _q1j);n.setAttribute("idsExtraAriaLabel", _hff);}_7ui._hee(true);};_rm9._fg4=function(_h7k,_t2k){this._2oh("radNewPackage").checked=true;this._2oh("radCurrentPackage").checked=false;this._cb5("txtPackageName", false);var _zwk=false;if(_h7k._5r9().getAttribute("cm_nodeType")=="package"){_zwk=true;}this._pj8("btnOK", _zwk);};_rm9._w9b=function(){var _h9l={};var _zeh=_rm9._fng;if(_zeh){_h9l[_zeh]=true;}var _jxm=_frh._c6j("IDS_REPORTLANGUAGE");var _edn=_frh._c6j("IDS_LBL_MODEL_INFO");_8fm._jgn("_7jl", this._xp9(), null, _h9l, _rm9._ehe, true, false, _jxm, _edn);};_rm9._ehe=function(_mlm){_rm9._fng=_mlm[0];_rm9._2oh("txtLocaleName").value=_r7g._j7b(_rm9._fng);};
|