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.
- _pcb._77j=function(_2am,_2bi){if(_2bi){this._qm4();}this._reg();};_pcb._qm4=function(){this._b14=document.getElementById("divTopToolbarDownload");this._3l1=document.getElementById("divTopToolbarDownloadTitle");this._acd=document.getElementById("divTopToolbar");};_pcb._fdm=function(){if(this._gsk){this._gsk._fdm();this._gsk=null;}this._b14=null;this._3l1=null;this._acd=null;};_pcb._reg=function(){var _22c=Application.SharedState.Get("isDownloading");this._b14.style.display=_22c?"block":"none";this._acd.style.display=_22c?"none":"block";if(_22c){ var format=_frh._c6j("IDS_RUN_FORMAT_"+_38g._g0n._pd5);var innerText=_frh._c6j("IDS_DOWNLOADING_AS", format);_4qn._1je(this._3l1, innerText);}else{if(!this._gsk){this._gsk=new _0jl(this._acd, _frh._53g("_pcb_Toolbar"), this);this._dcg(this._gsk);}var b=_wd7._zuc();this._gsk._oj8("btnARPreview", b);this._gsk._oj8("btnAREdit", !b);}};_pcb._ji8=function(){_38g._g0n._a5b();};_pcb._g42=function(_gbl,_35k,_mzj){var _ksn=_35k._ezm();var _uxm=_mzj.getAttribute("value");switch(_ksn){case "cboScreenSize":if(_mzj.getAttribute( "idsLabel" )=="IDS_CREATE_CUSTOM_SIZE" ){_8fm._jgn("_7d8");break;}var _cxk =_uxm!="";var _zn1=_gbl._42g("cboScreenOrientation");if(_cxk){_wd7._8xc( _mzj.getAttribute("customScreenSizeWidth"), _mzj.getAttribute("customScreenSizeHeight"), _mzj.getAttribute("customScreenSizeName"), !!_mzj.getAttribute("iPadApp") );var _gci=( Number( _mzj.getAttribute("customScreenSizeWidth") ) > Number( _mzj.getAttribute("customScreenSizeHeight")));_zn1._3kk( _gci?"landscape":"portrait", _gci?"IDS_PROPVAL_LANDSCAPE":"IDS_PROPVAL_PORTRAIT" );}else{_wd7._8xc();}_zn1._mqh(_cxk);break;case "cboScreenOrientation":_wd7._fbb(_uxm);break;}};_pcb._dcg=function(_gbl){var _35k=_gbl._42g("cboScreenSize");var _fjh=_qkk._qik("ScreenSize");if(_fjh&&_fjh!="<listItems/>"){var d=_8qn._kph(_5hk, _fjh, false, true);var nl=d.selectNodes(".//listItem");var _tzl=nl.length;for(var i=0;i<_tzl;i++){var _mzj=nl.item(i);_mzj.setAttribute( "label", _mzj.getAttribute( "value" ) );this._ym7(_mzj, _mzj.getAttribute("value"));}var _a6k=_35k._o2g();_8qn._35b(_a6k._5g8(), nl);_a6k._wfn();}_35k._3kk( "", "IDS_SCREEN_SIZE" );var _35k=_gbl._42g("cboScreenOrientation");_35k._3kk( "portrait", "IDS_PROPVAL_PORTRAIT" );_35k._mqh(false);};_pcb._xd8=function(_rzi,_8lh,_ttf){var _ykc=_frh._c6j("IDS_CUSTOM_SCREENSIZE", _8lh, _ttf, _rzi);var _k88=this._gsk._42g("cboScreenSize");var _a6k=_k88._o2g(); var _e8c=_a6k._767();_e8c.setAttribute("value", _ykc);_e8c.setAttribute("label", _ykc);_e8c.setAttribute("customScreenSizeWidth", _8lh);_e8c.setAttribute("customScreenSizeHeight", _ttf);_e8c.setAttribute("customScreenSizeName", _rzi);this._ym7(_e8c, _ykc);_a6k._wfn();_k88._3kk(_ykc);_wd7._8xc(_8lh, _ttf, _rzi, false); var _zn1=this._gsk._42g("cboScreenOrientation");_zn1._3kk(this._j2f,(this._j2f=='landscape')?"IDS_PROPVAL_LANDSCAPE":"IDS_PROPVAL_PORTRAIT");_zn1._mqh(true);};_pcb._ym7=function(_mzj,_uxm){_mzj.setAttribute( "html", '<table cellpadding="0" cellspacing="0" style="width:100%; line-height:var(--32L)"><tr><td style="width:100%; white-space:nowrap;"><span style="vertical-align:middle; padding-left:var(--16S)">' + _uxm + '</span></td><td style="padding:0 4px"><div onclick="_pcb._aj8(event)" onmousedown="_4qn._w0g(event)" onmouseup="_4qn._w0g(event)"><svg class="clsSvgIcon16x16" style="fill:var(--primary1)"><use xlink:href="#def_hal_remove_16x16"/></svg></div></td></tr></table>' );};_pcb._aj8=function(e){var _htm=e.target.parentNode.parentNode.getElementsByTagName("SPAN");if(_htm.length==0){return;}var _ykc=_4qn._ofe(_htm.item(0));var _fjh=_qkk._qik("ScreenSize"); if(_fjh){var d=_8qn._kph(_5hk, _fjh, false, true);var _mzj=d.selectSingleNode( ".//listItem[@value='" + _ykc + "']" );d.lastChild.removeChild(_mzj);_qkk._3kk("ScreenSize", _7hn._3em(d));}var _k88=this._gsk._42g("cboScreenSize");_k88._cpe();var _a6k=_k88._o2g();var _ozj=_a6k._5g8();_8qn._cqh( _ozj, ".//listItem[@value=" + _cgm._zxc( _ykc ) + "]" );_a6k._wfn();var o=_wd7._rc4();var _427=( o&&( o.name!="" ) )?_frh._c6j( "IDS_CUSTOM_SCREENSIZE", o.width, o.height, o.name ):_frh._c6j( "IDS_DEFAULT_SCREENSIZE", o.width, o.height );if(_ykc==_427){_k88._3kk( "", "IDS_SCREEN_SIZE" ); _wd7._8xc();this._gsk._42g("cboScreenOrientation")._mqh(false);}};_pcb._lr1=function(){var o=_wd7._rc4();if(o){var _fjh=( o.name!="" )?_frh._c6j( "IDS_CUSTOM_SCREENSIZE", o.width, o.height, o.name ):_frh._c6j( "IDS_DEFAULT_SCREENSIZE", o.width, o.height );}else{var _fjh=_frh._c6j("IDS_SCREEN_SIZE");}this._gsk._42g("cboScreenSize")._3kk(_fjh); };
|