_9jl.js 11 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 _9jl=new _lcm( "_9jl", "dlgOptions" );_9jl._knl=0;_9jl._inl=1;_9jl._caj=2;_9jl._s9g=3;_9jl._slk=4;_9jl._daj=5;_9jl._5z2=function(){this._w01();this._d0n._0in=new _opn("_9jl_tabMain");this._d0n._0in._pie(this._knl);this._d0n._0in._dxc(this._slk, _vzm._49b());this._d0n._0in._dxc(this._daj, _vzm._s8g);this._d0n._ln6=_mkk._odm("DefaultSettings.xml");this._d0n._sca=this._481("divDebugPropertySheet", "debug");this._d0n._129=this._481("divSecretPropertySheet", "secret");this._d0n._us2={};this._ha3(this._d0n._sca, false);this._ha3(this._d0n._129, false);};_9jl._w01=function(){this._2oh( "chkShowHiddenDialogs" ).checked = _qkk._qik( "ShowNameDialogOnInsert" );this._2oh( "chkInplaceEdit" ).checked = _qkk._qik( "InplaceEdit" );this._2oh( "chkCreateCrosstabNode" ).checked = _qkk._qik( "CreateCrosstabNode" );this._2oh( "chkEnableDrillDownLinks").checked = _qkk._qik("EnableDrillDownLinks");this._2oh( "chkAutoDeleteQueryElements" ).checked = _qkk._qik( "DeleteQueryElements" );this._2oh( "chkAutoDeleteConditionalStyles" ).checked = _qkk._qik( "DeleteConditionalStyles" );this._2oh( "chkTableStyleInheritance" ).checked = _qkk._qik( "TableStyleInheritance" );this._2oh( "chkAutoListGroupSummaryBehavior" ).checked = _qkk._qik( "AutoListGroupSummaryBehavior" );this._2oh( "chkEnableHeaderSpacerForCrosstab" ).checked = _qkk._qik( "EnableHeaderSpacerForCrosstab" );this._2oh( "chkWrapText" ).checked = _qkk._qik( "WrapText" );this._2oh( "chkUseOSClipboard" ).checked = _qkk._qik( "UseOSClipboard" );this._2oh( "chkEnableExternalClipboard" ).checked = _qkk._qik( "EnableExternalClipboard" );this._2oh( "chkReuseRVWindow" ).checked = _qkk._qik( "ReuseRVWindow" );this._2oh( "chkAutoSelectValues" ).checked = _qkk._qik( "AutoSelectValues" );this._2oh( "chkAliasMUNs" ).checked = _qkk._qik( "AliasMUNs" );if(!this._d0n._ey8){this._d0n._ey8=new _jgk( this._2oh( "cboStartPageView" ), null, this._53g( "Start_PageView" ), this );}var _1oc=_qkk._qik("StartPageView");if(_1oc){this._d0n._ey8._hwc(_1oc);}else{this._d0n._ey8._gwc(0);}this._2oh( "chkUseLegacyCharting" ).checked = _qkk._qik( "UseLegacyCharting" );this._2oh( "chkDisableDesignViewChartPreview" ).checked = !_qkk._qik( "ShowDesignPreviews" );this._2oh( "chkValidateVizJSON" ).checked = _qkk._qik( "ValidateVizJSON" );this._2oh( "chkEnableSmartsBehaviours").checked = _qkk._qik( "EnableSmartsBehaviours" );this._2oh( "chkEnableGuidedReportLayout").checked = _qkk._qik( "DynamicLayoutMode" );this._2oh( "chkRightClickOnDemandUi" ).checked = _qkk._qik( "RightClickOnDemandUi" );if(!this._d0n._y9a){this._d0n._y9a=new _jgk(this._2oh("cboGlobalStyles"), null, this._53g('reportStyles'), this);}var _59e=_qkk._qik("StylesUsedForNewReports");if(_59e){this._d0n._y9a._hwc(_59e);}if(!this._d0n._wve){this._d0n._wve=new _jgk(this._2oh("cboWidthUnit"), null, _frh._53g('CCHL_CSSLengthUnits'), this);this._d0n._jbd=new _jgk(this._2oh("cboHeightUnit"), null, _frh._53g('CCHL_CSSLengthUnits'), this);}var txt=this._2oh("txtMemberDisplayCountLimit");txt.onkeypress=function(e){ _4qn._yo3(e, false, "integer"); };txt.onchange=function(e){ _4qn._m95(e, false, "integer"); };var i=_qkk._qik("MemberDisplayCountLimit");txt.value=isNaN(i)?"":i;var _83m=_erh._vtc();var _88e="";var _g6k=_83m?_agm._t41(_83m):null;if(_g6k){var _7qm=_1ke._wfe(_g6k._j0n).memberDisplayCountLimit;_88e=_frh._c6j( "IDS_LBL_PACKAGE_MEMBER_DISPLAY_COUNT", _7qm||_frh._c6j("IDS_DT_unknown") );}_4qn._1je(this._2oh("lblPackageValue"), _88e);var txt=this._2oh("txtLayoutHeight");var _msi=new _84j(_qkk._qik("LayoutHeight"));txt.value=_msi._197();txt.onkeypress=_4qn._tx;txt.onchange=_4qn._5f1;this._d0n._jbd._hwc(_msi._jkl()||"%");var txt=this._2oh("txtLayoutWidth");var _msi=new _84j(_qkk._qik("LayoutWidth"));txt.value=_msi._197();txt.onkeypress=_4qn._tx;txt.onchange=_4qn._5f1;this._d0n._wve._hwc(_msi._jkl()||"%");var txt=this._2oh("txtFeatureDisplayLimit");txt.onkeypress=function(e){ _4qn._yo3(e, false, "integer"); };txt.onchange=function(e){ _9jl._523(e); };txt.value=_qkk._qik("FeatureDisplayLimit");var txt=this._2oh("txtMaxMembersInsert");txt.onkeypress=function(e){ _4qn._yo3(e, false, "integer"); };txt.onchange=function(e){ _9jl._523(e); };txt.value=_qkk._qik("MaxMembersInsert");if(!this._d0n._2d3){this._d0n._2d3=new _jgk( this._2oh( "cboAutoValidateExpr" ), this._53g( "AutoValidateExprCombo" ), null, this );}this._d0n._2d3._hwc(_qkk._qik("AutoValidateExpr"));if(!this._d0n._qb2){this._d0n._qb2=new _jgk( this._2oh( "cboDblClickMemberMode" ), this._53g( "DblClickMemberModeCombo" ), null, this );}this._d0n._qb2._hwc(_qkk._qik("DoubleClickMemberMode"));if(!this._d0n._2n6){this._d0n._2n6=new _jgk( this._2oh( "cboDropReplaceMode" ), this._53g( "DropReplaceModeCombo" ), null, this );}this._d0n._2n6._hwc(_qkk._qik("DropReplaceMode"));};_9jl._bgn=function(){this._6ll();this._1gn();};_9jl._6ll=function(){_qkk._3kk("ShowNameDialogOnInsert", this._2oh("chkShowHiddenDialogs").checked);_qkk._3kk("InplaceEdit", this._2oh("chkInplaceEdit").checked);_qkk._3kk("CreateCrosstabNode", this._2oh("chkCreateCrosstabNode").checked);_qkk._3kk("EnableDrillDownLinks", this._2oh("chkEnableDrillDownLinks").checked);_qkk._3kk("DeleteQueryElements", this._2oh("chkAutoDeleteQueryElements").checked);_qkk._3kk("DeleteConditionalStyles", this._2oh("chkAutoDeleteConditionalStyles").checked);_qkk._3kk("TableStyleInheritance", this._2oh("chkTableStyleInheritance").checked);_qkk._3kk("AutoListGroupSummaryBehavior", this._2oh("chkAutoListGroupSummaryBehavior").checked);_qkk._3kk("EnableHeaderSpacerForCrosstab", this._2oh("chkEnableHeaderSpacerForCrosstab").checked);_qkk._3kk("WrapText", this._2oh("chkWrapText").checked);_qkk._3kk("UseOSClipboard", this._2oh("chkUseOSClipboard").checked);_qkk._3kk("EnableExternalClipboard", this._2oh("chkEnableExternalClipboard").checked);_qkk._3kk("ReuseRVWindow", this._2oh("chkReuseRVWindow").checked);_qkk._3kk("AutoSelectValues", this._2oh("chkAutoSelectValues").checked);_qkk._3kk("AliasMUNs", this._2oh("chkAliasMUNs").checked);_qkk._3kk("UseLegacyCharting", this._2oh("chkUseLegacyCharting").checked);_qkk._3kk("ShowDesignPreviews", !this._2oh("chkDisableDesignViewChartPreview").checked);_qkk._3kk("StylesUsedForNewReports", this._d0n._y9a._qik());_qkk._3kk("ValidateVizJSON", this._2oh("chkValidateVizJSON").checked);_qkk._3kk("EnableSmartsBehaviours", this._2oh("chkEnableSmartsBehaviours").checked);_qkk._3kk("DynamicLayoutMode", this._2oh("chkEnableGuidedReportLayout").checked); _qkk._3kk("RightClickOnDemandUi", this._2oh("chkRightClickOnDemandUi").checked);_qkk._3kk("StartPageView", this._d0n._ey8._qik());var _uxm=parseInt(this._2oh("txtMemberDisplayCountLimit").value);_qkk._3kk("MemberDisplayCountLimit", _uxm||"");var _uxm=_cgm._6qh(this._2oh("txtLayoutHeight").value);_qkk._3kk("LayoutHeight", isNaN(_uxm)?_qkk._wp9("LayoutHeight"):_uxm + this._d0n._jbd._qik());var _uxm=_cgm._6qh(this._2oh("txtLayoutWidth").value);_qkk._3kk("LayoutWidth", isNaN(_uxm)?_qkk._wp9("LayoutWidth"):_uxm + this._d0n._wve._qik());var _uxm=parseInt(this._2oh("txtFeatureDisplayLimit").value);_qkk._3kk("FeatureDisplayLimit", isNaN(_uxm)?"":_uxm);var _uxm=parseInt(this._2oh("txtMaxMembersInsert").value);_qkk._3kk("MaxMembersInsert", isNaN(_uxm)?"":_uxm);_qkk._3kk("AutoValidateExpr", this._d0n._2d3._qik());_qkk._3kk("DoubleClickMemberMode", this._d0n._qb2._qik());_qkk._3kk("DropReplaceMode", this._d0n._2n6._qik());this._oz3();this._d0n._us2={};this._ha3(this._d0n._sca, true);this._ha3(this._d0n._129, true);this._w01();};_9jl._acj=function(e){if((e.shiftKey||e.altKey)&&e.ctrlKey&&(e.keyCode=="D".charCodeAt(0))){_qkk._3kk("TurnDebugModeOn", !_vzm._49b());_ypn._nuc();this._d0n._0in._dxc(this._slk, _vzm._49b());this._d0n._0in._dxc(this._daj, _vzm._s8g);this._d0n._0in._pie(_vzm._49b()?this._slk:this._knl);}this._1f7(e);};_9jl._523=function(e){_4qn._m95(e, false, "integer", null, 1);if(e.target.value==""||e.target.value==0){var _1el="_9jl_txt".length;var _hgl=e.target.id.slice(_1el);var _wqm=_qkk._qik(_hgl);e.target.value=_wqm;}};_9jl._481=function(_y5e,_6dk){var _pbc=_hrh._drc("propertySheet");_pbc.setAttribute( "showBooleanListViewsAsBooleans", "true" );_pbc.setAttribute( "showBooleansAs", "toggles" );var _qrm=_8qn._987(_pbc, "properties/group", true);var nl=this._d0n._ln6.selectNodes( "//setting[@propType='" + _6dk + "']" );for(var i=0; i<nl.length;++i){var n=nl.item(i);var _z9n=_8qn._u0g(_qrm, "property");var _vdn=n.getAttribute("name");var _dwm=n.getAttribute("label");_z9n.setAttribute("name", _vdn);_z9n.setAttribute("label", _dwm||_vdn);var _a9k=n.getAttribute("dataType");switch(_a9k){case "boolean":_z9n.setAttribute("type", "boolean");break;case "enum":_z9n.setAttribute("type", "dropDownList");break;case "integer":case "decimal":_z9n.setAttribute("type", "text");_z9n.setAttribute("dataType", _a9k);break;default:_z9n.setAttribute("type", "text");break;}}return new _opc(this._2oh(_y5e), _pbc, this, this._xp9(), "clsDialogPropertySheetInputBlocker");};_9jl._ha3=function(_pui,_8xl){_pui._w7j(_8xl);var _pbc=_pui._md4();var nl=_pbc.selectNodes("properties/group/property");for(var i=0; i<nl.length;++i){var _5en=nl.item(i).getAttribute("name");_pui._jje(_5en, _qkk._qik(_5en));}};_9jl._oz3=function(){for(var _5en in this._d0n._us2){var _uxm=this._d0n._us2[_5en];var _87l=this._d0n._ln6.selectSingleNode( "//setting[@name=" + _cgm._zxc( _5en ) + "]" );var _vym="";switch(_87l.getAttribute("dataType")){case "boolean":_vym=(_uxm=="true");break;case "integer":var _wqm=parseInt(_uxm);_vym=isNaN(_wqm)?"":_wqm;break;case "decimal":var _8pm=_cgm._6qh(_uxm);_vym=isNaN(_8pm)?"":_8pm;break;default:_vym=_uxm;break;}_qkk._3kk(_5en, _vym);}};_9jl._0y=function(_xgc,_n8e,_dmc,_ozj,td){_xgc._gje(_n8e, _dmc, _ozj);};_9jl._ac=function(_xgc,_ahh,_n8e,_dmc,_lqj){var _87l=this._d0n._ln6.selectSingleNode( "//setting[@name=" + _cgm._zxc( _n8e ) + "]" );if(_87l.getAttribute("dataType")=="boolean"){return _frh._53g("Boolean");}var _ozj=_frh._53g("EmptyList");var _ini=_ozj.selectSingleNode("listItems");var nl=_87l.selectNodes("enumValues/enumValue");for(var i=0; i<nl.length;++i){var _z8n=nl.item(i);var _uxm=_z8n.getAttribute("value");var _mzj=_8qn._u0g(_ini, "listItem");_mzj.setAttribute("label", _z8n.getAttribute("label")||_uxm);_mzj.setAttribute("value", _uxm);}return _ozj;};_9jl._xm=function(_xgc,_5en,_uxm){this._d0n._us2[_5en]=_uxm;_xgc._w7j(true);_xgc._jje(_5en, _uxm);if ((_5en=="AllowDebugLocalFileAccess" )&&( _uxm=="true" )&&!_qkk._qik( "ShowNonProfileableUI" ) ){_gem( '"' + this._d0n._sca._ld4( "AllowDebugLocalFileAccess", "label" ) + '" requires "' + this._d0n._129._ld4( "ShowNonProfileableUI", "label" ) + '" to be enable.' );}};_9jl._bc=function(_xgc,_vdn,_uxm,_ozj){var _mzj=_pgk._lee(_ozj, "value", _uxm);if(!_mzj){return;}var _30j="";var _djf=_8qn._dn3(_mzj);if(_djf){_30j=_djf.getAttribute("value");}else{_30j=_ozj.selectSingleNode( "listItems/listItem" ).getAttribute( "value" );}this._xm(_xgc, _vdn, _30j);};