Ext.Msg.cls="adminAlert";Ext.Msg.layout={type:"anchor",pack:"center",align:"center"};Ext.define("DefaultTestConfiguration.controller.Main",{extend:"Ext.app.Controller",views:["Ext.ux.form.MultiSelectSI"],refs:[{selector:"testconfiguration",ref:"testconfiguration"},{selector:"viewpolicy",ref:"viewpolicy"},{selector:"egpolicycreation",ref:"egpolicycreation"},{selector:"egvcconfig",ref:"egvcconfig"},{selector:"egnutconfig",ref:"egnutconfig"},{selector:"eghmcconfig",ref:"eghmcconfig"},{selector:"egrhevconfig",ref:"egrhevconfig"},{selector:"vmgusers",ref:"vmgusers"},{selector:"egconfigureurlandcredentials",ref:"egconfigureurlandcredentials"},{selector:"egconfigurenamepattern",ref:"egconfigurenamepattern"},{selector:"egconfigurewinsharedfolders",ref:"egconfigurewinsharedfolders"},{selector:"egconfigurewsdlurlandcredentials",ref:"egconfigurewsdlurlandcredentials"},{selector:"egruntimepattern",ref:"egruntimepattern"},{selector:"egconfigurepublishedresources",ref:"egconfigurepublishedresources"},{selector:"egconfigurerulenames",ref:"egconfigurerulenames"},{selector:"egxmsconfig",ref:"egxmsconfig"},{selector:"minmaxvalues",ref:"minmaxvalues"}],init:function(){me=this,testViews=this;
this.control({"testconfiguration":{"boxready":this.afterMainRender},'testconfiguration scrollcombo[id="componentType"]':{"select":this.compTypeChangeEvent},'testconfiguration scrollcombo[id="testName"]':{"select":this.testNameChangeEvent},'testconfiguration scrollcombo[id="testType"]':{"select":this.testTypeChangeEvent},'testconfiguration button[id="updateBtn"]':{"click":this.populate},'testconfiguration button[id="enableDisableBtn"]':{"click":this.goToEnableDisableTestpage},'testconfiguration combo[id="filter_combo"]':{"refresh":this.refreshFilterCombo},'viewpolicy button[id="addPolicy"]':{"click":this.policyCreationMainPage},'viewpolicy trigger[id="searchTrigger"]':{"change":this.policyMainSearch},'egpolicycreation button[id="updatePolicy"]':{"click":this.policyMainValidate},'egpolicycreation button[id="viewsource"]':{"click":this.openMainWindow},'egpolicycreation button[id="viewid"]':{"click":this.openMainWindow},'egpolicycreation button[id="viewdesc"]':{"click":this.openMainWindow},'egvcconfig combo[id="SslVc"]':{"select":this.combosslVc},'egvcconfig button[id="ClearBTN"]':{"click":this.clearVc},'egvcconfig button[id="UpdateBTN"]':{"click":this.updateVc},"egvcconfig":{"beforeclose":this.callVcDestroy},'businesstransactionnaming button[id="addNewRulebtn"]':{"click":this.resultPanelCreateRuleForm},'businesstransactionnaming button[id="createRule"]':{"click":this.saveOrUpdateRule},"businesstransactionnaming":{"beforeclose":this.callRulesDestroy},'businesstransactionrulegrid button[id="updateSpecificConfig"]':{"click":this.getRuleNamesFromIni},"egxmsconfig":{"beforeclose":this.callXMSDestroy},'egnutconfig button[id="ClearBTN"]':{"click":this.clearNut},'egnutconfig button[id="UpdateBTN"]':{"click":this.updateNut},"egnutconfig":{"beforeclose":this.callNutDestroy},'eghmcconfig button[id="ClearBTN"]':{"click":this.clearHmc},'eghmcconfig button[id="UpdateBTN"]':{"click":this.updateHmc},"eghmcconfig":{"beforeclose":this.callHmcDestroy},'egrhevconfig scrollcombo[id="SslRhev"]':{"select":this.combosslrhev},'egrhevconfig button[id="ClearBTN"]':{"click":this.clearRhev},'egrhevconfig button[id="UpdateBTN"]':{"click":this.updateRhev},"egrhevconfig":{"beforeclose":this.callRhevDestroy},'vmgusers button[id="addVmgUsrbtn"]':{"click":this.addVmgUsr},'vmgusers button[id="clearConfUsr"]':{"click":this.ClearConfigUsrs},'vmgusers button[id="updateConfUsr"]':{"click":this.UpdateConfigUsrs},'egconfiguremultipleusers button[id="addMultiUsrbtn"]':{"click":this.addMultiUsr},'egconfiguremultipleusers button[id="clearMultiConfUsr"]':{"click":this.ClearMultiConfigUsrs},'egconfiguremultipleusers button[id="updateMultiConfUsr"]':{"click":this.UpdateMultiConfigUsrs},'egconfigureurlandcredentials button[id="addCredUrlbtn"]':{"click":this.addCredUrls},'egconfigureurlandcredentials button[id="clearCredUrl"]':{"click":this.clearCredUrls},'egconfigureurlandcredentials button[id="updateCredUrl"]':{"click":this.updateCredUrls},'egconfigurenamepattern button[id="addUrlNamebtn"]':{"click":this.addUrlNames},'egconfigurenamepattern button[id="clearUrlPattern"]':{"click":this.clearUrlNames},'egconfigurenamepattern button[id="updateUrlPattern"]':{"click":this.updateUrlNames},'egconfigurewinsharedfolders button[id="addwinsharedbtn"]':{"click":this.addWinShared},'egconfigurewinsharedfolders button[id="clearWinShared"]':{"click":this.clearWinShareds},'egconfigurewinsharedfolders button[id="updateWinShared"]':{"click":this.updateWinShareds},'egconfigurewsdlurlandcredentials button[id="addWsdlUrlbtn"]':{"click":this.addWsdlUrl},'egconfigurewsdlurlandcredentials button[id="clearWsdlUrl"]':{"click":this.clearWsdlUrls},'egconfigurewsdlurlandcredentials button[id="updateWsdlUrl"]':{"click":this.updateWsdlUrls},'egruntimepattern button[id="updateRuntimePattern"]':{"click":this.updateRuntimePatt},'egconfigurepublishedresources button[id="addMultiSrcbtn"]':{"click":this.addMultiSource},'egconfigurepublishedresources button[id="clearMultiConfSrc"]':{"click":this.ClearMultiConfigSource},'egconfigurepublishedresources button[id="updateMultiConfSrc"]':{"click":this.UpdateMultiConfigSource},'minmaxvalues button[id="updateMinMaxValues"]':{"click":this.updateService_pr}});
},policyDel:function(b,f,g,c,j,a,e,h,i){var k=Ext.getCmp("logType").getValue();var d;if(h=="no"){d=alertMsg11+" '"+g+"' "+alertMsg12+". "+alertMsg13+"?";}else{d=alertMsg14+" '"+g+"' ?";}Ext.Msg.show({title:pageName,msg:d,buttons:Ext.Msg.YESNO,icon:"iconExclamation",fn:function(l){if(l=="yes"){if(Ext.isEmpty(deletedRecords)||deletedRecords==""){deletedRecords=g;
}else{deletedRecords+=","+g;}urlVal="DefaultTestConfiguration/data/ViewPolicyJson.jsp?server="+b+"&test="+f+"&policy="+encodeURI(g)+"&delpolicy=yes&log_type="+c+"&showAll="+j+"&q="+a+"&logtype="+e+"&requestFrom="+i+"&currentLogType="+k;Ext.Ajax.request({url:urlVal,method:"post",scope:this,success:function(m){if(m.status==200&&!Ext.isEmpty(m.responseText)){var n=m.responseText;
var o=Ext.decode(n);Ext.getCmp("EventsViewGrid").getStore().removeAll();Ext.getCmp("EventsViewGrid").getStore().loadRawData(o["gridDataArr"]);}}});}}});},checkURLAndCredentials:function(g){var f="";var e=Ext.getCmp("url");var d=Ext.getCmp("WSDL_URL");if(!Ext.isEmpty(e)&&e!=undefined){f=e.getValue();}else{if(!Ext.isEmpty(d)&&d!=undefined){f=d.getValue();
}}var a=publicJson["hiddenObj"]["credentials"];var c=f.split(",");var b=a.split(",");if(c.length!=b.length&&plusButtonClicked=="false"){Ext.Msg.show({title:pageName,msg:alertMsg7+" "+alertMsg69,icon:"iconExclamation",buttons:Ext.Msg.OK,fn:function(){if(!Ext.isEmpty(e)&&e!=undefined){e.setValue=g;e.focus(true);
}else{if(!Ext.isEmpty(d)&&d!=undefined){d.setValue=g;d.focus(true);}}}});return false;}},getUserValue:function(a){if(a.toLowerCase()=="domain"){newDomainValue=Ext.getCmp("domain").getValue();}else{if(a.toLowerCase()=="admin_user"){newAdminUserValue=Ext.getCmp("admin_user").getValue();}else{if(a.toLowerCase()=="user"){newUserValue=Ext.getCmp("user").getValue();
}}}},getUserChangedValue:function(a){if(a.toLowerCase()=="domain"){changedDomainValue=Ext.getCmp("domain").getValue();}else{if(a.toLowerCase()=="admin_user"){changedAdminUserValue=Ext.getCmp("admin_user").getValue();}else{if(a.toLowerCase()=="user"){changedUserValue=Ext.getCmp("user").getValue();}}}},checkMultipleUser:function(c,g){var g=publicJson["multiUserOrNameParamValue"+c];
var f="false";if(c.toLowerCase()=="domain"){var e=Ext.getCmp("domain").getValue();if(e.indexOf(",")>-1){f="true";}}else{if(c.toLowerCase()=="admin_user"){var a=Ext.getCmp("admin_user").getValue();if(a.indexOf(",")>-1){f="true";}}else{if(c.toLowerCase()=="user"){var d=Ext.getCmp("user").getValue();if(d.indexOf(",")>-1){f="true";
}}}}if(f=="true"){var b="";var h="";if(plusButtonClicked=="true"){if(c.toLowerCase()=="domain"){var e=Ext.getCmp("domain").getValue();if(e!=newDomainValue&&e.indexOf(",")>-1){b=newDomainValue;}}else{if(c.toLowerCase()=="admin_user"){var a=Ext.getCmp("admin_user").getValue();if(a!=newAdminUserValue&&a.indexOf(",")>-1){h=newAdminUserValue;
}}else{if(c.toLowerCase()=="user"){var d=Ext.getCmp("user").getValue();if(d!=newUserValue&&d.indexOf(",")>-1){h=newUserValue;}}}}}else{if(c.toLowerCase()=="domain"){var e=Ext.getCmp("domain").getValue();if(e!=g&&e.indexOf(",")>-1){b=g;}}else{if(c.toLowerCase()=="admin_user"){var a=Ext.getCmp("admin_user").getValue();
if(a!=g&&a.indexOf(",")>-1){h=g;}}else{if(c.toLowerCase()=="user"){var d=Ext.getCmp("user").getValue();if(d!=g&&d.indexOf(",")>-1){h=g;}}}}}if(c.toLowerCase()=="domain"){var e=Ext.getCmp("domain").getValue();if(e!=newDomainValue&&e.indexOf(",")>-1){if(!Ext.isEmpty(testName)&&testName!=undefined){if(testName=="CtxAuthTest"||testName=="WinAuthTest"||testName=="TermAuthTest"){Ext.Msg.show({title:pageName,msg:alertMsg7+" "+alertMsg8,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("domain").setValue(changedDomainValue.substring(0,changedDomainValue.indexOf(",")));
Ext.getCmp("domain").focus(true);}});}else{Ext.Msg.show({title:pageName,msg:alertMsg7+" "+alertMsg9,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("domain").setValue(changedDomainValue.substring(0,changedDomainValue.indexOf(",")));Ext.getCmp("domain").focus(true);}});}}else{Ext.Msg.show({title:pageName,msg:alertMsg7+" "+alertMsg8,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("domain").setValue(changedDomainValue.substring(0,changedDomainValue.indexOf(",")));
Ext.getCmp("domain").focus(true);}});}return false;}}else{if(c.toLowerCase()=="admin_user"){var a=Ext.getCmp("admin_user").getValue();if(a!=newAdminUserValue&&a.indexOf(",")>-1){Ext.Msg.show({title:pageName,msg:alertMsg7+" "+alertMsg9,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("admin_user").setValue(changedAdminUserValue.substring(0,changedAdminUserValue.indexOf(",")));
Ext.getCmp("admin_user").focus(true);}});return false;}}else{if(c.toLowerCase()=="user"){var d=Ext.getCmp("user").getValue();if(d!=newUserValue&&d.indexOf(",")>-1){Ext.Msg.show({title:pageName,msg:alertMsg7+" "+alertMsg8,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("user").setValue(changedUserValue.substring(0,changedUserValue.indexOf(",")));
Ext.getCmp("user").focus(true);}});return false;}}}}}},checkMultipleNamePattern:function(d,b){var b=publicJson["multiUserOrNameParamValue"+d];var i="false";if(d.toLowerCase()=="name"){var j=Ext.getCmp("name").getValue();if(j.indexOf(",")>-1){i="true";}}else{if(d.toLowerCase()=="pattern"){var f=Ext.getCmp("pattern").getValue();
if(f.indexOf(",")>-1){i="true";}}else{if(d.toLowerCase()=="threshold_value"){var c=Ext.getCmp("threshold_value").getValue();if(c.indexOf(",")>-1){i="true";}}}}if(i=="true"){var h="";var g="";var e="";if(plusButtonClicked=="true"){if(d.toLowerCase()=="pattern"){var f=Ext.getCmp("pattern").getValue();if(f!=newPatternValue&&f.indexOf(",")>-1){h=newPatternValue;
}}else{if(d.toLowerCase()=="name"){var j=Ext.getCmp("name").getValue();if(j!=newNameValue&&j.indexOf(",")>-1){g=newNameValue;}}else{if(d.toLowerCase()=="threshold_value"){var c=Ext.getCmp("threshold_value").getValue();if(c!=newThresholdValue&&c.indexOf(",")>-1){e=newThresholdValue;}}}}}else{if(d.toLowerCase()=="pattern"){var f=Ext.getCmp("pattern").getValue();
if(f!=b&&f.indexOf(",")>-1){h=b;}}else{if(d.toLowerCase()=="threshold_value"){var c=Ext.getCmp("threshold_value").getValue();if(c!=b&&c.indexOf(",")>-1){orginalthresholdValue=b;}}else{if(d.toLowerCase()=="name"){var j=Ext.getCmp("name").getValue();if(j!=b&&j.indexOf(",")>-1){g=j;}}}}}if(d.toLowerCase()=="name"){var j=Ext.getCmp("name").getValue();
var a=publicJson["testName"];if(j!=newNameValue&&j.indexOf(",")>-1){if(!Ext.isEmpty(a)!=null&&a!=undefined){if(a=="SlowTransTest"){Ext.Msg.show({title:pageName,msg:alertMsg7+" "+alertMsg10,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("name").setValue(changedNameValue.substring(0,changedNameValue.indexOf(",")));
Ext.getCmp("name").focus(true);}});}}else{Ext.Msg.show({title:pageName,msg:alertMsg7+" "+alertMsg10,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("name").setValue(changedNameValue.substring(0,changedNameValue.indexOf(",")));Ext.getCmp("name").focus(true);}});}return false;}}else{if(d.toLowerCase()=="pattern"){var f=Ext.getCmp("pattern").getValue();
var a=publicJson["testName"];if(f!=newPatternValue&&f.indexOf(",")>-1){if(!Ext.isEmpty(a)!=null&&a!=undefined){if(a=="SlowTransTest"){Ext.Msg.show({title:pageName,msg:alertMsg7+" "+alertMsg10,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("pattern").setValue(changedPatternValue.substring(0,changedPatternValue.indexOf(",")));
Ext.getCmp("pattern").focus(true);}});}}else{Ext.Msg.show({title:pageName,msg:alertMsg7+" "+alertMsg10,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("pattern").setValue(changedPatternValue.substring(0,changedPatternValue.indexOf(",")));Ext.getCmp("pattern").focus(true);}});}return false;
}}else{if(d.toLowerCase()=="threshold_value"){var c=Ext.getCmp("threshold_value").getValue();var a=publicJson["testName"];if(c!=newThresholdValue&&c.indexOf(",")>-1){if(!Ext.isEmpty(a)!=null&&a!=undefined){if(testName=="SlowTransTest"){Ext.Msg.show({title:pageName,msg:alertMsg7+" "+alertMsg10,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("threshold_value").setValue(changedThresholdValue.substring(0,changedThresholdValue.indexOf(",")));
Ext.getCmp("threshold_value").focus(true);}});}}else{Ext.Msg.show({title:pageName,msg:alertMsg7+" "+alertMsg10,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("threshold_value").focus(true);Ext.getCmp("threshold_value").setValue(changedThresholdValue.substring(0,changedThresholdValue.indexOf(",")));
}});}return false;}}}}}},getNamePatternValue:function(a){if(a.toLowerCase()=="name"){newNameValue=Ext.getCmp("name").getValue();}else{if(a.toLowerCase()=="pattern"){newPatternValue=Ext.getCmp("pattern").getValue();}else{if(a.toLowerCase()=="threshold_value"){newThresholdValue=Ext.getCmp("threshold_value").getValue();
}}}},getNamePatternChangedValue:function(a){if(a.toLowerCase()=="name"){changedNameValue=Ext.getCmp("name").getValue();}else{if(a.toLowerCase()=="pattern"){changedPatternValue=Ext.getCmp("pattern").getValue();}else{if(a.toLowerCase()=="threshold_value"){changedThresholdValue=Ext.getCmp("threshold_value").getValue();
}}}},getHiddenFields:function(b){var c=publicJson[b];var a="";for(key in c){a+=key+"="+encodeURIComponent(c[key])+"&";}return a;},goToEnableDisableTestpage:function(){var a=publicJson["enableDisableTestPageLink"];window.location.href=a;},isManagedByChange:function(e){var h=e.getValue();var g=publicJson["selectedIsManagedBy"];
if(!Ext.isEmpty(h)&&h!=undefined&&h=="hmc"){Ext.getCmp("management_server_text").setDisabled(true);Ext.getCmp("management_server_text").hide();Ext.getCmp("management_server").setDisabled(false);Ext.getCmp("management_server").reset();Ext.getCmp("management_server").show();var a="None";var c="none";var i="none";
if(!Ext.isEmpty(g)&&g!=undefined&&g=="hmc"){c=publicJson["tempUser"];i=publicJson["tempPassValue"];a=publicJson["selectedHMC"];if(Ext.isEmpty(a)||a==undefined){a="None";}if(Ext.isEmpty(c)||c==undefined){c="none";}if(Ext.isEmpty(i)||i==undefined){i="none";}}var f="";var b="";var j="";if(!Ext.isEmpty(Ext.getCmp("management_user"))&&Ext.getCmp("management_user")!=undefined){f=Ext.getCmp("management_user");
}else{f=Ext.getCmp("Management_user");}if(!Ext.isEmpty(Ext.getCmp("management_password"))&&Ext.getCmp("management_password")!=undefined){b=Ext.getCmp("management_password");j=Ext.getCmp("management_passwordconfirmpassword");}else{b=Ext.getCmp("Management_password");j=Ext.getCmp("Management_passwordconfirmpassword");
}f.setValue(c);b.setValue(i);j.setValue(i);}else{if(!Ext.isEmpty(h)&&h!=undefined&&h=="ivm"){Ext.getCmp("management_server").setDisabled(true);Ext.getCmp("management_server").hide();Ext.getCmp("management_server_text").setDisabled(false);Ext.getCmp("management_server_text").show();var a="$unconfigured";
var c="$unconfigured";var i="$unconfigured";if(!Ext.isEmpty(g)&&g!=undefined&&g=="ivm"){c=publicJson["tempUser"];i=publicJson["tempPassValue"];a=publicJson["mgmtTextValue"];if(Ext.isEmpty(a)||a==undefined){a="$unconfigured";}if(Ext.isEmpty(c)||c==undefined){c="$unconfigured";}if(Ext.isEmpty(i)||i==undefined){i="$unconfigured";
}}var f="";var b="";var j="";if(!Ext.isEmpty(Ext.getCmp("management_user"))&&Ext.getCmp("management_user")!=undefined){f=Ext.getCmp("management_user");}else{f=Ext.getCmp("Management_user");}if(!Ext.isEmpty(Ext.getCmp("management_password"))&&Ext.getCmp("management_password")!=undefined){b=Ext.getCmp("management_password");
j=Ext.getCmp("management_passwordconfirmpassword");}else{b=Ext.getCmp("Management_password");j=Ext.getCmp("Management_passwordconfirmpassword");}Ext.getCmp("management_server_text").setValue(a);f.setValue(c);b.setValue(i);j.setValue(i);}}var d=passwordParamDisabled(publicJson.pwdParamSetList,"management_user");
if(!Ext.isEmpty(d)){Ext.getCmp(d.trim()).setValue("none");me.applyPwdProfile(Ext.getCmp(d.trim()));}},changeTotalDesc:function(e){var d=e.getBox().y;var b="";if(!Ext.isEmpty(e)){b=e.id;if(b.lastIndexOf("_")>-1){b=b.substring(0,b.lastIndexOf("_"));}}if(b.toLowerCase()=="report_with_destination"){var a=Ext.getCmp(b+"1").getValue();
var c=Ext.getCmp(b+"2").getValue();if(c){Ext.getCmp("report_by_total_radioGrp").setDisabled(false);Ext.getCmp("report_by_total_radioGrp").hide();}else{Ext.getCmp("report_by_total_radioGrp").setDisabled(false);Ext.getCmp("report_by_total_radioGrp").reset();Ext.getCmp("report_by_total_radioGrp").show();
}}Ext.getCmp("testConfigForm").body.scrollTo("top",d);},InsideViewChange:function(d){insideView=d;var e="";var a=Ext.getCmp("domain");var b=Ext.getCmp("admin_user");var c=Ext.getCmp("admin_password");var f=Ext.getCmp("admin_passwordconfirmpassword");if(!Ext.isEmpty(a)&&a!=undefined){e=Ext.getCmp("domain").getValue();
}if(d=="tcp"||d=="wmi"){if(!Ext.isEmpty(a)&&a!=undefined&&a.getValue()=="$unconfigured"){a.setValue("none");}if(!Ext.isEmpty(b)&&b!=undefined&&b.getValue()=="$unconfigured"){b.setValue("none");}if(!Ext.isEmpty(c)&&c!=undefined&&c.getValue()=="$unconfigured"){c.setValue("none");}if(!Ext.isEmpty(f)&&f!=undefined&&f.getValue()=="$unconfigured"){f.setValue("none");
}}else{if(!Ext.isEmpty(a)&&a!=undefined&&a.getValue()=="none"){a.setValue("$unconfigured");}if(!Ext.isEmpty(b)&&b!=undefined&&b.getValue()=="none"){b.setValue("$unconfigured");}if(!Ext.isEmpty(c)&&c!=undefined&&c.getValue()=="none"){c.setValue("$unconfigured");}if(!Ext.isEmpty(f)&&f!=undefined&&f.getValue()=="none"){f.setValue("$unconfigured");
}}},applyPwdProfile:function(g){var c=g.id;var i=publicJson[c+"_totalPwdParams"];var d=publicJson[c+"_paramsArray"];var b=publicJson.pwdProfileIniVal;var j=g.value;var l=publicJson.pwdParamSetList[c];if(!Ext.isEmpty(j)&&j!="none"){switch(l){case"Esx_user,Esx_password":console.log("case fired..");Ext.getCmp("virtual_center").setValue("None");
break;case"management_user,management_password":Ext.getCmp("management_server").setValue("None");break;case"Rhel_mgr_user,Rhel_mgr_password,Rhel_mgr_domain":Ext.getCmp("Rhel_mgr_host").setValue("None");break;case"Prism_user,Prism_password":Ext.getCmp("Prism_IP").setValue("None");break;case"XtremIO_user,XtremIO_password":Ext.getCmp("xms_ip").setValue("None");
break;}var f=b[j];var k=f.split("~Hash~");for(var m=0;m<i;m++){var h=d[m]["profileParams"+m];var e="";if(!Ext.isEmpty(Ext.getCmp(h))){Ext.getCmp(h).setReadOnly(true);if(checkParamIsUserField(h)){e=k[0];}else{if(checkParamIsPasswordField(h)){e=k[1];}else{if(checkParamIsDomainField(h)){e=k[2];}}}Ext.getCmp(h).setValue(e);
if(h.toLowerCase().indexOf("password")!=-1||h.toLowerCase().indexOf("authpass")!=-1||h.toLowerCase().indexOf("oracle_vm_mgr_pass")!=-1||h.toLowerCase().indexOf("vcloud_director_pass")!=-1||h.toLowerCase().indexOf("docker_pass")!=-1){if(!Ext.isEmpty(Ext.getCmp(h+"confirmpassword"))){Ext.getCmp(h+"confirmpassword").setReadOnly(true);
Ext.getCmp(h+"confirmpassword").setValue(e);Ext.getCmp(h+"confirmpassword").setDisabled(false);Ext.getCmp(h+"confirmpassword").show();}}}}}else{for(var m=0;m<i;m++){var h=d[m]["profileParams"+m];if(!Ext.isEmpty(Ext.getCmp(h))){Ext.getCmp(h).setReadOnly(false);Ext.getCmp(h).setValue("none");if(h.toLowerCase().indexOf("password")!=-1){if(!Ext.isEmpty(Ext.getCmp(h+"confirmpassword"))){Ext.getCmp(h+"confirmpassword").setReadOnly(false);
Ext.getCmp(h+"confirmpassword").setValue("none");Ext.getCmp(h+"confirmpassword").setDisabled(false);Ext.getCmp(h+"confirmpassword").show();}}}}}},enablePwdProfile:function(e){var b="";if(!Ext.isEmpty(e)){b=e.id;if(b.lastIndexOf("_")>-1){b=b.substring(0,b.lastIndexOf("_"));}}if(b.toLowerCase()=="usepwdprofile"){var d=e.getBox().y+100;
var a=Ext.getCmp(b+"1").getValue();var c=Ext.getCmp(b+"2").getValue();if(c){Ext.getCmp("pwdprofile").setDisabled(true);Ext.getCmp("pwdprofile").hide();Ext.getCmp("pwdprofile").setValue("-1");}else{Ext.getCmp("pwdprofile").setDisabled(false);Ext.getCmp("pwdprofile").show();}me.applyPwdProfile("-1");Ext.getCmp("testConfigForm").body.scrollTo("top",d);
}},changeEncFlagValue:function(e){var c="";if(!Ext.isEmpty(e)){c=e.id;if(c.lastIndexOf("_")>-1){c=c.substring(0,c.lastIndexOf("_"));}}if(c.toLowerCase()=="encryptflag"){var b=Ext.getCmp(c+"1").getValue();var d=Ext.getCmp(c+"2").getValue();if(d){Ext.getCmp("encrypttype").setDisabled(true);Ext.getCmp("encryptpassword").setDisabled(true);
Ext.getCmp("encryptpasswordconfirmpassword").setDisabled(true);Ext.getCmp("encrypttype").hide();Ext.getCmp("encryptpassword").hide();Ext.getCmp("encryptpasswordconfirmpassword").hide();}else{var a=publicJson["selectedSnmpEncType"];var f=publicJson["snmpEncTypeArr"];Ext.getCmp("encrypttype").setDisabled(false);
Ext.getCmp("encryptpassword").setDisabled(false);Ext.getCmp("encryptpasswordconfirmpassword").setDisabled(false);Ext.getCmp("encrypttype").show();if(!Ext.isEmpty(a)){Ext.getCmp("encrypttype").setValue(a);}else{Ext.getCmp("encrypttype").setValue(f[0].valueField);}Ext.getCmp("encryptpassword").show();Ext.getCmp("encryptpasswordconfirmpassword").show();
}}},snmpV3ParamDisabeld:function(){if(!Ext.isEmpty(Ext.getCmp("context"))&&Ext.getCmp("context")!=undefined){Ext.getCmp("context").setDisabled(true);Ext.getCmp("context").hide();}if(!Ext.isEmpty(Ext.getCmp("username"))&&Ext.getCmp("username")!=undefined){Ext.getCmp("username").setDisabled(true);Ext.getCmp("username").hide();
}if(!Ext.isEmpty(Ext.getCmp("authpass"))&&Ext.getCmp("authpass")!=undefined){Ext.getCmp("authpass").setDisabled(true);Ext.getCmp("authpass").hide();}if(!Ext.isEmpty(Ext.getCmp("authpassconfirmpassword"))&&Ext.getCmp("authpassconfirmpassword")!=undefined){Ext.getCmp("authpassconfirmpassword").setDisabled(true);
Ext.getCmp("authpassconfirmpassword").hide();}if(!Ext.isEmpty(Ext.getCmp("authtype"))&&Ext.getCmp("authtype")!=undefined){Ext.getCmp("authtype").setDisabled(true);Ext.getCmp("authtype").hide();}if(!Ext.isEmpty(Ext.getCmp("encryptflag_radioGrp"))&&Ext.getCmp("encryptflag_radioGrp")!=undefined){Ext.getCmp("encryptflag_radioGrp").setDisabled(true);
Ext.getCmp("encryptflag_radioGrp").hide();}if(!Ext.isEmpty(Ext.getCmp("encrypttype"))&&Ext.getCmp("encrypttype")!=undefined){Ext.getCmp("encrypttype").setDisabled(true);Ext.getCmp("encrypttype").hide();}if(!Ext.isEmpty(Ext.getCmp("encryptpassword"))&&Ext.getCmp("encryptpassword")!=undefined){Ext.getCmp("encryptpassword").setDisabled(true);
Ext.getCmp("encryptpassword").hide();}if(!Ext.isEmpty(Ext.getCmp("encryptpasswordconfirmpassword"))&&Ext.getCmp("encryptpasswordconfirmpassword")!=undefined){Ext.getCmp("encryptpasswordconfirmpassword").setDisabled(true);Ext.getCmp("encryptpasswordconfirmpassword").hide();}},changeEnableMode:function(e){var d=e.getBox().y;
var b="";if(!Ext.isEmpty(e)){b=e.id;if(b.lastIndexOf("_")>-1){b=b.substring(0,b.lastIndexOf("_"));}}if(b.toLowerCase()=="is_privilege_mode_enabled"){var a=Ext.getCmp(b+"1").getValue();var c=Ext.getCmp(b+"2").getValue();if(c){Ext.getCmp("enable_password").setDisabled(true);Ext.getCmp("enable_password").hide();
}else{Ext.getCmp("enable_password").setDisabled(false);Ext.getCmp("enable_password").show();}}Ext.getCmp("testConfigForm").body.scrollTo("top",d);},changeValue:function(g){var ah="";if(!Ext.isEmpty(g)){ah=g.id;if(ah.lastIndexOf("_")>-1){ah=ah.substring(0,ah.lastIndexOf("_"));}}if(ah.toLowerCase()=="usealias"){var Y=Ext.getCmp(ah+"1").getValue();
var aq=Ext.getCmp(ah+"2").getValue();if(aq){Ext.getCmp("show_alias_and_interface_name_radioGrp").setDisabled(false);Ext.getCmp("show_alias_and_interface_name_radioGrp").hide();}else{Ext.getCmp("show_alias_and_interface_name_radioGrp").setDisabled(false);Ext.getCmp("show_alias_and_interface_name_radioGrp").reset();
Ext.getCmp("show_alias_and_interface_name_radioGrp").show();}}else{if(ah.toLowerCase()=="showallevents"){var Y=Ext.getCmp(ah+"1").getValue();var aq=Ext.getCmp(ah+"2").getValue();if(aq){Ext.getCmp("showAllOnly_radioGrp").setDisabled(true);Ext.getCmp("showAllOnly_radioGrp").hide();}else{Ext.getCmp("showAllOnly_radioGrp").setDisabled(false);
Ext.getCmp("showAllOnly_radioGrp").reset();Ext.getCmp("showAllOnly_radioGrp").show();}}else{if(ah.toLowerCase()=="report_total"){var Y=Ext.getCmp(ah+"1").getValue();var aq=Ext.getCmp(ah+"2").getValue();if(aq){Ext.getCmp("Report_only_total_radioGrp").setDisabled(true);Ext.getCmp("Report_only_total_radioGrp").hide();
}else{Ext.getCmp("Report_only_total_radioGrp").setDisabled(false);Ext.getCmp("Report_only_total_radioGrp").reset();Ext.getCmp("Report_only_total_radioGrp").show();}}else{if(ah.toLowerCase()=="snmpversion"){var l="";if(!Ext.isEmpty(Ext.getCmp("snmpversion"))&&Ext.getCmp("snmpversion")!=undefined){l=Ext.getCmp("snmpversion").getValue();
}else{if(!Ext.isEmpty(Ext.getCmp("snmpVersion"))&&Ext.getCmp("snmpVersion")!=undefined){l=Ext.getCmp("snmpVersion").getValue();}}var aj=publicJson["showPwdParams"];var B=publicJson["hidePwdParams"];if(!Ext.isEmpty(l)&&l!=undefined&&l=="v3"){var aa=publicJson["selectedSnmpEncType"];var q=publicJson["snmpEncTypeArr"];
var p=publicJson["snmpAuthTypeArr"];var at=publicJson["selectedSnmpAuthType"];if(!Ext.isEmpty(Ext.getCmp("snmpcommunity"))&&Ext.getCmp("snmpcommunity")!=undefined){Ext.getCmp("snmpcommunity").hide();}else{Ext.getCmp("snmpCommunity").hide();}if(!Ext.isEmpty(Ext.getCmp("snmpcommunity"))&&Ext.getCmp("snmpcommunity")!=undefined){Ext.getCmp("snmpcommunity").setDisabled(true);
}else{if(!Ext.isEmpty(Ext.getCmp("snmpCommunity"))&&Ext.getCmp("snmpCommunity")!=undefined){Ext.getCmp("snmpCommunity").setDisabled(true);}}if(!Ext.isEmpty(Ext.getCmp("context"))&&Ext.getCmp("context")!=undefined){Ext.getCmp("context").setDisabled(false);Ext.getCmp("context").setValue(snmpUserContextValues);
Ext.getCmp("context").show();}if(!Ext.isEmpty(Ext.getCmp("username"))&&Ext.getCmp("username")!=undefined){Ext.getCmp("username").setDisabled(false);Ext.getCmp("username").setValue(snmpUserTextValues);Ext.getCmp("username").show();}if(!Ext.isEmpty(Ext.getCmp("authpass"))&&Ext.getCmp("authpass")!=undefined){Ext.getCmp("authpass").setDisabled(false);
Ext.getCmp("authpass").show();}if(!Ext.isEmpty(Ext.getCmp("authpassconfirmpassword"))&&Ext.getCmp("authpassconfirmpassword")!=undefined){Ext.getCmp("authpassconfirmpassword").setDisabled(false);Ext.getCmp("authpassconfirmpassword").show();}if(!Ext.isEmpty(Ext.getCmp("authtype"))&&Ext.getCmp("authtype")!=undefined){Ext.getCmp("authtype").setDisabled(false);
if(!Ext.isEmpty(at)){Ext.getCmp("authtype").setValue(at);}else{Ext.getCmp("authtype").setValue(p[0].valueField);}Ext.getCmp("authtype").show();}if(!Ext.isEmpty(Ext.getCmp("encryptflag_radioGrp"))&&Ext.getCmp("encryptflag_radioGrp")!=undefined){Ext.getCmp("encryptflag_radioGrp").setDisabled(false);Ext.getCmp("encryptflag_radioGrp").show();
var x=publicJson["enabledEncryptFlag"];var ab=publicJson["disabledEncryptFlag"];Ext.getCmp("encryptflag1").setValue(x);Ext.getCmp("encryptflag2").setValue(ab);}if(!Ext.isEmpty(Ext.getCmp("encrypttype"))&&Ext.getCmp("encrypttype")!=undefined){Ext.getCmp("encrypttype").setDisabled(false);}if(!Ext.isEmpty(Ext.getCmp("encryptpassword"))&&Ext.getCmp("encryptpassword")!=undefined){Ext.getCmp("encryptpassword").setDisabled(false);
}if(!Ext.isEmpty(Ext.getCmp("encryptpasswordconfirmpassword"))&&Ext.getCmp("encryptpasswordconfirmpassword")!=undefined){Ext.getCmp("encryptpasswordconfirmpassword").setDisabled(false);}if(ab){Ext.getCmp("encrypttype").hide();if(!Ext.isEmpty(aa)){Ext.getCmp("encrypttype").setValue(aa);}else{Ext.getCmp("encrypttype").setValue(q[0].valueField);
}Ext.getCmp("encryptpassword").hide();Ext.getCmp("encryptpasswordconfirmpassword").hide();}else{Ext.getCmp("encrypttype").show();if(!Ext.isEmpty(aa)){Ext.getCmp("encrypttype").setValue(aa);}else{Ext.getCmp("encrypttype").setValue(q[0].valueField);}Ext.getCmp("encryptpassword").show();Ext.getCmp("encryptpasswordconfirmpassword").show();
}showToPwdProfile(aj,true);showToPwdProfile(B,false);}else{if(!Ext.isEmpty(l)&&(l=="v1"||l=="v2")){if(!Ext.isEmpty(Ext.getCmp("snmpcommunity"))&&Ext.getCmp("snmpcommunity")!=undefined){Ext.getCmp("snmpcommunity").setDisabled(false);Ext.getCmp("snmpcommunity").setValue(snmpCommunityTextValues);}else{if(!Ext.isEmpty(Ext.getCmp("snmpCommunity"))&&Ext.getCmp("snmpCommunity")!=undefined){Ext.getCmp("snmpCommunity").setDisabled(false);
Ext.getCmp("snmpCommunity").setValue(snmpCommunityTextValues);}}if(!Ext.isEmpty(Ext.getCmp("snmpcommunity"))&&Ext.getCmp("snmpcommunity")!=undefined){Ext.getCmp("snmpcommunity").show();}else{Ext.getCmp("snmpCommunity").show();}showToPwdProfile(aj,false);showToPwdProfile(B,false);this.snmpV3ParamDisabeld();
}}}else{if(ah.toLowerCase()=="policyfilter"){var Y=Ext.getCmp(ah+"1").getValue();var aq=Ext.getCmp(ah+"2").getValue();var ar=publicJson["isPolicyFilterValue"];var F=publicJson["policyFilterValue"];var u=publicJson["selectedPolicyFilter"];var e=Ext.getCmp("filter_combo").getStore();if(aq){var H=publicJson["isPolicyFilterFalse"];
Ext.getCmp("filter_combo").setDisabled(true);Ext.getCmp("filterComboContainer").hide();Ext.getCmp("filter_fieldContainer").show();if(Ext.getCmp("filter").isDisabled()){Ext.getCmp("filter").setDisabled(false);}Ext.getCmp("filter").setValue(H);var t={xtype:"hiddenfield",name:"selectedFilterType",id:"selectedFilterType",value:"fieldContainer",};
Ext.getCmp("testConfigForm").add(t);}else{var t={xtype:"hiddenfield",name:"selectedFilterType",id:"selectedFilterType",value:"combo",};Ext.getCmp("testConfigForm").add(t);Ext.getCmp("filter").setDisabled(true);Ext.getCmp("filter_fieldContainer").hide();if(Ext.getCmp("filter_combo").isDisabled()){Ext.getCmp("filter_combo").setDisabled(false);
}var h=publicJson["isPolicyFilterTrue"];var w=availPolicies.toString();if(!Ext.isEmpty(w)&&w.length>0&&(h!=w)){h=availPolicies.toString();}var C=new Array();var f="";var v=new Ext.data.Store({fields:["displayField","valueField"],data:[]});if(!Ext.isEmpty(F)&&F.indexOf(":")>-1){if(F.indexOf(";")>-1){var ad=F.split(";");
for(var al=0;al<ad.length;al++){var N=ad[al];N=N.substring(0,N.indexOf(":"));C[al]=N;}}else{N=(F.substring(0,F.indexOf(":")));C[0]=N;}}else{if((!Ext.isEmpty(F)&&F.indexOf(";")>-1)){var ad=F.split(";");for(var al=0;al<ad.length;al++){var N=ad[al];C[al]=N;}}else{C[0]=F;}}if(!Ext.isEmpty(h)&&h.length>0){var U=h.split(",");
for(var al=0;al<U.length;al++){var M=U[al];v.add({"displayField":M,"valueField":M});}for(var al=0;al<C.length;al++){var P=C[al];for(var ak=0;ak<U.length;ak++){var M=U[ak];if(!Ext.isEmpty(M)&&!Ext.isEmpty(P)&&P==M){f+=","+M;}}}if(!Ext.isEmpty(f)){f=f.substring(1);}}if(isFirstFilterCombo){Ext.getCmp("filter_combo").getStore().removeAll();
for(var al=0;al<v.getCount();al++){var G=v.getAt(al);if(G.get("displayField")=="all"){continue;}Ext.getCmp("filter_combo").getStore().add(G);}Ext.getCmp("filter_combo").getStore().sort("displayField","ASC");Ext.getCmp("filter_combo").getStore().insert(0,{displayField:"all",valueField:"all"});Ext.getCmp("filter_combo").setValue(f);
}Ext.getCmp("filterComboContainer").show();}}else{if(ah.toLowerCase()=="measure_mode"){var a=Ext.getCmp("measure_mode1").getValue();var ae=Ext.getCmp("measure_mode2").getValue();var X=Ext.getCmp("Jmx_Remote_Port");var W=Ext.getCmp("Jndi_Name");var ap=Ext.getCmp("Jmx_user");var d=Ext.getCmp("Jmx_password");
var k=Ext.getCmp("Jmx_passwordconfirmpassword");var A=Ext.getCmp("Provider");var am=Ext.getCmp("service_URL_path");if(ap==undefined){ap=Ext.getCmp("user");}if(d==undefined){d=Ext.getCmp("password");}if(k==undefined){k=Ext.getCmp("passwordconfirmpassword");}var aj=publicJson["showPwdParams"];var B=publicJson["hidePwdParams"];
if(a){JMXParamDisable(X);JMXParamDisable(W);JMXParamDisable(ap);JMXParamDisable(d);JMXParamDisable(k);JMXParamDisable(A);JMXParamDisable(am);Ext.getCmp("JREHome").setDisabled(false);Ext.getCmp("JREHome").reset();Ext.getCmp("JREHome").show();Ext.getCmp("LogFileName").setDisabled(false);Ext.getCmp("LogFileName").reset();
Ext.getCmp("LogFileName").show();showToPwdProfile(aj,true);showToPwdProfile(B,false);}else{if(ae){Ext.getCmp("LogFileName").setDisabled(true);Ext.getCmp("LogFileName").hide();Ext.getCmp("JREHome").setDisabled(true);Ext.getCmp("JREHome").hide();JMXParamEnable(X);JMXParamEnable(W);JMXParamEnable(ap);JMXParamEnable(d);
JMXParamEnable(k);JMXParamEnable(A);JMXParamEnable(am);showToPwdProfile(aj,false);showToPwdProfile(B,true);}}}else{if(ah.toLowerCase()=="measurement_mode"){var af=Ext.getCmp("measurement_mode1").getValue();var E=Ext.getCmp("measurement_mode2").getValue();var aj=publicJson["showPwdParams"];var B=publicJson["hidePwdParams"];
if(af){Ext.getCmp("Jmx_Remote_Port").setDisabled(true);Ext.getCmp("Jmx_Remote_Port").hide();Ext.getCmp("Jndi_Name").setDisabled(true);Ext.getCmp("Jndi_Name").hide();Ext.getCmp("Jmx_user").setDisabled(true);Ext.getCmp("Jmx_user").hide();Ext.getCmp("Jmx_password").setDisabled(true);Ext.getCmp("Jmx_password").hide();
Ext.getCmp("Jmx_passwordconfirmpassword").setDisabled(true);Ext.getCmp("Jmx_passwordconfirmpassword").hide();Ext.getCmp("Provider").setDisabled(true);Ext.getCmp("Provider").hide();Ext.getCmp("ssl_radioGrp").setDisabled(false);Ext.getCmp("ssl_radioGrp").show();Ext.getCmp("url").setDisabled(false);Ext.getCmp("url").reset();
Ext.getCmp("url").show();Ext.getCmp("username").setDisabled(false);Ext.getCmp("username").reset();Ext.getCmp("username").show();Ext.getCmp("password").setDisabled(false);Ext.getCmp("password").reset();Ext.getCmp("password").show();Ext.getCmp("passwordconfirmpassword").setDisabled(false);Ext.getCmp("passwordconfirmpassword").reset();
Ext.getCmp("passwordconfirmpassword").show();Ext.getCmp("encryptPass_radioGrp").setDisabled(false);Ext.getCmp("encryptPass_radioGrp").show();showToPwdProfile(aj,true);showToPwdProfile(B,false);}else{if(E){Ext.getCmp("ssl_radioGrp").setDisabled(true);Ext.getCmp("ssl_radioGrp").hide();Ext.getCmp("url").setDisabled(true);
Ext.getCmp("url").hide();Ext.getCmp("username").setDisabled(true);Ext.getCmp("username").hide();Ext.getCmp("password").setDisabled(true);Ext.getCmp("password").hide();Ext.getCmp("passwordconfirmpassword").setDisabled(true);Ext.getCmp("passwordconfirmpassword").hide();Ext.getCmp("encryptPass_radioGrp").setDisabled(true);
Ext.getCmp("encryptPass_radioGrp").hide();Ext.getCmp("Jmx_Remote_Port").setDisabled(false);Ext.getCmp("Jmx_Remote_Port").reset();Ext.getCmp("Jmx_Remote_Port").show();Ext.getCmp("Jndi_Name").setDisabled(false);Ext.getCmp("Jndi_Name").reset();Ext.getCmp("Jndi_Name").show();Ext.getCmp("Jmx_user").setDisabled(false);
Ext.getCmp("Jmx_user").reset();Ext.getCmp("Jmx_user").show();Ext.getCmp("Jmx_password").setDisabled(false);Ext.getCmp("Jmx_password").reset();Ext.getCmp("Jmx_password").show();Ext.getCmp("Jmx_passwordconfirmpassword").setDisabled(false);Ext.getCmp("Jmx_passwordconfirmpassword").reset();Ext.getCmp("Jmx_passwordconfirmpassword").show();
Ext.getCmp("Provider").setDisabled(false);Ext.getCmp("Provider").reset();Ext.getCmp("Provider").show();showToPwdProfile(aj,false);showToPwdProfile(B,true);}}}else{if(ah.toLowerCase()=="adapter_device_selection"){var s=Ext.getCmp("adapter_device_selection1").getValue();var ag=Ext.getCmp("adapter_device_selection2").getValue();
if(ag){Ext.getCmp("device_name").setDisabled(false);Ext.getCmp("device_name").show();Ext.getCmp("device_id").setDisabled(false);Ext.getCmp("device_id").show();}else{if(s){Ext.getCmp("device_name").setDisabled(true);Ext.getCmp("device_name").hide();Ext.getCmp("device_id").setDisabled(true);Ext.getCmp("device_id").hide();
}}}else{if(ah.toLowerCase()=="correct"){var L=Ext.getCmp("correct1").getValue();var c=Ext.getCmp("correct2").getValue();if(L){Ext.getCmp("alarmtype").setDisabled(false);Ext.getCmp("alarmtype").show();Ext.getCmp("userparams").setDisabled(false);Ext.getCmp("userparams").show();Ext.getCmp("correctivescript").setDisabled(false);
Ext.getCmp("correctivescript").show();}else{if(c){Ext.getCmp("alarmtype").setDisabled(true);Ext.getCmp("alarmtype").hide();Ext.getCmp("userparams").setDisabled(true);Ext.getCmp("userparams").hide();Ext.getCmp("correctivescript").setDisabled(true);Ext.getCmp("correctivescript").hide();}}}else{if(ah.toLowerCase()=="is_trail"){var Y=Ext.getCmp(ah+"1").getValue();
var aq=Ext.getCmp(ah+"2").getValue();var y=Ext.getCmp("Requests_Per_Day");if(aq){y.setDisabled(true);y.hide();}else{y.setDisabled(false);y.show();}}else{if(ah.toLowerCase()=="use_sudo"){var Y=Ext.getCmp(ah+"1").getValue();var aq=Ext.getCmp(ah+"2").getValue();var V=Ext.getCmp("Target_Process_User_Name");
if(aq){V.setDisabled(true);V.hide();}else{V.setDisabled(false);V.show();}}else{if(ah.toLowerCase()=="advanced_settings"){var Y=Ext.getCmp(ah+"1").getValue();var aq=Ext.getCmp(ah+"2").getValue();var D=Ext.getCmp("Pojo_Method_Tracing_Limit");var T=Ext.getCmp("Pojo_Method_Tracing_Cutoff_Time");var ac=Ext.getCmp("Recursive_Method_Tracing_Limit");
var I=Ext.getCmp("Non-Pojo_Method_Tracing_Limit");var Z=Ext.getCmp("Exception_Stacktrace_Lines");var n=Ext.getCmp("Included_Exceptions");var J=Ext.getCmp("Ignored_Exceptions");var O=Ext.getCmp("Ignored_Characters");var b=Ext.getCmp("Max_Grouped_Urls_Per_Measure_Period");var an=Ext.getCmp("Key_Max_Grouped_Urls_Per_Measure_Period");
var o=Ext.getCmp("Max_Sql_Queries_Per_Transaction");var K=Ext.getCmp("Max_Mongodb_Query_Length");var z=Ext.getCmp("Max_Exception_Trace_Limit");var S=Ext.getCmp("Exception_With_StackTrace_Capture_Limit");var ao=Ext.getCmp("Exception_FQEN_Capture_Limit");var Q=Ext.getCmp("Max_Sql_Error_Queries_Per_Transaction");
var ai=Ext.getCmp("Mask_SQL_radioGrp");var m=Ext.getCmp("Mask_Public_IP_radioGrp");var R=Ext.getCmp("Mask_Private_IP_radioGrp");var r=Ext.getCmp("Mask_URL_Params_radioGrp");if(aq){D.setDisabled(true);D.hide();T.setDisabled(true);T.hide();ac.setDisabled(true);ac.hide();I.setDisabled(true);I.hide();Z.setDisabled(true);
Z.hide();n.setDisabled(true);n.hide();J.setDisabled(true);J.hide();O.setDisabled(true);O.hide();K.setDisabled(true);K.hide();if(!Ext.isEmpty(b)&&b!=undefined){b.setDisabled(true);b.hide();}else{an.setDisabled(true);an.hide();}o.setDisabled(true);o.hide();z.setDisabled(true);z.hide();S.setDisabled(true);
S.hide();ao.setDisabled(true);ao.hide();Q.setDisabled(true);Q.hide();ai.setDisabled(true);ai.hide();m.setDisabled(true);m.hide();R.setDisabled(true);R.hide();r.setDisabled(true);r.hide();}else{D.setDisabled(false);D.show();T.setDisabled(false);T.show();ac.setDisabled(false);ac.show();I.setDisabled(false);
I.show();Z.setDisabled(false);Z.show();n.setDisabled(false);n.show();J.setDisabled(false);J.show();O.setDisabled(false);O.show();K.setDisabled(false);K.show();if(!Ext.isEmpty(b)&&b!=undefined){b.setDisabled(false);b.show();}else{an.setDisabled(false);an.show();}o.setDisabled(false);o.show();z.setDisabled(false);
z.show();S.setDisabled(false);S.show();ao.setDisabled(false);ao.show();Q.setDisabled(false);Q.show();ai.setDisabled(false);ai.show();m.setDisabled(false);m.show();R.setDisabled(false);R.show();r.setDisabled(false);r.show();}}}}}}}}}}}}}},exectimeChangeEvt:function(b){var a=b.getValue();var c="86400";
if(!Ext.isEmpty(a)&&a=="hourly"){c="3600";Ext.getCmp("hours").hide();Ext.getCmp("hours").setDisabled(true);Ext.getCmp("minutes").setDisabled(true);Ext.getCmp("minutes").hide();}else{if(!Ext.isEmpty(a)&&a=="daily"){c="86400";Ext.getCmp("hours").show();Ext.getCmp("minutes").show();Ext.getCmp("hours").setDisabled(false);
Ext.getCmp("minutes").setDisabled(false);}}Ext.getCmp("testPeriod").setValue(c);},changeJmxOptionValue:function(l){var c="";value=l.getBox().y;if(!Ext.isEmpty(l)){c=l.id;if(c.lastIndexOf("_")>-1){c=c.substring(0,c.lastIndexOf("_"));}}var A=Ext.getCmp("metric_collection_type1").getValue();var k=Ext.getCmp("metric_collection_type2").getValue();
var a=Ext.getCmp("mode_radioGrp");var q=Ext.getCmp("measure_mode_radioGrp");var x=Ext.getCmp("Jmx_Remote_Port");var g=Ext.getCmp("Jndi_Name");var r=Ext.getCmp("Jmx_user");var v=Ext.getCmp("Jmx_password");var B=Ext.getCmp("Jmx_passwordconfirmpassword");var w=Ext.getCmp("Provider");var t=Ext.getCmp("service_URL_path");
var s=publicJson["isLocalModeParamExist"];if(r==undefined){r=Ext.getCmp("user");}if(v==undefined){v=Ext.getCmp("password");}if(B==undefined){B=Ext.getCmp("passwordconfirmpassword");}var p=publicJson["showPwdParams"];var o=publicJson["hidePwdParams"];if(k){if(!(Ext.isEmpty(a))){a.hide();Ext.getCmp("snmpPort").setDisabled(true);
Ext.getCmp("snmpPort").hide();var y="";if(!Ext.isEmpty(Ext.getCmp("snmpversion"))&&Ext.getCmp("snmpversion")!=undefined){y=Ext.getCmp("snmpversion");}else{if(!Ext.isEmpty(Ext.getCmp("snmpVersion"))&&Ext.getCmp("snmpVersion")!=undefined){y=Ext.getCmp("snmpVersion");}}y.setDisabled(true);y.hide();if(!Ext.isEmpty(Ext.getCmp("snmpcommunity"))&&Ext.getCmp("snmpcommunity")!=undefined){Ext.getCmp("snmpcommunity").hide();
}else{Ext.getCmp("snmpCommunity").hide();}if(!Ext.isEmpty(Ext.getCmp("snmpcommunity"))&&Ext.getCmp("snmpcommunity")!=undefined){Ext.getCmp("snmpcommunity").setDisabled(true);}else{if(!Ext.isEmpty(Ext.getCmp("snmpCommunity"))&&Ext.getCmp("snmpCommunity")!=undefined){Ext.getCmp("snmpCommunity").setDisabled(true);
}}this.snmpV3ParamDisabeld();}if(!(Ext.isEmpty(q))){q.hide();Ext.getCmp("LogFileName").setDisabled(true);Ext.getCmp("LogFileName").hide();Ext.getCmp("JREHome").setDisabled(true);Ext.getCmp("JREHome").hide();}JMXParamDisable(x);JMXParamDisable(g);JMXParamDisable(r);JMXParamDisable(v);JMXParamDisable(B);
JMXParamDisable(w);JMXParamDisable(t);showToPwdProfile(p,false);showToPwdProfile(o,false);}else{if(A){if(testName.toLowerCase()=="jvmmempoolgctest"){JMXParamEnable(q);var m=Ext.getCmp("measure_mode1").getValue();var h=Ext.getCmp("measure_mode2").getValue();if(m){JMXParamDisable(x);JMXParamDisable(g);
JMXParamDisable(r);JMXParamDisable(v);JMXParamDisable(B);JMXParamDisable(w);JMXParamDisable(t);Ext.getCmp("JREHome").setDisabled(false);Ext.getCmp("JREHome").reset();Ext.getCmp("JREHome").show();Ext.getCmp("LogFileName").setDisabled(false);Ext.getCmp("LogFileName").reset();Ext.getCmp("LogFileName").show();
showToPwdProfile(p,true);showToPwdProfile(o,false);}else{if(h){JMXParamEnable(x);JMXParamEnable(g);JMXParamEnable(r);JMXParamEnable(v);JMXParamEnable(B);JMXParamEnable(w);JMXParamEnable(t);Ext.getCmp("LogFileName").setDisabled(true);Ext.getCmp("LogFileName").hide();Ext.getCmp("JREHome").setDisabled(true);
Ext.getCmp("JREHome").hide();showToPwdProfile(p,false);showToPwdProfile(o,true);}}}else{if(testName.toLowerCase()!="jvmfiledescriptortest"&&testName.toLowerCase()!="jmxconnectortest"){JMXParamEnable(a);var f=Ext.getCmp("mode1").getValue();var b=Ext.getCmp("mode2").getValue();if(f){if(s){JMXParamDisable(x);
JMXParamDisable(g);JMXParamDisable(r);JMXParamDisable(v);JMXParamDisable(B);JMXParamDisable(w);JMXParamDisable(t);}else{JMXParamDisable(x);JMXParamDisable(g);JMXParamDisable(r);JMXParamDisable(v);JMXParamDisable(B);JMXParamDisable(w);JMXParamDisable(t);var y="";var d="";if(!Ext.isEmpty(Ext.getCmp("snmpversion"))&&Ext.getCmp("snmpversion")!=undefined){y=Ext.getCmp("snmpversion");
d=y.getValue();}else{if(!Ext.isEmpty(Ext.getCmp("snmpVersion"))&&Ext.getCmp("snmpVersion")!=undefined){y=Ext.getCmp("snmpVersion");d=y.getValue();}}Ext.getCmp("snmpPort").setDisabled(false);Ext.getCmp("snmpPort").reset();Ext.getCmp("snmpPort").setValue(snmpPortextValues);Ext.getCmp("snmpPort").show();
y.setDisabled(false);y.show();if(!Ext.isEmpty(d)&&d=="v3"){var u=publicJson["selectedSnmpEncType"];var j=publicJson["snmpEncTypeArr"];var z=publicJson["snmpAuthTypeArr"];var n=publicJson["selectedSnmpAuthType"];if(!Ext.isEmpty(Ext.getCmp("snmpcommunity"))&&Ext.getCmp("snmpcommunity")!=undefined){Ext.getCmp("snmpcommunity").hide();
}else{Ext.getCmp("snmpCommunity").hide();}if(!Ext.isEmpty(Ext.getCmp("snmpcommunity"))&&Ext.getCmp("snmpcommunity")!=undefined){Ext.getCmp("snmpcommunity").setDisabled(true);}else{if(!Ext.isEmpty(Ext.getCmp("snmpCommunity"))&&Ext.getCmp("snmpCommunity")!=undefined){Ext.getCmp("snmpCommunity").setDisabled(true);
}}Ext.getCmp("context").setDisabled(false);Ext.getCmp("username").setDisabled(false);Ext.getCmp("authpass").setDisabled(false);Ext.getCmp("authpassconfirmpassword").setDisabled(false);Ext.getCmp("authtype").setDisabled(false);Ext.getCmp("encryptflag_radioGrp").setDisabled(false);Ext.getCmp("encrypttype").setDisabled(false);
Ext.getCmp("encryptpassword").setDisabled(false);Ext.getCmp("encryptpasswordconfirmpassword").setDisabled(false);Ext.getCmp("context").setValue(snmpUserContextValues);Ext.getCmp("context").show();Ext.getCmp("username").setValue(snmpUserTextValues);Ext.getCmp("username").show();Ext.getCmp("authpass").show();
Ext.getCmp("authpassconfirmpassword").show();if(!Ext.isEmpty(n)){Ext.getCmp("authtype").setValue(n);}else{Ext.getCmp("authtype").setValue(z[0].valueField);}Ext.getCmp("authtype").show();Ext.getCmp("encryptflag_radioGrp").show();var i=publicJson["enabledEncryptFlag"];var e=publicJson["disabledEncryptFlag"];
Ext.getCmp("encryptflag1").setValue(i);Ext.getCmp("encryptflag2").setValue(e);if(e){Ext.getCmp("encrypttype").hide();if(!Ext.isEmpty(u)){Ext.getCmp("encrypttype").setValue(u);}else{Ext.getCmp("encrypttype").setValue(j[0].valueField);}Ext.getCmp("encryptpassword").hide();Ext.getCmp("encryptpasswordconfirmpassword").hide();
}else{Ext.getCmp("encrypttype").show();if(!Ext.isEmpty(u)){Ext.getCmp("encrypttype").setValue(u);}else{Ext.getCmp("encrypttype").setValue(j[0].valueField);}Ext.getCmp("encryptpassword").show();Ext.getCmp("encryptpasswordconfirmpassword").show();}showToPwdProfile(p,true);showToPwdProfile(o,false);}else{if(!Ext.isEmpty(d)&&(d=="v1"||d=="v2")){if(!Ext.isEmpty(Ext.getCmp("snmpcommunity"))&&Ext.getCmp("snmpcommunity")!=undefined){Ext.getCmp("snmpcommunity").setDisabled(false);
Ext.getCmp("snmpcommunity").setValue(snmpCommunityTextValues);}else{if(!Ext.isEmpty(Ext.getCmp("snmpCommunity"))&&Ext.getCmp("snmpCommunity")!=undefined){Ext.getCmp("snmpCommunity").setDisabled(false);Ext.getCmp("snmpCommunity").setValue(snmpCommunityTextValues);}}if(!Ext.isEmpty(Ext.getCmp("snmpcommunity"))&&Ext.getCmp("snmpcommunity")!=undefined){Ext.getCmp("snmpcommunity").show();
}else{Ext.getCmp("snmpCommunity").show();}showToPwdProfile(p,false);showToPwdProfile(o,false);this.snmpV3ParamDisabeld();}}}}else{if(b){if(s){JMXParamEnable(x);JMXParamEnable(g);JMXParamEnable(r);JMXParamEnable(v);JMXParamEnable(B);JMXParamEnable(w);JMXParamEnable(t);showToPwdProfile(p,false);showToPwdProfile(o,true);
}else{Ext.getCmp("snmpPort").setDisabled(true);Ext.getCmp("snmpPort").hide();var y="";if(!Ext.isEmpty(Ext.getCmp("snmpversion"))&&Ext.getCmp("snmpversion")!=undefined){y=Ext.getCmp("snmpversion");}else{if(!Ext.isEmpty(Ext.getCmp("snmpVersion"))&&Ext.getCmp("snmpVersion")!=undefined){y=Ext.getCmp("snmpVersion");
}}y.setDisabled(true);y.hide();if(!Ext.isEmpty(Ext.getCmp("snmpcommunity"))&&Ext.getCmp("snmpcommunity")!=undefined){Ext.getCmp("snmpcommunity").hide();}else{Ext.getCmp("snmpCommunity").hide();}if(!Ext.isEmpty(Ext.getCmp("snmpcommunity"))&&Ext.getCmp("snmpcommunity")!=undefined){Ext.getCmp("snmpcommunity").setDisabled(true);
}else{if(!Ext.isEmpty(Ext.getCmp("snmpCommunity"))&&Ext.getCmp("snmpCommunity")!=undefined){Ext.getCmp("snmpCommunity").setDisabled(true);}}this.snmpV3ParamDisabeld();JMXParamEnable(x);JMXParamEnable(g);JMXParamEnable(r);JMXParamEnable(v);JMXParamEnable(B);JMXParamEnable(w);JMXParamEnable(t);showToPwdProfile(p,false);
showToPwdProfile(o,true);}}}}else{JMXParamEnable(x);JMXParamEnable(g);JMXParamEnable(r);JMXParamEnable(v);JMXParamEnable(B);JMXParamEnable(w);JMXParamEnable(t);}}}}},changeModeValue:function(i){var b="";if(!Ext.isEmpty(i)){b=i.id;if(b.lastIndexOf("_")>-1){b=b.substring(0,b.lastIndexOf("_"));}}if(b.toLowerCase()=="mode"){var e=Ext.getCmp("mode1").getValue();
var a=Ext.getCmp("mode2").getValue();var u=Ext.getCmp("Jmx_Remote_Port");var f=Ext.getCmp("Jndi_Name");var n=Ext.getCmp("Jmx_user");var r=Ext.getCmp("Jmx_password");var x=Ext.getCmp("Jmx_passwordconfirmpassword");var t=Ext.getCmp("Provider");var p=Ext.getCmp("service_URL_path");var o=publicJson["isLocalModeParamExist"];
if(n==undefined){n=Ext.getCmp("user");}if(r==undefined){r=Ext.getCmp("password");}if(x==undefined){x=Ext.getCmp("passwordconfirmpassword");}var m=publicJson["showPwdParams"];var k=publicJson["hidePwdParams"];if(e){if(o){JMXParamDisable(u);JMXParamDisable(f);JMXParamDisable(n);JMXParamDisable(r);JMXParamDisable(x);
JMXParamDisable(t);JMXParamDisable(p);showToPwdProfile(m,false);showToPwdProfile(k,false);}else{JMXParamDisable(u);JMXParamDisable(f);JMXParamDisable(n);JMXParamDisable(r);JMXParamDisable(x);JMXParamDisable(t);JMXParamDisable(p);var v="";var c="";if(!Ext.isEmpty(Ext.getCmp("snmpversion"))&&Ext.getCmp("snmpversion")!=undefined){v=Ext.getCmp("snmpversion");
c=v.getValue();}else{if(!Ext.isEmpty(Ext.getCmp("snmpVersion"))&&Ext.getCmp("snmpVersion")!=undefined){v=Ext.getCmp("snmpVersion");c=v.getValue();}}Ext.getCmp("snmpPort").setDisabled(false);Ext.getCmp("snmpPort").reset();Ext.getCmp("snmpPort").setValue(snmpPortextValues);Ext.getCmp("snmpPort").show();
v.setDisabled(false);v.show();if(!Ext.isEmpty(c)&&c=="v3"){var q=publicJson["selectedSnmpEncType"];var h=publicJson["snmpEncTypeArr"];var w=publicJson["snmpAuthTypeArr"];var j=publicJson["selectedSnmpAuthType"];if(!Ext.isEmpty(Ext.getCmp("snmpcommunity"))&&Ext.getCmp("snmpcommunity")!=undefined){Ext.getCmp("snmpcommunity").hide();
}else{Ext.getCmp("snmpCommunity").hide();}if(!Ext.isEmpty(Ext.getCmp("snmpcommunity"))&&Ext.getCmp("snmpcommunity")!=undefined){Ext.getCmp("snmpcommunity").setDisabled(true);}else{if(!Ext.isEmpty(Ext.getCmp("snmpCommunity"))&&Ext.getCmp("snmpCommunity")!=undefined){Ext.getCmp("snmpCommunity").setDisabled(true);
}}Ext.getCmp("context").setDisabled(false);Ext.getCmp("username").setDisabled(false);Ext.getCmp("authpass").setDisabled(false);Ext.getCmp("authpassconfirmpassword").setDisabled(false);Ext.getCmp("authtype").setDisabled(false);Ext.getCmp("encryptflag_radioGrp").setDisabled(false);Ext.getCmp("encrypttype").setDisabled(false);
Ext.getCmp("encryptpassword").setDisabled(false);Ext.getCmp("encryptpasswordconfirmpassword").setDisabled(false);Ext.getCmp("context").setValue(snmpUserContextValues);Ext.getCmp("context").show();Ext.getCmp("username").setValue(snmpUserTextValues);Ext.getCmp("username").show();Ext.getCmp("authpass").show();
Ext.getCmp("authpassconfirmpassword").show();if(!Ext.isEmpty(j)){Ext.getCmp("authtype").setValue(j);}else{Ext.getCmp("authtype").setValue(w[0].valueField);}Ext.getCmp("authtype").show();Ext.getCmp("encryptflag_radioGrp").show();var g=publicJson["enabledEncryptFlag"];var d=publicJson["disabledEncryptFlag"];
Ext.getCmp("encryptflag1").setValue(g);Ext.getCmp("encryptflag2").setValue(d);if(d){Ext.getCmp("encrypttype").hide();if(!Ext.isEmpty(q)){Ext.getCmp("encrypttype").setValue(q);}else{Ext.getCmp("encrypttype").setValue(h[0].valueField);}Ext.getCmp("encryptpassword").hide();Ext.getCmp("encryptpasswordconfirmpassword").hide();
}else{Ext.getCmp("encrypttype").show();if(!Ext.isEmpty(q)){Ext.getCmp("encrypttype").setValue(q);}else{Ext.getCmp("encrypttype").setValue(h[0].valueField);}Ext.getCmp("encryptpassword").show();Ext.getCmp("encryptpasswordconfirmpassword").show();}showToPwdProfile(m,true);showToPwdProfile(k,false);}else{if(!Ext.isEmpty(c)&&(c=="v1"||c=="v2")){if(!Ext.isEmpty(Ext.getCmp("snmpcommunity"))&&Ext.getCmp("snmpcommunity")!=undefined){Ext.getCmp("snmpcommunity").setDisabled(false);
Ext.getCmp("snmpcommunity").setValue(snmpCommunityTextValues);}else{if(!Ext.isEmpty(Ext.getCmp("snmpCommunity"))&&Ext.getCmp("snmpCommunity")!=undefined){Ext.getCmp("snmpCommunity").setDisabled(false);Ext.getCmp("snmpCommunity").setValue(snmpCommunityTextValues);}}if(!Ext.isEmpty(Ext.getCmp("snmpcommunity"))&&Ext.getCmp("snmpcommunity")!=undefined){Ext.getCmp("snmpcommunity").show();
}else{Ext.getCmp("snmpCommunity").show();}showToPwdProfile(m,false);showToPwdProfile(k,false);this.snmpV3ParamDisabeld();}}}}else{if(a){if(o){JMXParamEnable(u);JMXParamEnable(f);JMXParamEnable(n);JMXParamEnable(r);JMXParamEnable(x);JMXParamEnable(t);JMXParamEnable(p);showToPwdProfile(m,false);showToPwdProfile(k,true);
}else{Ext.getCmp("snmpPort").setDisabled(true);Ext.getCmp("snmpPort").hide();var v="";if(!Ext.isEmpty(Ext.getCmp("snmpversion"))&&Ext.getCmp("snmpversion")!=undefined){v=Ext.getCmp("snmpversion");}else{if(!Ext.isEmpty(Ext.getCmp("snmpVersion"))&&Ext.getCmp("snmpVersion")!=undefined){v=Ext.getCmp("snmpVersion");
}}v.setDisabled(true);v.hide();if(!Ext.isEmpty(Ext.getCmp("snmpcommunity"))&&Ext.getCmp("snmpcommunity")!=undefined){Ext.getCmp("snmpcommunity").hide();}else{Ext.getCmp("snmpCommunity").hide();}if(!Ext.isEmpty(Ext.getCmp("snmpcommunity"))&&Ext.getCmp("snmpcommunity")!=undefined){Ext.getCmp("snmpcommunity").setDisabled(true);
}else{if(!Ext.isEmpty(Ext.getCmp("snmpCommunity"))&&Ext.getCmp("snmpCommunity")!=undefined){Ext.getCmp("snmpCommunity").setDisabled(true);}}this.snmpV3ParamDisabeld();JMXParamEnable(u);JMXParamEnable(f);JMXParamEnable(n);JMXParamEnable(r);JMXParamEnable(x);JMXParamEnable(t);JMXParamEnable(p);showToPwdProfile(m,false);
showToPwdProfile(k,true);}}}}else{if(b.toLowerCase()=="heap_analysis"){var s=Ext.getCmp("Heap_Analysis1").getValue();var l=Ext.getCmp("Heap_Analysis2").getValue();if(s){Ext.getCmp("Java_Home").setDisabled(false);Ext.getCmp("Java_Home").show();Ext.getCmp("Include_Packages").setDisabled(false);Ext.getCmp("Include_Packages").show();
Ext.getCmp("Exclude_Packages").setDisabled(false);Ext.getCmp("Exclude_Packages").show();Ext.getCmp("Heap_Dump_Location").setDisabled(false);Ext.getCmp("Heap_Dump_Location").show();}else{if(l){Ext.getCmp("Java_Home").setDisabled(true);Ext.getCmp("Java_Home").hide();Ext.getCmp("Include_Packages").setDisabled(true);
Ext.getCmp("Include_Packages").hide();Ext.getCmp("Exclude_Packages").setDisabled(true);Ext.getCmp("Exclude_Packages").hide();Ext.getCmp("Heap_Dump_Location").setDisabled(true);Ext.getCmp("Heap_Dump_Location").hide();}}}}},changeSAPControl:function(){var a=Ext.getCmp("use_sapcontrol1").getValue();var d=Ext.getCmp("use_sapcontrol2").getValue();
var c=publicJson["showPwdParams"];var b=publicJson["hidePwdParams"];if(d){Ext.getCmp("ssl_radioGrp").setDisabled(true);Ext.getCmp("ssl_radioGrp").hide();Ext.getCmp("os_username").setDisabled(true);Ext.getCmp("os_username").hide();Ext.getCmp("os_password").setDisabled(true);Ext.getCmp("os_password").hide();
Ext.getCmp("os_passwordconfirmpassword").setDisabled(true);Ext.getCmp("os_passwordconfirmpassword").hide();Ext.getCmp("wsdl_port").setDisabled(true);Ext.getCmp("wsdl_port").hide();Ext.getCmp("timeout").setDisabled(false);Ext.getCmp("timeout").show();Ext.getCmp("sapuser").setDisabled(false);Ext.getCmp("sapuser").show();
Ext.getCmp("password").setDisabled(false);Ext.getCmp("password").show();Ext.getCmp("passwordconfirmpassword").setDisabled(false);Ext.getCmp("passwordconfirmpassword").show();Ext.getCmp("sysno").setDisabled(false);Ext.getCmp("sysno").show();Ext.getCmp("clientname").setDisabled(false);Ext.getCmp("clientname").show();
Ext.getCmp("router").setDisabled(false);Ext.getCmp("router").show();Ext.getCmp("Jco_version").setDisabled(false);Ext.getCmp("Jco_version").show();Ext.getCmp("instancename").setDisabled(false);Ext.getCmp("instancename").show();showToPwdProfile(c,false);showToPwdProfile(b,true);}else{if(a){Ext.getCmp("timeout").setDisabled(true);
Ext.getCmp("timeout").hide();Ext.getCmp("sapuser").setDisabled(true);Ext.getCmp("sapuser").hide();Ext.getCmp("password").setDisabled(true);Ext.getCmp("password").hide();Ext.getCmp("passwordconfirmpassword").setDisabled(true);Ext.getCmp("passwordconfirmpassword").hide();Ext.getCmp("sysno").setDisabled(true);
Ext.getCmp("sysno").hide();Ext.getCmp("clientname").setDisabled(true);Ext.getCmp("clientname").hide();Ext.getCmp("router").setDisabled(true);Ext.getCmp("router").hide();Ext.getCmp("Jco_version").setDisabled(true);Ext.getCmp("Jco_version").hide();Ext.getCmp("instancename").setDisabled(true);Ext.getCmp("instancename").hide();
Ext.getCmp("ssl_radioGrp").setDisabled(false);Ext.getCmp("ssl_radioGrp").show();Ext.getCmp("os_username").setDisabled(false);Ext.getCmp("os_username").show();Ext.getCmp("os_password").setDisabled(false);Ext.getCmp("os_password").show();Ext.getCmp("os_passwordconfirmpassword").setDisabled(false);Ext.getCmp("os_passwordconfirmpassword").show();
Ext.getCmp("wsdl_port").setDisabled(false);Ext.getCmp("wsdl_port").show();showToPwdProfile(c,true);showToPwdProfile(b,false);}}},changeSAPControlSelect:function(d){var c=publicJson["showPwdParams"];var b=publicJson["hidePwdParams"];var a=Ext.getCmp("use_sapcontrol").getValue();if(a.toLowerCase()=="no"||a.toLowerCase()=="false"){Ext.getCmp("ssl_radioGrp").setDisabled(true);
Ext.getCmp("ssl_radioGrp").hide();Ext.getCmp("os_username").setDisabled(true);Ext.getCmp("os_username").hide();Ext.getCmp("os_password").setDisabled(true);Ext.getCmp("os_password").hide();Ext.getCmp("os_passwordconfirmpassword").setDisabled(true);Ext.getCmp("os_passwordconfirmpassword").hide();Ext.getCmp("wsdl_port").setDisabled(true);
Ext.getCmp("wsdl_port").hide();Ext.getCmp("timeout").setDisabled(false);Ext.getCmp("timeout").show();Ext.getCmp("sapuser").setDisabled(false);Ext.getCmp("sapuser").show();Ext.getCmp("password").setDisabled(false);Ext.getCmp("password").show();Ext.getCmp("passwordconfirmpassword").setDisabled(false);Ext.getCmp("passwordconfirmpassword").show();
Ext.getCmp("sysno").setDisabled(false);Ext.getCmp("sysno").show();Ext.getCmp("clientname").setDisabled(false);Ext.getCmp("clientname").show();Ext.getCmp("router").setDisabled(false);Ext.getCmp("router").show();Ext.getCmp("Jco_version").setDisabled(false);Ext.getCmp("Jco_version").show();Ext.getCmp("instancename").setDisabled(false);
Ext.getCmp("instancename").show();showToPwdProfile(c,false);showToPwdProfile(b,true);}else{if(a.toLowerCase()=="yes"||a.toLowerCase()=="true"){Ext.getCmp("timeout").setDisabled(true);Ext.getCmp("timeout").hide();Ext.getCmp("sapuser").setDisabled(true);Ext.getCmp("sapuser").hide();Ext.getCmp("password").setDisabled(true);
Ext.getCmp("password").hide();Ext.getCmp("passwordconfirmpassword").setDisabled(true);Ext.getCmp("passwordconfirmpassword").hide();Ext.getCmp("sysno").setDisabled(true);Ext.getCmp("sysno").hide();Ext.getCmp("clientname").setDisabled(true);Ext.getCmp("clientname").hide();Ext.getCmp("router").setDisabled(true);
Ext.getCmp("router").hide();Ext.getCmp("Jco_version").setDisabled(true);Ext.getCmp("Jco_version").hide();Ext.getCmp("instancename").setDisabled(true);Ext.getCmp("instancename").hide();Ext.getCmp("ssl_radioGrp").setDisabled(false);Ext.getCmp("ssl_radioGrp").show();Ext.getCmp("os_username").setDisabled(false);
Ext.getCmp("os_username").show();Ext.getCmp("os_password").setDisabled(false);Ext.getCmp("os_password").show();Ext.getCmp("os_passwordconfirmpassword").setDisabled(false);Ext.getCmp("os_passwordconfirmpassword").show();Ext.getCmp("wsdl_port").setDisabled(false);Ext.getCmp("wsdl_port").show();showToPwdProfile(c,true);
showToPwdProfile(b,false);}else{Ext.getCmp("timeout").setDisabled(false);Ext.getCmp("timeout").show();Ext.getCmp("sapuser").setDisabled(false);Ext.getCmp("sapuser").show();Ext.getCmp("password").setDisabled(false);Ext.getCmp("password").show();Ext.getCmp("passwordconfirmpassword").setDisabled(false);
Ext.getCmp("passwordconfirmpassword").show();Ext.getCmp("sysno").setDisabled(false);Ext.getCmp("sysno").show();Ext.getCmp("clientname").setDisabled(false);Ext.getCmp("clientname").show();Ext.getCmp("router").setDisabled(false);Ext.getCmp("router").show();Ext.getCmp("Jco_version").setDisabled(false);Ext.getCmp("Jco_version").show();
Ext.getCmp("instancename").setDisabled(false);Ext.getCmp("instancename").show();Ext.getCmp("ssl_radioGrp").setDisabled(false);Ext.getCmp("ssl_radioGrp").show();Ext.getCmp("os_username").setDisabled(false);Ext.getCmp("os_username").show();Ext.getCmp("os_password").setDisabled(false);Ext.getCmp("os_password").show();
Ext.getCmp("os_passwordconfirmpassword").setDisabled(false);Ext.getCmp("os_passwordconfirmpassword").show();Ext.getCmp("wsdl_port").setDisabled(false);Ext.getCmp("wsdl_port").show();}}},continueParamMethod:function(a,b){if(!Ext.isEmpty(a)){var d=a.split(",");for(var c=0;c<d.length;c++){if(b.toLowerCase()==d[c].toLowerCase()){return true;
}}return false;}},clearHiddenFields:function(){var a=this.getTestconfiguration().getForm();var b=a.getFields().items;for(var d in b){if(b[d].xtype=="hiddenfield"){Ext.getCmp(b[d].id).setValue("");}}var c=Ext.getCmp("selectedFilterType");if(!Ext.getCmp(c)&&c!=undefined){Ext.getCmp("selectedFilterType").setValue("");
}},populate:function(a){var g=Ext.getCmp("testConfigForm").getForm();var i=publicJson["testName"];var j=publicJson["multiUserMode"];var e=publicJson["allowHostName"];var k=populate(i,"defaultConfiguration",j,e,g);if(k){var c=Ext.getCmp("filter_combo");if(!Ext.isEmpty(c)){var b=Ext.getCmp("filter_combo").getStore().getCount();
if(b==0){Ext.getCmp("filter_combo").setDisabled(true);}}existingParams=g.getValues(true);var d=new Ext.LoadMask(Ext.getBody(),{msg:"Updating..."});d.show();var h="DefaultTestConfiguration/data/EgConfigureDefaultTestParamsJsonp.jsp?";var f=this.getTestconfiguration().getForm();if(f.isValid()){this.getTestconfiguration().submit({url:h,method:"POST",params:me.encodeFieldParams(f),success:function(l,n){var m=Ext.decode(n.response.responseText);
if(m.successUpdate=="true"){d.hide();Ext.Msg.show({title:pageName,msg:alertMsg78,buttons:Ext.Msg.OK,icon:"iconInformation",fn:function(){me.clearHiddenFields();me.afterMainRender();}});}},failure:function(l,n){var m=Ext.decode(n.response.responseText);if(m.successUpdate=="true"){d.hide();me.afterMainRender();
me.clearHiddenFields();}else{d.hide();me.afterMainRender();me.clearHiddenFields();}}});}}},gotoBuildContainer:function(){var ax=new Array();var z=publicJson["targetDiskIORateLabel"];var cU=publicJson["targetDiskIORateValue"];var at=publicJson["aResultant"];var c8=publicJson["testName"];var ar=publicJson["previousTestName"];
var be=publicJson["isSnmp"];var bF=publicJson["componentType"];var v=publicJson["configuredTestTitle"];var L=publicJson["isModeParamExist"];var aT=publicJson["isMeasureModeParamExist"];var b=publicJson["isCorrectParamExist"];var a8=publicJson["isUrlParamExist"];var c4=publicJson["isWsdlUrlExist"];var bw=publicJson["isPolicyParamExists"];
var ck=publicJson["isCredentialParamExist"];var cJ=publicJson["isCorrectiveScriptEnabled"];var bd=publicJson["viewAccessOnly"];var ci=false;var cy=false;var c3=publicJson["hasShowAliasParam"];var P=publicJson["hasShowAllOnlyParam"];var bu=publicJson["hasReportOnlyTotalParam"];var a7=publicJson["testPeriodArr"];
var cS=publicJson["testPeriodLabel"];var ab=publicJson["selectedTimePeriod"];var aC=publicJson["multiUserMode"];var aS=publicJson["multiNamePatternMode"];var cP=publicJson["hiddenObj"]["delimiterMask"];var bv=publicJson["testInfoDelimiter"];var o=publicJson["isPortRelevantForTest"];var cl=publicJson["paramToContinue"];
var aK=publicJson["snmpV1V2ParamToContinue"];var al=publicJson["snmpV3ParamToContinue"];var cb=publicJson["multiUserReadOnlyParam"];var aJ=publicJson["multiNameReadOnlyParam"];var bR=publicJson["modeTrueToContinue"];var aI=publicJson["modeFalseToContinue"];var z=publicJson["targetDiskIORateLabel"];var cU=publicJson["targetDiskIORateValue"];
var de=publicJson["isCompTypeOracleClusterService"];var N=publicJson["isExecutionTimeParam"];var aX=publicJson["isSystemPropertyParamTests"];var b8=publicJson["isLocalModeParamExist"];if(!Ext.isEmpty(at)){if(!Ext.isEmpty(N)&&N){var a6=publicJson["selectedExecTime"];if(a6=="hourly"&&ab!="3600"){ab="3600";
}else{if(a6=="daily"&&ab!="86400"){ab="86400";}}}var a2=Ext.getCmp("paramsContainer");a2.removeAll();a2.setTitle(v);var bj={xtype:"scrollcombo",cls:"dropdown",id:"testPeriod",name:"testPeriod",fieldLabel:cS,queryMode:"local",displayField:"displayField",valueField:"valueField",value:ab,editable:false,parent:this,store:new Ext.data.Store({fields:["displayField","valueField"],data:a7})};
a2.add(bj);ax=at.split("^&^");for(var b5=0;b5<ax.length;b5=b5+3){var cn=ax[b5];cn=cn.substring(1).trim();var cP=publicJson["hiddenObj"]["delimiterMask"];var cX=ax[b5+1];var cz=ax[b5+2];cz=cz.trim();if(!cz=="password"){cX=cX.trim();if(cX.indexOf('"')==0&&cX.lastIndexOf('"')==cX.length-1){cX=cX.substring(1,cX.length-1);
}}if(bF.toLowerCase()=="client_desktop"&&(c8=="ClientServiceTest"||c8=="ClientTcpTest")){if(cn.toLowerCase()=="adapter_device_selection"||cn.toLowerCase()=="device_name"||cn.toLowerCase()=="device_id"){continue;}}var bT=this.continueParamMethod(cl,cn);if(bT){continue;}if(cX.toLowerCase()=="noteditable"){continue;
}if(!de&&cn.toLowerCase()=="info"){continue;}if(cn.toLowerCase()=="monitoring_level"){continue;}var cB=this.continueParamMethod(cb,cn);if(!cB){cB=this.continueParamMethod(aJ,cn);}if(cB){if(cn.toLowerCase()=="domain"||cn.toLowerCase()=="user"||cn.toLowerCase()=="admin_user"){if(cX.indexOf("|")>-1){ci=true;
}}else{if(cn.toLowerCase()=="name"||cn.toLowerCase()=="pattern"||cn.toLowerCase()=="threshold_value"){if(cX.indexOf("|")>-1){cy=true;}}}}var cC="";var ak="";var cO=publicJson["isButtonDescription"];if(cO){ak=publicJson["descriptorButton"];cC="readOnly";}if(cn.toLowerCase()=="credentials"){continue;}if(cn.toLowerCase()=="content"){continue;
}if(cn.toLowerCase()=="encoding"){continue;}if(cn.toLowerCase()=="privatekey"){continue;}if(cn.toLowerCase()=="systempropertykey"||cn.toLowerCase()=="systempropertyvalue"){continue;}if((c8=="WindowshareTest"||c8=="UNCCheckTest")&&(cn.toLowerCase()=="domainname"||cn.toLowerCase()=="shareusername"||cn.toLowerCase()=="password")){continue;
}if(cz.toLowerCase()=="radio"){var ba=publicJson["isIndependentParam"+cn];if(ba){var cu=publicJson["independentParamName"+cn+"1"];var e=publicJson["independentParamValue"+cn+"1"];var ct=publicJson["independentParamName"+cn+"2"];var d=publicJson["independentParamValue"+cn+"2"];var ai=publicJson["paramNameObj"][cn];
if(!Ext.isEmpty(ai)&&ai.lastIndexOf("#")>-1){ai=ai.substring(0,ai.length-1);}var bg=publicJson["enabled"+cn];var ce=publicJson["disabled"+cn];if(cn.toLowerCase()=="aggregate_user_sessions"&&bd&&ce){var aB={xtype:"radiogroup",cls:"radiobt",id:cn+"_radioGrp",fieldLabel:ai,vertical:false,columns:2,items:[{boxLabel:cu,name:cn,id:cn+"1",inputValue:e,checked:bg,disabled:true},{boxLabel:ct,name:cn,id:cn+"2",inputValue:d,checked:ce,disabled:true}]};
a2.add(aB);}else{if(cn.toLowerCase()=="is_trail"){var bg=publicJson["enabled"+cn];var ce=publicJson["disabled"+cn];var cE={xtype:"radiogroup",cls:"radiobt",id:cn+"_radioGrp",fieldLabel:ai,vertical:false,columns:2,items:[{boxLabel:"Yes",name:cn,id:cn+"1",inputValue:"true",checked:bg},{boxLabel:"No",name:cn,id:cn+"2",inputValue:"false",checked:ce}],listeners:{change:{fn:function(){me.changeValue(this);
}}}};a2.add(cE);}else{if(cn.toLowerCase()=="use_sudo"){var bg=publicJson["enabled"+cn];var ce=publicJson["disabled"+cn];var bM={xtype:"radiogroup",cls:"radiobt",id:cn+"_radioGrp",fieldLabel:ai,vertical:false,columns:2,items:[{boxLabel:"Yes",name:cn,id:cn+"1",inputValue:"true",checked:bg},{boxLabel:"No",name:cn,id:cn+"2",inputValue:"false",checked:ce}],listeners:{change:{fn:function(){me.changeValue(this);
}}}};a2.add(bM);}else{if(cn.toLowerCase()=="advanced_settings"){var bg=publicJson["enabled"+cn];var ce=publicJson["disabled"+cn];var cf={xtype:"radiogroup",cls:"radiobt",id:cn+"_radioGrp",fieldLabel:ai,vertical:false,columns:2,items:[{boxLabel:"Yes",name:cn,id:cn+"1",inputValue:"true",checked:bg},{boxLabel:"No",name:cn,id:cn+"2",inputValue:"false",checked:ce}],listeners:{change:{fn:function(){me.changeValue(this);
}}}};a2.add(cf);}else{var q={xtype:"radiogroup",cls:"radiobt",id:cn+"_radioGrp",fieldLabel:ai,vertical:false,columns:2,items:[{boxLabel:cu,name:cn,id:cn+"1",inputValue:e,checked:bg},{boxLabel:ct,name:cn,id:cn+"2",inputValue:d,checked:ce}]};a2.add(q);}}}}}else{var ai=publicJson["paramNameObj"][cn];if(!Ext.isEmpty(ai)&&ai.lastIndexOf("#")>-1){ai=ai.substring(0,ai.length-1);
}if(cn.toLowerCase()=="encryptflag"&&be){var bg=publicJson["enabledEncryptFlag"];var ce=publicJson["disabledEncryptFlag"];var bO={xtype:"radiogroup",cls:"radiobt",id:cn+"_radioGrp",fieldLabel:ai,vertical:false,columns:2,items:[{boxLabel:"Yes",name:cn,id:cn+"1",inputValue:"true",checked:bg},{boxLabel:"No",name:cn,id:cn+"2",inputValue:"false",checked:ce}],hidden:true,listeners:{change:{fn:function(){me.changeEncFlagValue(this);
}}}};a2.add(bO);var c5="";if(!Ext.isEmpty(Ext.getCmp("snmpversion"))&&Ext.getCmp("snmpversion")!=undefined){c5=Ext.getCmp("snmpversion");}else{if(!Ext.isEmpty(Ext.getCmp("snmpVersion"))&&Ext.getCmp("snmpVersion")!=undefined){c5=Ext.getCmp("snmpVersion");}}if(L){var aR=Ext.getCmp("mode1").getValue();if(aR){var dd=c5.getValue();
if(!Ext.isEmpty(dd)&&dd=="v3"){Ext.getCmp(cn+"_radioGrp").show();}}}else{var dd=c5.getValue();if(!Ext.isEmpty(dd)&&dd=="v3"){Ext.getCmp(cn+"_radioGrp").show();}}}else{if(cn.toLowerCase()=="policyfilter"&&bw){var bg=publicJson["enabled"+cn];var ce=publicJson["disabled"+cn];if(!bg){isFirstFilterCombo=true;
}var m={xtype:"radiogroup",cls:"radiobt",id:cn+"_radioGrp",fieldLabel:ai,vertical:false,columns:2,items:[{boxLabel:"Yes",name:cn,id:cn+"1",inputValue:"true",checked:bg},{boxLabel:"No",name:cn,id:cn+"2",inputValue:"false",checked:ce}],listeners:{change:{fn:function(){me.changeValue(this);}}}};a2.add(m);
}else{if(cn.toLowerCase()=="correct"&&b){var bg=publicJson["enabled"+cn];var ce=publicJson["disabled"+cn];var aD={xtype:"radiogroup",cls:"radiobt",id:cn+"_radioGrp",fieldLabel:ai,vertical:false,columns:2,items:[{boxLabel:"Yes",name:cn,id:cn+"1",inputValue:"true",checked:bg},{boxLabel:"No",name:cn,id:cn+"2",inputValue:"false",checked:ce}],listeners:{change:{fn:function(){me.changeValue(this);
}}}};a2.add(aD);}else{if(cn.toLowerCase()=="mode"&&b8){var bg=publicJson["modeEnabled"];var ce=publicJson["modeDisabled"];var cx={xtype:"radiogroup",cls:"radiobt",id:cn+"_radioGrp",fieldLabel:ai,vertical:false,columns:2,items:[{boxLabel:"LOCAL",name:cn,id:cn+"1",inputValue:"true",checked:bg},{boxLabel:"JMX",name:cn,id:cn+"2",inputValue:"false",checked:ce}],listeners:{afterrender:function(){me.changeModeValue(this);
},change:{fn:function(){me.changeModeValue(this);}}}};a2.add(cx);}else{if(cn.toLowerCase()=="mode"&&L){var bg=publicJson["modeEnabled"];var ce=publicJson["modeDisabled"];var cx={xtype:"radiogroup",cls:"radiobt",id:cn+"_radioGrp",fieldLabel:ai,vertical:false,columns:2,items:[{boxLabel:"SNMP",name:cn,id:cn+"1",inputValue:"true",checked:bg},{boxLabel:"JMX",name:cn,id:cn+"2",inputValue:"false",checked:ce}],listeners:{change:{fn:function(){me.changeModeValue(this);
}}}};a2.add(cx);}else{if(cn.toLowerCase()=="metric_collection_type"){var bg=publicJson["jmxOptionsShow"];var ce=publicJson["jmxOptionsHide"];var cZ=publicJson["metric_collection_type#true"];var cH=publicJson["metric_collection_type#false"];var a9={xtype:"radiogroup",cls:"radiobt",id:cn+"_radioGrp",fieldLabel:ai,vertical:false,columns:2,items:[{boxLabel:cZ,name:cn,id:cn+"1",inputValue:"true",checked:bg},{boxLabel:cH,name:cn,id:cn+"2",inputValue:"false",checked:ce}],listeners:{change:{fn:function(){me.changeJmxOptionValue(this);
}},afterrender:function(){me.changeJmxOptionValue(this);}}};a2.add(a9);}else{if(cn.toLowerCase()=="heap_analysis"&&L){var bg=publicJson["enabledHeapAnalysis"];var ce=publicJson["disabledHeapAnalysis"];var bo={xtype:"radiogroup",cls:"radiobt",id:cn+"_radioGrp",fieldLabel:ai,vertical:false,columns:2,items:[{boxLabel:"Yes",name:cn,id:cn+"1",inputValue:"true",checked:bg},{boxLabel:"No",name:cn,id:cn+"2",inputValue:"false",checked:ce}],listeners:{change:{fn:function(){me.changeModeValue(this);
}}}};a2.add(bo);}else{if(cn.toLowerCase()=="usealias"&&c3){var bg=publicJson["enabled"+cn];var ce=publicJson["disabled"+cn];var bS={xtype:"radiogroup",cls:"radiobt",fieldLabel:ai,id:cn+"_radioGrp",vertical:false,columns:2,items:[{boxLabel:"Yes",name:cn,id:cn+"1",inputValue:"true",checked:bg},{boxLabel:"No",name:cn,id:cn+"2",inputValue:"false",checked:ce}],listeners:{change:{fn:function(){me.changeValue(this);
}}}};a2.add(bS);}else{if(cn.toLowerCase()=="showallevents"&&P){var bg=publicJson["enabled"+cn];var ce=publicJson["disabled"+cn];var bf={xtype:"radiogroup",cls:"radiobt",id:cn+"_radioGrp",name:cn+"_radioGrp",fieldLabel:ai,vertical:false,columns:2,items:[{boxLabel:"Yes",name:cn,id:cn+"1",inputValue:"true",checked:bg},{boxLabel:"No",name:cn,id:cn+"2",inputValue:"false",checked:ce}],listeners:{change:{fn:function(){me.changeValue(this);
}}}};a2.add(bf);}else{if(cn.toLowerCase()=="report_total"&&bu){var bg=publicJson["enabled"+cn];var ce=publicJson["disabled"+cn];var bP={xtype:"radiogroup",cls:"radiobt",id:cn+"_radioGrp",fieldLabel:ai,vertical:false,columns:2,items:[{boxLabel:"Yes",name:cn,id:cn+"1",inputValue:"true",checked:bg},{boxLabel:"No",name:cn,id:cn+"2",inputValue:"false",checked:ce}],listeners:{change:{fn:function(){me.changeValue(this);
}}}};a2.add(bP);}else{if(cn.toLowerCase()=="use_sapcontrol"){var bg=publicJson["enabled"+cn];var ce=publicJson["disabled"+cn];var ac={xtype:"radiogroup",cls:"radiobt",id:cn+"_radioGrp",fieldLabel:ai,vertical:false,columns:2,items:[{boxLabel:"Yes",name:cn,id:cn+"1",inputValue:"true",checked:bg},{boxLabel:"No",name:cn,id:cn+"2",inputValue:"false",checked:ce}],listeners:{change:{fn:function(){me.changeSAPControl(this);
}}}};a2.add(ac);}else{if(cn.toLowerCase()=="report_with_destination"){var bg=publicJson["enabled"+cn];var ce=publicJson["disabled"+cn];var M={xtype:"radiogroup",cls:"radiobt",id:cn+"_radioGrp",fieldLabel:ai,vertical:false,columns:2,items:[{boxLabel:"Yes",name:cn,id:cn+"1",inputValue:"yes",checked:bg},{boxLabel:"No",name:cn,id:cn+"2",inputValue:"no",checked:ce}],listeners:{change:{fn:function(){me.changeTotalDesc(this);
}}}};a2.add(M);}else{if(cn.toLowerCase()=="is_privilege_mode_enabled"){var bg=publicJson["enabled"+cn];var ce=publicJson["disabled"+cn];var U={xtype:"radiogroup",cls:"radiobt",id:cn+"_radioGrp",fieldLabel:ai,vertical:false,columns:2,items:[{boxLabel:"Yes",name:cn,id:cn+"1",inputValue:"yes",checked:bg},{boxLabel:"No",name:cn,id:cn+"2",inputValue:"no",checked:ce}],listeners:{change:{fn:function(){me.changeEnableMode(this);
}}}};a2.add(U);}else{var bg=publicJson["enabled"+cn];var ce=publicJson["disabled"+cn];var bB=publicJson["value1"+cn];var bA=publicJson["value2"+cn];if(cn.toLowerCase()=="report_by_user"&&bd&&bg){var cd={xtype:"radiogroup",cls:"radiobt",id:cn+"_radioGrp",name:cn+"_radioGrp",fieldLabel:ai,vertical:false,columns:2,items:[{boxLabel:"Yes",name:cn,id:cn+"1",inputValue:bB,checked:bg,disabled:true},{boxLabel:"No",name:cn,id:cn+"2",inputValue:bA,checked:ce,disabled:true}]};
a2.add(cd);}else{if(cn.toLowerCase()=="reportbyclientname"&&bd&&ce){var ap={xtype:"radiogroup",cls:"radiobt",id:cn+"_radioGrp",vertical:false,fieldLabel:ai,columns:2,items:[{boxLabel:"Yes",name:cn,id:cn+"1",inputValue:bB,checked:bg,disabled:true},{boxLabel:"No",name:cn,id:cn+"2",inputValue:bA,checked:ce,disabled:true}]};
a2.add(ap);}else{if(cn.toLowerCase()=="measure_mode"&&aT&&c8.toLowerCase()=="jvmmempoolgctest"||c8.toLowerCase()=="jvmgctest"){var bg=publicJson["enabled"+cn];var ce=publicJson["disabled"+cn];var b2={xtype:"radiogroup",cls:"radiobt",id:cn+"_radioGrp",fieldLabel:ai,vertical:false,columns:2,items:[{boxLabel:"Log File",name:cn,id:cn+"1",inputValue:"true",checked:bg},{boxLabel:"JMX",name:cn,id:cn+"2",inputValue:"false",checked:ce}],listeners:{change:{fn:function(){me.changeValue(this);
}},afterrender:function(){me.changeValue(this);}}};a2.add(b2);}else{var bU={xtype:"radiogroup",cls:"radiobt",id:cn+"_radioGrp",name:cn+"_radioGrp",vertical:false,fieldLabel:ai,columns:2,items:[{boxLabel:"Yes",name:cn,id:cn+"1",inputValue:bB,checked:bg},{boxLabel:"No",name:cn,id:cn+"2",inputValue:bA,checked:ce}]};
a2.add(bU);}}}if(c3){if(cn=="show_alias_and_interface_name"){var aV=Ext.getCmp("useAlias1").getValue();var aA=Ext.getCmp("useAlias2").getValue();if(aV){Ext.getCmp(cn+"_radioGrp").setDisabled(false);Ext.getCmp(cn+"_radioGrp").show();}else{if(aA){Ext.getCmp(cn+"_radioGrp").setDisabled(true);Ext.getCmp(cn+"_radioGrp").hide();
}}}}if(bu){var aV=Ext.getCmp("Report_total1").getValue();var aA=Ext.getCmp("Report_total2").getValue();if(aV){if(cn=="Report_only_total"){Ext.getCmp(cn+"_radioGrp").setDisabled(false);Ext.getCmp(cn+"_radioGrp").show();}}else{if(aA){if(cn=="Report_only_total"){Ext.getCmp(cn+"_radioGrp").setDisabled(true);
Ext.getCmp(cn+"_radioGrp").hide();}}}}if(P){var aw=Ext.getCmp("showAllEvents_radioGrp");if(!Ext.isEmpty(aw)&&aw!=undefined){var aV=Ext.getCmp("showAllEvents1").getValue();var aA=Ext.getCmp("showAllEvents2").getValue();if(aV){if(cn=="showAllOnly"){Ext.getCmp(cn+"_radioGrp").setDisabled(false);Ext.getCmp(cn+"_radioGrp").show();
}}else{if(aA){if(cn=="showAllOnly"){Ext.getCmp(cn+"_radioGrp").setDisabled(true);Ext.getCmp(cn+"_radioGrp").hide();}}}}}if(cn=="ssl"){if(c8=="AsAbapWorkTest"||c8=="AsAbapWPCnfTest_cf"){var cg=Ext.getCmp("use_sapcontrol2");var bc=Ext.getCmp("use_sapcontrol");if(!Ext.isEmpty(cg)){var aL=cg.getValue();if(aL){Ext.getCmp(cn+"_radioGrp").setDisabled(true);
Ext.getCmp(cn+"_radioGrp").hide();}else{Ext.getCmp(cn+"_radioGrp").setDisabled(false);Ext.getCmp(cn+"_radioGrp").show();}}if(!Ext.isEmpty(bc)){var aL=bc.getValue();if(aL=="false"){Ext.getCmp(cn+"_radioGrp").setDisabled(true);Ext.getCmp(cn+"_radioGrp").hide();}else{Ext.getCmp(cn+"_radioGrp").setDisabled(false);
Ext.getCmp(cn+"_radioGrp").show();}}}}}}}}}}}}}}}}}}}else{if(cz.toLowerCase()=="select"){var ba=publicJson["isIndependentParam"+cn];if(ba){var ai=publicJson["paramNameObj"][cn];if(!Ext.isEmpty(ai)&&ai.lastIndexOf("#")>-1){ai=ai.substring(0,ai.length-1);}var cW=publicJson["independentParamArr"+cn];var bk=publicJson["selectedIndParamValue"+cn];
if(Ext.isEmpty(bk)||bk==undefined){bk=cW[0].valueField;}if(cn.toLowerCase()=="pagetypestobeincludedindashboard"){var a1=publicJson["fieldLabel"+cn];var bK={xtype:"multiselectSi",cls:"multiselect",fieldLabel:a1,labelSeparator:" ",id:cn,name:cn,height:90,queryMode:"local",displayField:"displayField",valueField:"valueField",editable:false,parent:this,value:bk,store:new Ext.data.Store({fields:["displayField","valueField"],data:cW})};
a2.add(bK);}else{if(cn.toLowerCase()=="use_sapcontrol"){var dc={xtype:"scrollcombo",cls:"dropdown",id:cn,name:cn,fieldLabel:ai,value:bk,queryMode:"local",displayField:"displayField",valueField:"valueField",editable:false,parent:this,store:new Ext.data.Store({fields:["displayField","valueField"],data:cW}),listeners:{select:{fn:function(){me.changeSAPControlSelect(this);
}}}};a2.add(dc);}else{var W=this.createComboBox(cn);a2.add(W);Ext.getCmp(cn).getStore().removeAll();if(!Ext.isEmpty(cW)&&cW.length>0){Ext.getCmp(cn).getStore().loadRawData(cW);Ext.getCmp(cn).setValue(bk);}}}if(c8=="AsAbapWorkTest"||c8=="AsAbapWPCnfTest_cf"){var cg=Ext.getCmp("use_sapcontrol2");var bc=Ext.getCmp("use_sapcontrol");
if(!Ext.isEmpty(cg)){var aL=cg.getValue();if(aL||cn=="use_sapcontrol"){Ext.getCmp(cn).setDisabled(false);Ext.getCmp(cn).show();}else{Ext.getCmp(cn).setDisabled(true);Ext.getCmp(cn).hide();}}if(!Ext.isEmpty(bc)){var aL=bc.getValue();if(aL=="false"){Ext.getCmp(cn).setDisabled(false);Ext.getCmp(cn).show();
}else{if(aL=="true"&&cn.toLowerCase()!="use_sapcontrol"){Ext.getCmp(cn).setDisabled(true);Ext.getCmp(cn).hide();}else{Ext.getCmp(cn).setDisabled(false);Ext.getCmp(cn).show();}}}}if(cn.toLowerCase()=="alarmtype"){Ext.getCmp(cn).setDisabled(true);Ext.getCmp(cn).hide();if(b){var by=Ext.getCmp("correct1").getValue();
var cN=Ext.getCmp("correct2").getValue();if(cN){Ext.getCmp(cn).setDisabled(true);Ext.getCmp(cn).hide();}else{if(by){Ext.getCmp(cn).setDisabled(false);Ext.getCmp(cn).show();}}}}if(isAPMTest&&cn.toLowerCase()=="monitoring_mode"){Ext.getCmp(cn).setDisabled(true);Ext.getCmp(cn).hide();}}else{var ai=publicJson["paramNameObj"][cn];
if(!Ext.isEmpty(ai)&&ai.lastIndexOf("#")>-1){ai=ai.substring(0,ai.length-1);}if(cn.toLowerCase()=="snmpversion"&&be){var c7=publicJson["snmpVersionArr"];var cF=publicJson["selectedSnmpVersion"];if(Ext.isEmpty(cF)||cF=="$unconfigured"){cF="v1";}if(L){var aZ={xtype:"scrollcombo",cls:"dropdown",id:cn,name:cn,fieldLabel:ai,value:cF,queryMode:"local",displayField:"displayField",valueField:"valueField",editable:false,parent:this,hidden:true,disabled:true,store:new Ext.data.Store({fields:["displayField","valueField"],data:c7}),listeners:{select:{fn:function(){me.changeValue(this);
}}}};a2.add(aZ);var a4=Ext.getCmp("mode1").getValue();var c5="";if(!Ext.isEmpty(Ext.getCmp("snmpversion"))&&Ext.getCmp("snmpversion")!=undefined){c5=Ext.getCmp("snmpversion");}else{if(!Ext.isEmpty(Ext.getCmp("snmpVersion"))&&Ext.getCmp("snmpVersion")!=undefined){c5=Ext.getCmp("snmpVersion");}}if(a4){c5.setDisabled(false);
c5.show();}if(!Ext.isEmpty(c5)&&c5!=undefined){snmpDefaultVal=c5.getValue();if(!Ext.isEmpty(snmpDefaultVal)&&snmpDefaultVal!=undefined&&(snmpDefaultVal=="v1"||snmpDefaultVal=="v2")){if(!Ext.isEmpty(Ext.getCmp("snmpcommunity"))&&Ext.getCmp("snmpcommunity")!=undefined&&Ext.getCmp("snmpcommunity").isHidden()){Ext.getCmp("snmpcommunity").setDisabled(false);
Ext.getCmp("snmpcommunity").show();}else{if(!Ext.isEmpty(Ext.getCmp("snmpCommunity"))&&Ext.getCmp("snmpCommunity")!=undefined&&Ext.getCmp("snmpCommunity").isHidden()){Ext.getCmp("snmpCommunity").setDisabled(false);Ext.getCmp("snmpCommunity").show();}}}}}else{var aZ={xtype:"scrollcombo",cls:"dropdown",id:cn,name:cn,fieldLabel:ai,value:cF,queryMode:"local",displayField:"displayField",valueField:"valueField",editable:false,parent:this,store:new Ext.data.Store({fields:["displayField","valueField"],data:c7}),listeners:{select:{fn:function(){me.changeValue(this);
}}}};a2.add(aZ);var c5="";if(!Ext.isEmpty(Ext.getCmp("snmpversion"))&&Ext.getCmp("snmpversion")!=undefined){c5=Ext.getCmp("snmpversion");}else{if(!Ext.isEmpty(Ext.getCmp("snmpVersion"))&&Ext.getCmp("snmpVersion")!=undefined){c5=Ext.getCmp("snmpVersion");}}if(!Ext.isEmpty(c5)&&c5!=undefined){snmpDefaultVal=c5.getValue();
if(!Ext.isEmpty(snmpDefaultVal)&&snmpDefaultVal!=undefined&&(snmpDefaultVal=="v1"||snmpDefaultVal=="v2")){if(!Ext.isEmpty(Ext.getCmp("snmpcommunity"))&&Ext.getCmp("snmpcommunity")!=undefined&&Ext.getCmp("snmpcommunity").isHidden()){Ext.getCmp("snmpcommunity").setDisabled(false);Ext.getCmp("snmpcommunity").show();
}else{if(!Ext.isEmpty(Ext.getCmp("snmpCommunity"))&&Ext.getCmp("snmpCommunity")!=undefined&&Ext.getCmp("snmpCommunity").isHidden()){Ext.getCmp("snmpCommunity").setDisabled(false);Ext.getCmp("snmpCommunity").show();}}}}}}else{if(cn.toLowerCase()=="authtype"&&be){var aq=publicJson["snmpAuthTypeArr"];var y=publicJson["selectedSnmpAuthType"];
var da=this.createComboBox(cn);a2.add(da);Ext.getCmp(cn).setFieldLabel(cn.toUpperCase());Ext.getCmp(cn).getStore().removeAll();if(!Ext.isEmpty(aq)&&aq.length>0){Ext.getCmp(cn).getStore().loadRawData(aq);Ext.getCmp(cn).setValue(y);}Ext.getCmp(cn).hide();Ext.getCmp(cn).setDisabled(true);var c5="";if(!Ext.isEmpty(Ext.getCmp("snmpversion"))&&Ext.getCmp("snmpversion")!=undefined){c5=Ext.getCmp("snmpversion");
}else{if(!Ext.isEmpty(Ext.getCmp("snmpVersion"))&&Ext.getCmp("snmpVersion")!=undefined){c5=Ext.getCmp("snmpVersion");}}if(L){var aR=Ext.getCmp("mode1").getValue();if(aR){var dd=c5.getValue();if(!Ext.isEmpty(dd)&&dd=="v3"){Ext.getCmp("authtype").show();Ext.getCmp(cn).setDisabled(false);}}}else{var dd=c5.getValue();
if(!Ext.isEmpty(dd)&&dd=="v3"){Ext.getCmp("authtype").show();Ext.getCmp(cn).setDisabled(false);}}}else{if(cn.toLowerCase()=="encrypttype"&&be){var aj=publicJson["snmpEncTypeArr"];var cM=publicJson["selectedSnmpEncType"];var df=this.createComboBox(cn);a2.add(df);Ext.getCmp(cn).setFieldLabel(cn.toUpperCase());
Ext.getCmp(cn).getStore().removeAll();if(!Ext.isEmpty(aj)&&aj.length>0){Ext.getCmp("encrypttype").getStore().loadRawData(aj);Ext.getCmp("encrypttype").setValue(cM);}Ext.getCmp(cn).hide();Ext.getCmp(cn).setDisabled(true);var c5="";if(!Ext.isEmpty(Ext.getCmp("snmpversion"))&&Ext.getCmp("snmpversion")!=undefined){c5=Ext.getCmp("snmpversion");
}else{if(!Ext.isEmpty(Ext.getCmp("snmpVersion"))&&Ext.getCmp("snmpVersion")!=undefined){c5=Ext.getCmp("snmpVersion");}}if(L){var aR=Ext.getCmp("mode1").getValue();if(aR){var dd=c5.getValue();var C=Ext.getCmp("encryptflag1").getValue();if(!Ext.isEmpty(dd)&&dd!=undefined&&dd=="v3"&&C){Ext.getCmp("encrypttype").show();
Ext.getCmp(cn).setDisabled(false);}}}else{var dd=c5.getValue();var C=Ext.getCmp("encryptflag1").getValue();if(!Ext.isEmpty(dd)&&dd!=undefined&&dd=="v3"&&C){Ext.getCmp("encrypttype").show();Ext.getCmp(cn).setDisabled(false);}}}else{if(cn.toLowerCase()=="filter"&&bw){var bb=publicJson["policyFilterValue"];
var bm=publicJson["isPolicyFilterValue"];var cD=publicJson["filterArr"];var T=publicJson["selectedPolicyFilter"];var cY={xtype:"fieldcontainer",fieldLabel:ai,id:"filterComboContainer",name:"filterComboContainer",labelSeparator:" ",hidden:true,layout:"column",items:[{xtype:"multiselectSi",cls:"multiselect",id:cn+"_combo",name:cn+"_combo",height:90,queryMode:"local",displayField:"displayField",valueField:"valueField",editable:false,parent:this,columnWidth:0.93,store:new Ext.data.Store({fields:["displayField","valueField"],data:[]})},{xtype:"button",iconCls:"iconAdd",columnWidth:0.07,style:{background:"none",border:"0px"},tooltip:label21,listeners:{click:function(){var i=Ext.getCmp("logType").getValue();
if(!Ext.isEmpty(i)&&(i.toLowerCase()=="$unconfigured"||i.toLowerCase()=="$logType")){Ext.Msg.show({title:pageName,msg:"Please enter a valid logtype",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(dg){Ext.getCmp("logType").focus(true);}});return;}testViews.configViewMainPolicy();}}}]};a2.add(cY);
var aP=cn;var bI={xtype:"fieldcontainer",fieldLabel:ai,id:cn+"_fieldContainer",labelSeparator:" ",hidden:true,layout:"column",items:[{xtype:"textarea",cls:"text-area",id:cn,name:cn,value:bb,rows:5,columnWidth:1}]};a2.add(bI);if(!Ext.isEmpty(bm)){if(bm=="combo"){var bC={xtype:"hiddenfield",name:"selectedFilterType",id:"selectedFilterType",value:bm,};
Ext.getCmp("testConfigForm").add(bC);Ext.getCmp(cn).setDisabled(true);Ext.getCmp(cn+"_fieldContainer").hide();Ext.getCmp(cn+"_combo").getStore().removeAll();Ext.getCmp(cn+"_combo").getStore().loadRawData(cD);Ext.getCmp(cn+"_combo").setValue(T);Ext.getCmp("filterComboContainer").show();}else{if(bm=="fieldContainer"){var bC={xtype:"hiddenfield",name:"selectedFilterType",id:"selectedFilterType",value:bm,};
Ext.getCmp("testConfigForm").add(bC);Ext.getCmp(cn+"_combo").setDisabled(true);Ext.getCmp("filterComboContainer").hide();Ext.getCmp(cn+"_fieldContainer").show();}}}}else{if(cn.toLowerCase()=="virtual_center"){var g=publicJson["virtualCenterArr"];var O=publicJson["selectedVirtualCenter"];var b1={xtype:"scrollcombo",cls:"dropdown",id:cn,name:cn,fieldLabel:ai,queryMode:"local",displayField:"displayField",valueField:"valueField",value:O,editable:false,forceSelection:false,parent:this,columnWidth:1,store:new Ext.data.Store({fields:["displayField","valueField"],data:g}),listeners:{select:function(){var dg=getPwdProfileParamName(publicJson.pwdParamSetList,"Esx_user,Esx_password");
if(!Ext.isEmpty(dg)){if(!Ext.isEmpty(this.value)&&(this.value.toLowerCase()!="none")){Ext.getCmp(dg).hide();}else{Ext.getCmp(dg).show();}}if(isPasswordProfileEnabled(publicJson.pwdParamSetList,"Esx_user,Esx_password")){var i=passwordParamDisabled(publicJson.pwdParamSetList,"Esx_user,Esx_password");if(!Ext.isEmpty(i)){Ext.getCmp(i.trim()).setValue("none");
me.applyPwdProfile(Ext.getCmp(i.trim()));}testViews.egvcconfig(this.id);}else{testViews.egvcconfig(this.id);}}}};a2.add(b1);}else{if(cn.toLowerCase()=="xms_ip"){var aY=publicJson["xmsIPArr"];var bD=publicJson["selectedXMSIP"];var ag={xtype:"scrollcombo",cls:"dropdown",fieldLabel:ai,labelSeparator:" ",id:cn,name:cn,queryMode:"local",displayField:"displayField",valueField:"valueField",value:bD,editable:false,forceSelection:false,parent:this,store:new Ext.data.Store({fields:["displayField","valueField"],data:aY}),listeners:{select:function(){var dg=getPwdProfileParamName(publicJson.pwdParamSetList,"XtremIO_user,XtremIO_password");
if(!Ext.isEmpty(dg)){if(!Ext.isEmpty(this.value)&&(this.value.toLowerCase()!="none")){Ext.getCmp(dg).hide();}else{Ext.getCmp(dg).show();}}if(isPasswordProfileEnabled(publicJson.pwdParamSetList,"XtremIO_user,XtremIO_password")){var i=passwordParamDisabled(publicJson.pwdParamSetList,"XtremIO_user,XtremIO_password");
if(!Ext.isEmpty(i)){Ext.getCmp(i.trim()).setValue("none");me.applyPwdProfile(Ext.getCmp(i.trim()));}testViews.egxmsconfig(this.id);}else{testViews.egxmsconfig(this.id);}}}};a2.add(ag);}else{if(cn.toLowerCase()=="prism_ip"){var b9=publicJson["prismArr"];var R=publicJson["selectedPrism"];var bq={xtype:"scrollcombo",cls:"dropdown",fieldLabel:ai,labelSeparator:" ",id:cn,name:cn,queryMode:"local",displayField:"displayField",valueField:"valueField",value:R,editable:false,forceSelection:false,parent:this,store:new Ext.data.Store({fields:["displayField","valueField"],data:b9}),listeners:{select:function(){var dg=getPwdProfileParamName(publicJson.pwdParamSetList,"Prism_user,Prism_password");
if(!Ext.isEmpty(dg)){if(!Ext.isEmpty(this.value)&&(this.value.toLowerCase()!="none")){Ext.getCmp(dg).hide();}else{Ext.getCmp(dg).show();}}if(isPasswordProfileEnabled(publicJson.pwdParamSetList,"Prism_user,Prism_password")){var i=passwordParamDisabled(publicJson.pwdParamSetList,"Prism_user,Prism_password");
if(!Ext.isEmpty(i)){Ext.getCmp(i.trim()).setValue("none");me.applyPwdProfile(Ext.getCmp(i.trim()));}testViews.egnutconfig(this.id);}else{testViews.egnutconfig(this.id);}}}};a2.add(bq);}else{if(cn.toLowerCase()=="rhel_mgr_host"){var bX=publicJson["rhelMgrHostArr"];var au=publicJson["selectedRhelMgrHost"];
var bN={xtype:"scrollcombo",cls:"dropdown",id:cn,name:cn,queryMode:"local",displayField:"displayField",valueField:"valueField",fieldLabel:ai,columnWidth:1,value:au,editable:false,forceSelection:false,parent:this,store:new Ext.data.Store({fields:["displayField","valueField"],data:bX}),listeners:{select:function(){var dg=getPwdProfileParamName(publicJson.pwdParamSetList,"Rhel_mgr_user,Rhel_mgr_password,Rhel_mgr_domain");
if(!Ext.isEmpty(dg)){if(!Ext.isEmpty(this.value)&&(this.value.toLowerCase()!="none")){Ext.getCmp(dg).hide();}else{Ext.getCmp(dg).show();}}if(isPasswordProfileEnabled(publicJson.pwdParamSetList,"Rhel_mgr_user,Rhel_mgr_password,Rhel_mgr_domain")){var i=passwordParamDisabled(publicJson.pwdParamSetList,"Rhel_mgr_user,Rhel_mgr_password,Rhel_mgr_domain");
if(!Ext.isEmpty(i)){Ext.getCmp(i.trim()).setValue("none");me.applyPwdProfile(Ext.getCmp(i.trim()));}testViews.egrhevconfig(this.id);}else{testViews.egrhevconfig(this.id);}}}};a2.add(bN);}else{if(cn.toLowerCase()=="management_server"){var bZ=publicJson["showTextBox"+cn];var a=publicJson["mgmtTextValue"];
if(Ext.isEmpty(a)||a==undefined){a="$unconfigured";}var E={xtype:"textfield",cls:"textbox",id:cn+"_text",name:cn+"_text",fieldLabel:ai,value:a,hidden:true,disabled:true};a2.add(E);var cq=publicJson["mgmtServerArr"];var X=publicJson["selectedHMC"];if(Ext.isEmpty(X)||X==undefined){X=cq[0].valueField;}var bG={xtype:"scrollcombo",cls:"dropdown",id:cn,name:cn,queryMode:"local",displayField:"displayField",valueField:"valueField",value:X,editable:false,forceSelection:false,fieldLabel:ai,columnWidth:1,parent:this,hidden:true,disabled:true,store:new Ext.data.Store({fields:["displayField","valueField"],data:cq}),listeners:{select:function(){var dg=getPwdProfileParamName(publicJson.pwdParamSetList,"management_user,management_password");
if(!Ext.isEmpty(dg)){if(!Ext.isEmpty(this.value)&&(this.value.toLowerCase()!="none")){Ext.getCmp(dg).hide();}else{Ext.getCmp(dg).show();}}if(isPasswordProfileEnabled(publicJson.pwdParamSetList,"management_user,management_password")){var i=passwordParamDisabled(publicJson.pwdParamSetList,"management_user,management_password");
if(!Ext.isEmpty(i)){Ext.getCmp(i.trim()).setValue("none");me.applyPwdProfile(Ext.getCmp(i.trim()));}testViews.eghmcconfig(this.id);}else{testViews.eghmcconfig(this.id);}}}};a2.add(bG);var az=Ext.getCmp("is_managed_by");var cA="";if(!Ext.isEmpty(az)&&az!=undefined){cA=az.getValue();if(!Ext.isEmpty(cA)&&cA!=undefined&&cA=="HMC"){Ext.getCmp(cn).setDisabled(false);
Ext.getCmp(cn).show();var bL="none";bL=publicJson["selectedHMC"];if(Ext.isEmpty(bL)||bL==undefined){bL="none";}Ext.getCmp("management_server").setValue(bL);}else{if(!Ext.isEmpty(cA)&&cA!=undefined&&cA=="IVM"){Ext.getCmp(cn+"_text").setDisabled(false);Ext.getCmp(cn+"_text").show();var bL="$unconfigured";
bL=publicJson["mgmtTextValue"];if(Ext.isEmpty(bL)||bL==undefined){bL="$unconfigured";}Ext.getCmp("management_server_text").setValue(bL);}}}}else{if(cn.toLowerCase()=="executiontime"){var p=publicJson["execTimeArr"];var u=publicJson["selectedExecTime"];var c1=publicJson["isTimeComboHide"];if(true){var a0=publicJson["execTimeHrsArr"];
var j=publicJson["execTimeMinsArr"];var B=publicJson["selectedHrs"];var t=publicJson["selectedMins"];var V={xtype:"fieldcontainer",fieldLabel:ai,labelSeparator:" ",layout:"column",items:[{xtype:"scrollcombo",cls:"dropdown",id:cn,name:cn,queryMode:"local",displayField:"displayField",valueField:"valueField",value:u,editable:false,parent:this,columnWidth:0.3,store:new Ext.data.Store({fields:["displayField","valueField"],data:p}),listeners:{select:function(){testViews.exectimeChangeEvt(this);
}}},{xtype:"scrollcombo",cls:"dropdown",id:"hours",name:"hours",value:B,fieldLabel:"Hrs",labelWidth:25,queryMode:"local",displayField:"displayField",valueField:"valueField",editable:false,parent:this,columnWidth:0.35,margin:"0 0 0 10",hidden:c1,store:new Ext.data.Store({fields:["displayField","valueField"],data:a0})},{xtype:"scrollcombo",cls:"dropdown",id:"minutes",name:"minutes",fieldLabel:"Mins",labelWidth:30,value:t,queryMode:"local",displayField:"displayField",valueField:"valueField",editable:false,columnWidth:0.35,margin:"0 0 0 5",parent:this,hidden:c1,store:new Ext.data.Store({fields:["displayField","valueField"],data:j})}]};
a2.add(V);}if(!Ext.isEmpty(c1)&&c1){Ext.getCmp("hours").setDisabled(true);Ext.getCmp("hours").hide();Ext.getCmp("minutes").setDisabled(true);Ext.getCmp("minutes").hide();}else{if(!Ext.isEmpty(c1)&&!c1){Ext.getCmp("hours").setDisabled(false);Ext.getCmp("hours").show();Ext.getCmp("minutes").setDisabled(false);
Ext.getCmp("minutes").show();}}}else{if(cn.toLowerCase()=="inside_view_using"){var aM=publicJson["insideViewUsingArr"];var af=publicJson["selectedInsideViewUsing"];var x={xtype:"scrollcombo",cls:"dropdown",id:cn,name:cn,fieldLabel:ai,value:af,queryMode:"local",displayField:"displayField",valueField:"valueField",editable:false,parent:this,columnWidth:1,store:new Ext.data.Store({fields:["displayField","valueField"],data:aM}),listeners:{select:{fn:function(){if(!isPasswordProfileEnabled(publicJson.pwdParamSetList,"domain,admin_user,admin_password")){me.InsideViewChange(this.value);
}else{var i=passwordParamDisabled(publicJson.pwdParamSetList,"domain,admin_user,admin_password");if(!Ext.isEmpty(i)){Ext.getCmp(i.trim()).setValue("none");me.applyPwdProfile(Ext.getCmp(i.trim()));}me.InsideViewChange(this.value);}}}}};a2.add(x);}else{if(cn.toLowerCase()=="is_managed_by"){var b7=publicJson["managedByArr"];
var ah=publicJson["selectedIsManagedBy"];var f={xtype:"scrollcombo",cls:"dropdown",id:cn,name:cn,queryMode:"local",displayField:"displayField",valueField:"valueField",value:ah,editable:false,forceSelection:false,fieldLabel:ai,parent:this,store:new Ext.data.Store({fields:["displayField","valueField"],data:b7}),listeners:{select:{fn:function(){me.isManagedByChange(this);
}}}};a2.add(f);}else{if(cn.toLowerCase().startsWith("password_profile")&&publicJson.isEnablePwdProfile){var w=publicJson["pwdProfileArr"];var J=publicJson["selectedProfile"+cn];var cR={xtype:"scrollcombo",cls:"dropdown",id:cn,name:cn,fieldLabel:"PASSWORD PROFILE",value:J,queryMode:"local",displayField:"displayField",valueField:"valueField",store:new Ext.data.Store({fields:["displayField","valueField"],data:w}),listeners:{select:{fn:function(){me.applyPwdProfile(this);
}}}};a2.add(cR);var c0=publicJson.pwdParamSetList;var D="";var aO="";var h=false;if(!Ext.isEmpty(c0)){for(var k in c0){var cT=c0[k];if(Ext.isEmpty(cT)){continue;}if(cT=="Esx_user,Esx_password"){aO=Ext.getCmp("virtual_center");h=true;D=k;break;}else{if(cT=="management_user,management_password"){aO=Ext.getCmp("management_server");
h=true;D=k;break;}else{if(cT=="Rhel_mgr_user,Rhel_mgr_password,Rhel_mgr_domain"){aO=Ext.getCmp("Rhel_mgr_host");h=true;D=k;break;}else{if(cT=="Prism_user,Prism_password"){aO=Ext.getCmp("Prism_IP");h=true;D=k;break;}else{if(cT=="XtremIO_user,XtremIO_password"){aO=Ext.getCmp("xms_ip");h=true;D=k;break;
}}}}}}}if(h){if(!Ext.isEmpty(aO)&&(aO.getValue().toLowerCase()!="none")){Ext.getCmp(D).hide();}else{Ext.getCmp(D).show();}}if(!Ext.isEmpty(publicJson.pwdProfileProperties)){var bY=publicJson.pwdProfileProperties;var aF=cn+"_isShow";var cI=bY[aF];if(!Ext.isEmpty(cI)){if(!cI){Ext.getCmp(cn).setDisabled(true);
Ext.getCmp(cn).hide();}else{Ext.getCmp(cn).setDisabled(false);Ext.getCmp(cn).show();}}}if(!Ext.isEmpty(publicJson.isMultiUserParamExists)&&publicJson.isMultiUserParamExists){Ext.getCmp(cn).setDisabled(true);Ext.getCmp(cn).hide();}}else{var I=publicJson["lastComboArr"];var bE=publicJson["selectedLastCombo"];
var bp=this.createComboBox(cn);a2.add(bp);Ext.getCmp(cn).getStore().removeAll();if(!Ext.isEmpty(I)&&I.length>0){Ext.getCmp(cn).getStore().loadRawData(I);Ext.getCmp(cn).setValue(bE);}}}}}}}}}}}}}}}}else{if(cz.toLowerCase()=="password"){var ai=publicJson["paramNameObj"][cn];if(!Ext.isEmpty(ai)&&ai.lastIndexOf("#")>-1){ai=ai.substring(0,ai.length-1);
}var cw=publicJson["isEditable"+cn];cX=publicJson["password"+cn];if(aC){var a5={xtype:"textfield",cls:"textbox",id:cn,name:cn,fieldLabel:ai,inputType:"password",columnWidth:1,readOnly:cw,backupValue:cX,listeners:{afterrender:function(){this.setValue(this.backupValue);},change:function(){var i=this.getValue();
if(!Ext.isEmpty(i)){this.backupValue=i;}},blur:function(){var dg=this;if(dg.getValue()!==undefined||dg.getValue()!=""){var i=this.backupValue;dg.setValue(i);}},focus:function(){this.setValue("");}}};a2.add(a5);if((c8=="CtxXcXALogonSimTest"||c8=="HrznLogonSimTest"||c8=="AWSLogonSimTest"||c8=="HrznWLogonSimTest")&&(cn=="Two_factor_auth_password"||cn=="Registration_code")){cw=true;
}if(!cw){var b3=publicJson["paramNameObj"][cn+"confirmpassword"];if(!Ext.isEmpty(b3)&&b3.lastIndexOf("#")>-1){b3=b3.substring(0,b3.length-1);}var cc={xtype:"textfield",cls:"textbox",id:cn+"confirmpassword",name:cn+"confirmpassword",fieldLabel:b3,inputType:"password",columnWidth:1,backupValue:cX,listeners:{afterrender:function(){this.setValue(this.backupValue);
},change:function(){var i=this.getValue();if(!Ext.isEmpty(i)){this.backupValue=i;}},blur:function(){var dg=this;if(dg.getValue()!==undefined||dg.getValue()!=""){var i=this.backupValue;dg.setValue(i);}},focus:function(){this.setValue("");}}};a2.add(cc);}if((c8=="CtxXcXALogonSimTest"||c8=="HrznLogonSimTest"||c8=="AWSLogonSimTest"||c8=="HrznWLogonSimTest")&&(cn=="Password"||cn=="Registration_code"||cn=="Two_factor_auth_password")){Ext.getCmp(cn).hide();
if(!cw){Ext.getCmp(cn+"confirmpassword").hide();}}}else{if(cn=="Email_password"){var av={xtype:"textfield",cls:"textbox",id:cn,name:cn,fieldLabel:ai,inputType:"password",readOnly:cw,hidden:true,backupValue:cX,listeners:{afterrender:function(){this.setValue(this.backupValue);},change:function(){var i=this.getValue();
if(!Ext.isEmpty(i)){this.backupValue=i;}},blur:function(){var dg=this;if(dg.getValue()!==undefined||dg.getValue()!=""){var i=this.backupValue;dg.setValue(i);}},focus:function(){this.setValue("");}}};a2.add(av);}else{if(cn=="enable_password"){var db={xtype:"textfield",cls:"textbox",id:cn,name:cn,fieldLabel:ai,inputType:"password",backupValue:cX,readOnly:cw,hidden:true,listeners:{afterrender:function(){this.setValue(this.backupValue);
},change:function(){var i=this.getValue();if(!Ext.isEmpty(i)){this.backupValue=i;}},blur:function(){var dg=this;if(dg.getValue()!==undefined||dg.getValue()!=""){var i=this.backupValue;dg.setValue(i);}},focus:function(){this.setValue("");}}};a2.add(db);var ae=Ext.getCmp("is_privilege_mode_enabled1");if(!Ext.isEmpty(ae)){var aU=ae.getValue();
if(aU){Ext.getCmp(cn).setDisabled(false);Ext.getCmp(cn).show();}else{Ext.getCmp(cn).setDisabled(true);Ext.getCmp(cn).hide();}}}else{if((be||L)&&(cn.toLowerCase()=="jmx_password"||cn=="encryptpassword"||cn=="authpass"||cn=="password")){var a5={xtype:"textfield",cls:"textbox",id:cn,name:cn,fieldLabel:ai,inputType:"password",hidden:true,columnWidth:1,disabled:true,backupValue:cX,listeners:{afterrender:function(){this.setValue(this.backupValue);
},change:function(){var i=this.getValue();if(!Ext.isEmpty(i)){this.backupValue=i;}},blur:function(){var dg=this;if(dg.getValue()!==undefined||dg.getValue()!=""){var i=this.backupValue;dg.setValue(i);}},focus:function(){this.setValue("");}}};a2.add(a5);if(!cw){var b3=publicJson["paramNameObj"][cn+"confirmpassword"];
if(!Ext.isEmpty(b3)&&b3.lastIndexOf("#")>-1){b3=b3.substring(0,b3.length-1);}var cc={xtype:"textfield",cls:"textbox",id:cn+"confirmpassword",name:cn+"confirmpassword",fieldLabel:b3,inputType:"password",columnWidth:1,hidden:true,disabled:true,backupValue:cX,listeners:{afterrender:function(){this.setValue(this.backupValue);
},change:function(){var i=this.getValue();if(!Ext.isEmpty(i)){this.backupValue=i;}},blur:function(){var dg=this;if(dg.getValue()!==undefined||dg.getValue()!=""){var i=this.backupValue;dg.setValue(i);}},focus:function(){this.setValue("");}}};a2.add(cc);}}else{if(!cw){var a5={xtype:"textfield",cls:"textbox",id:cn,name:cn,fieldLabel:ai,inputType:"password",columnWidth:1,backupValue:cX,listeners:{afterrender:function(){this.setValue(this.backupValue);
},change:function(){var i=this.getValue();if(!Ext.isEmpty(i)){this.backupValue=i;}},blur:function(){var dg=this;if(dg.getValue()!==undefined||dg.getValue()!=""){var i=this.backupValue;dg.setValue(i);}},focus:function(){this.setValue("");}}};a2.add(a5);var b3=publicJson["paramNameObj"][cn+"confirmpassword"];
if(!Ext.isEmpty(b3)&&b3.lastIndexOf("#")>-1){b3=b3.substring(0,b3.length-1);}var cc={xtype:"textfield",cls:"textbox",id:cn+"confirmpassword",name:cn+"confirmpassword",fieldLabel:b3,inputType:"password",backupValue:cX,listeners:{afterrender:function(){this.setValue(this.backupValue);},change:function(){var i=this.getValue();
if(!Ext.isEmpty(i)){this.backupValue=i;}},blur:function(){var dg=this;if(dg.getValue()!==undefined||dg.getValue()!=""){var i=this.backupValue;dg.setValue(i);}},focus:function(){this.setValue("");}}};a2.add(cc);}else{var l={xtype:"textfield",cls:"textbox",id:cn,name:cn,fieldLabel:ai,inputType:"password",columnWidth:1,backupValue:cX,listeners:{afterrender:function(){this.setValue(this.backupValue);
},change:function(){var i=this.getValue();if(!Ext.isEmpty(i)){this.backupValue=i;}},blur:function(){var dg=this;if(dg.getValue()!==undefined||dg.getValue()!=""){var i=this.backupValue;dg.setValue(i);}},focus:function(){this.setValue("");}}};a2.add(l);}}if(c8=="AsAbapWorkTest"||c8=="AsAbapWPCnfTest_cf"){var cg=Ext.getCmp("use_sapcontrol2");
var bc=Ext.getCmp("use_sapcontrol");if(!Ext.isEmpty(cg)){var aL=cg.getValue();if(aL){if(cn=="password"){Ext.getCmp(cn).setDisabled(false);Ext.getCmp(cn).show();Ext.getCmp(cn+"confirmpassword").setDisabled(false);Ext.getCmp(cn+"confirmpassword").show();}if(cn=="os_password"){Ext.getCmp(cn).setDisabled(true);
Ext.getCmp(cn).hide();Ext.getCmp(cn+"confirmpassword").setDisabled(true);Ext.getCmp(cn+"confirmpassword").hide();}}else{if(cn=="os_password"){Ext.getCmp(cn).setDisabled(false);Ext.getCmp(cn).show();Ext.getCmp(cn+"confirmpassword").setDisabled(false);Ext.getCmp(cn+"confirmpassword").show();}if(cn=="password"){Ext.getCmp(cn).setDisabled(true);
Ext.getCmp(cn).hide();Ext.getCmp(cn+"confirmpassword").setDisabled(true);Ext.getCmp(cn+"confirmpassword").hide();}}}if(!Ext.isEmpty(bc)){var aL=bc.getValue();if(aL.toLowerCase()=="false"){if(cn=="password"){Ext.getCmp(cn).setDisabled(false);Ext.getCmp(cn).show();Ext.getCmp(cn+"confirmpassword").setDisabled(false);
Ext.getCmp(cn+"confirmpassword").show();}if(cn=="os_password"){Ext.getCmp(cn).setDisabled(true);Ext.getCmp(cn).hide();Ext.getCmp(cn+"confirmpassword").setDisabled(true);Ext.getCmp(cn+"confirmpassword").hide();}}else{if(aL.toLowerCase()=="true"){if(cn=="os_password"){Ext.getCmp(cn).setDisabled(false);
Ext.getCmp(cn).show();Ext.getCmp(cn+"confirmpassword").setDisabled(false);Ext.getCmp(cn+"confirmpassword").show();}if(cn=="password"){Ext.getCmp(cn).setDisabled(true);Ext.getCmp(cn).hide();Ext.getCmp(cn+"confirmpassword").setDisabled(true);Ext.getCmp(cn+"confirmpassword").hide();}}else{Ext.getCmp(cn).setDisabled(false);
Ext.getCmp(cn).show();Ext.getCmp(cn+"confirmpassword").setDisabled(false);Ext.getCmp(cn+"confirmpassword").show();}}}}var c5="";if(!Ext.isEmpty(Ext.getCmp("snmpversion"))&&Ext.getCmp("snmpversion")!=undefined){c5=Ext.getCmp("snmpversion");}else{if(!Ext.isEmpty(Ext.getCmp("snmpVersion"))&&Ext.getCmp("snmpVersion")!=undefined){c5=Ext.getCmp("snmpVersion");
}}if(L){var aR=Ext.getCmp("mode1").getValue();var bW=Ext.getCmp("mode2").getValue();if(aR){if(be&&!Ext.isEmpty(c5)&&c5!=undefined){var dd=c5.getValue();if(dd=="v3"){if(cn=="encryptpassword"){var C=Ext.getCmp("encryptflag1").getValue();if(!Ext.isEmpty(C)&&C!=undefined&&C){Ext.getCmp(cn).show();Ext.getCmp(cn).setDisabled(false);
Ext.getCmp(cn+"confirmpassword").show();Ext.getCmp(cn+"confirmpassword").setDisabled(false);}}else{if(cn=="authpass"){Ext.getCmp(cn).show();Ext.getCmp(cn).setDisabled(false);Ext.getCmp(cn+"confirmpassword").show();Ext.getCmp(cn+"confirmpassword").setDisabled(false);}}}}}else{if(bW){if(cn=="Jmx_password"||cn=="password"){Ext.getCmp(cn).setDisabled(false);
Ext.getCmp(cn).show();Ext.getCmp(cn+"confirmpassword").setDisabled(false);Ext.getCmp(cn+"confirmpassword").show();}}}}else{if(be&&!Ext.isEmpty(c5)&&c5!=undefined){var dd=c5.getValue();if(dd=="v3"){if(cn=="encryptpassword"){var C=Ext.getCmp("encryptflag1").getValue();if(!Ext.isEmpty(C)&&C!=undefined&&C){Ext.getCmp(cn).show();
Ext.getCmp(cn).setDisabled(false);Ext.getCmp(cn+"confirmpassword").show();Ext.getCmp(cn+"confirmpassword").setDisabled(false);}}else{Ext.getCmp(cn).show();Ext.getCmp(cn).setDisabled(false);Ext.getCmp(cn+"confirmpassword").show();Ext.getCmp(cn+"confirmpassword").setDisabled(false);}}if(cn=="Jmx_password"||cn=="password"){Ext.getCmp(cn).setDisabled(false);
Ext.getCmp(cn).show();Ext.getCmp(cn+"confirmpassword").show();Ext.getCmp(cn+"confirmpassword").setDisabled(false);}}}}}}}else{if(cz.toLowerCase()=="textarea"){var b0="";if(c8==ar){b0=Ext.getCmp(cn).getValue();}if(!Ext.isEmpty(b0)){cX=b0;}if(cX.indexOf("|")>-1){cX=publicJson["pipeParamValue"];}var ay=publicJson["textArea"+cn];
if(!Ext.isEmpty(ay)&&ay!=undefined){cX=ay;}var ai=publicJson["paramNameObj"][cn];if(!Ext.isEmpty(ai)&&ai.lastIndexOf("#")>-1){ai=ai.substring(0,ai.length-1);}if((cn.toLowerCase()=="servicename"||cn.toLowerCase()=="process")&&cX.trim()=="(EG_RUNTIME)"){var aW=cn;var cv={xtype:"fieldcontainer",fieldLabel:ai,labelSeparator:" ",layout:"column",items:[{xtype:"textarea",cls:"text-area",id:cn,name:cn,value:cX,rows:5,columnWidth:0.93,margin:"0 5 0 0"},{xtype:"button",name:"os_pattern",id:"os_pattern",columnWidth:0.07,tooltip:label18,iconCls:"iconConfigure",style:{background:"none",border:"0px"},listeners:{click:function(){testViews.configRunTimePattern(aW);
}}}]};a2.add(cv);}else{if(cn.toLowerCase()=="custom_bt_naming"){if(cX.indexOf(bv)>-1){cX=publicJson["testInfoDelimParamValue"];}var bH=publicJson["viewLabel"];var Y={xtype:"fieldcontainer",fieldLabel:btnRules,layout:"column",labelSeparator:" ",items:[{xtype:"textarea",cls:"text-area",readOnly:true,id:cn,name:cn,value:"None",rows:5,width:265,margin:"0 8 0 0",},{xtype:"button",id:"viewUrl",tooltip:bH,iconCls:"iconConfigure",style:{background:"none",border:"0px"},listeners:{click:function(){testViews.btNamingConfig();
}}}]};me.getRuleNamesFromIni(false);a2.add(Y);}else{if(cn.toLowerCase()=="min_max_values"){var c6=cX;if(cX.indexOf(bv)>-1){c6=publicJson["testInfoDelimParamValue"];}if(cP.length>0&&cX.indexOf(cP)!=-1){c6=publicJson["strDelimiterMaskParamValue"];}var bH=publicJson["viewLabel"];var A={xtype:"fieldcontainer",fieldLabel:minMaxLabel,labelSeparator:" ",layout:"column",items:[{xtype:"button",columnWidth:1,tooltip:bH,iconCls:"iconConfigure",style:{background:"none",border:"0px"},listeners:{click:function(){testViews.winServiceConfig_pr();
}}},{xtype:"textarea",cls:"text-area",id:cn,name:cn,value:c6,hidden:true}]};a2.add(A);}else{var cv={xtype:"textarea",cls:"text-area",id:cn,name:cn,fieldLabel:ai,value:cX,rows:5};a2.add(cv);}}}}else{var ai=publicJson["paramNameObj"][cn];if(!Ext.isEmpty(ai)&&ai.lastIndexOf("#")>-1){ai=ai.substring(0,ai.length-1);
}if(be||bw||b||a8||c4||cn.toLowerCase()=="real_servername"){var bC=cX;var b0="";if(c8==ar){b0=Ext.getCmp(cn).getValue();}if(!Ext.isEmpty(b0)){cX=b0;}else{cX=bC;}}if(cn.toLowerCase()=="correctivescript"){var cQ={xtype:"textfield",cls:"textbox",id:cn,name:cn,fieldLabel:ai,value:cX,hidden:true,disabled:true,columnWidth:1};
a2.add(cQ);if(b){var by=Ext.getCmp("correct1").getValue();var cN=Ext.getCmp("correct2").getValue();if(cN){Ext.getCmp(cn).setDisabled(true);Ext.getCmp(cn).hide();}else{if(by){Ext.getCmp(cn).setDisabled(false);Ext.getCmp(cn).show();}}}}else{if(cn.toLowerCase()=="url"){if(ck){urlParamValue=publicJson["urlParamValue"];
cj=publicJson["imageTitle"];var cs={xtype:"fieldcontainer",id:ai,name:ai,fieldLabel:ai,labelSeparator:" ",layout:"column",items:[{xtype:"textfield",cls:"textbox",id:cn,name:cn,columnWidth:0.93,margin:"0 5 0 0",value:urlParamValue,readOnly:true,listeners:{blur:function(){me.checkURLAndCredentials(this.id);
}}},{xtype:"button",iconCls:"iconAdd",columnWidth:0.07,tooltip:label19,style:{background:"none",border:"0px"},listeners:{click:function(){testViews.configCerdentialurl();}}}]};a2.add(cs);}else{urlParamValue=publicJson["urlParamValue"];var ad={xtype:"textarea",cls:"text-area",id:cn,name:cn,fieldLabel:ai,value:urlParamValue,rows:5};
a2.add(ad);}}else{if(cn.toLowerCase()=="wsdl_url"){if(ck){wsdlUrlParamValue=publicJson["wsdlUrlParamValue"];wsdlUrlImgTitle=publicJson["wsdlUrlImgTitle"];var aQ={xtype:"fieldcontainer",fieldLabel:ai,labelSeparator:" ",layout:"column",items:[{xtype:"textfield",cls:"textbox",id:cn,name:cn,columnWidth:1,value:wsdlUrlParamValue,listeners:{blur:function(){me.checkURLAndCredentials(this.id);
}}}]};a2.add(aQ);}else{wsdlUrlParamValue=publicJson["wsdlUrlParamValue"];var aQ={xtype:"textfield",cls:"textbox",id:cn,name:cn,fieldLabel:ai,value:wsdlUrlParamValue,columnWidth:1};a2.add(aQ);}}else{if(cn.toLowerCase()=="rule_name"){var ai=publicJson["paramNameObj"][cn];if(!Ext.isEmpty(ai)&&ai.lastIndexOf("#")>-1){ai=ai.substring(0,ai.length-1);
}var G={xtype:"fieldcontainer",fieldLabel:ai,labelSeparator:" ",layout:"column",items:[{xtype:"button",columnWidth:1,tooltip:ruleNameToolTip,iconCls:"iconConfigure",style:{background:"none",border:"0px"},listeners:{click:function(){testViews.createRulesForSyslog(b6);}}},{xtype:"hiddenfield",name:cn,id:cn,value:cX}]};
a2.add(G);}else{if(cn.toLowerCase()=="management_user"){var cr=publicJson["isManagedByChanged"];if(Ext.isEmpty(cr)){var bi=publicJson["tempUser"];if(bi!=null){cX=bi;}var bj=this.createTextBox(cn);a2.add(bj);Ext.getCmp(cn).setValue(cX);}else{var bi=publicJson["tempUser"];var bj=this.createTextBox(cn);
a2.add(bj);Ext.getCmp(cn).setValue(cX);}var aH=publicJson["selectedIsManagedBy"];if(!Ext.isEmpty(aH)&&aH!=undefined&&aH=="HMC"){var aa="none";aa=publicJson["tempUser"];if(Ext.isEmpty(aa)||aa==undefined){aa="none";}Ext.getCmp(cn).setValue(aa);}else{var aa="$unconfigured";aa=publicJson["tempUser"];if(Ext.isEmpty(aa)||aa==undefined){aa="$unconfigured";
}Ext.getCmp(cn).setValue(aa);}}else{if(cn.toLowerCase()=="target_diskio_rate"){diskIOParamValue=publicJson["targetDiskIOParamValue"];targetDiskIORateLabelArr=publicJson["targetDiskIORateLabelArr"];targetDiskIORateSelect=publicJson["targetDiskIORateSelect"];if(Ext.isEmpty(targetDiskIORateSelect)||targetDiskIORateSelect==undefined){targetDiskIORateSelect=targetDiskIORateLabelArr[0].valueField;
}var ai=publicJson["paramNameObj"][cn];if(!Ext.isEmpty(ai)&&ai.lastIndexOf("#")>-1){ai=ai.substring(0,ai.length-1);}var a3={xtype:"fieldcontainer",fieldLabel:ai,labelSeparator:" ",layout:"column",items:[{xtype:"scrollcombo",cls:"dropdown",id:"TargetDiskIORate_select",name:"TargetDiskIORate_select",displayField:"displayField",valueField:"valueField",value:targetDiskIORateSelect,queryMode:"local",editable:false,columnWidth:0.55,store:new Ext.data.Store({fields:["displayField","valueField"],data:targetDiskIORateLabelArr}),margin:"0 5 0 0"},{xtype:"textfield",cls:"textbox",id:cn,name:cn,columnWidth:0.45,value:diskIOParamValue}]};
a2.add(a3);}else{if((c8.toLowerCase()=="windowsharetest"||c8.toLowerCase()=="uncchecktest")&&cn.toLowerCase()=="sharename"){shareNameParamValue=publicJson["shareNameParamValue"];var cj=publicJson["btnLabel"+cn];var bh=publicJson["compNameWithoutNull"];var aN={xtype:"fieldcontainer",fieldLabel:cn.toUpperCase(),labelSeparator:" ",layout:"column",items:[{xtype:"button",iconCls:"iconConfigure",columnWidth:1,fieldLabel:cn.toUpperCase(),tooltip:label20,style:{background:"none",border:"0px"},listeners:{click:function(){testViews.configWindowShared();
}}}]};a2.add(aN);}else{if(aX&&(cn.toLowerCase()=="system_property_key"||cn.toLowerCase()=="system_property_value")){if(cn.toLowerCase()=="system_property_key"){var an=publicJson["sysPropKey"];var cL={xtype:"fieldcontainer",fieldLabel:sysPropLbl.toUpperCase(),labelSeparator:" ",layout:"column",items:[{xtype:"button",columnWidth:1,tooltip:tootipProperty,iconCls:"iconConfigure",style:{background:"none",border:"0px"},listeners:{click:function(){testViews.configSystemProperties();
}}},{xtype:"hiddenfield",name:cn,id:cn,value:an}]};a2.add(cL);}else{if(cn.toLowerCase()=="system_property_value"){continue;}}}else{if(cn.toLowerCase()=="email_id"){var ai=publicJson["paramNameObj"][cn];if(!Ext.isEmpty(ai)&&ai.lastIndexOf("#")>-1){ai=ai.substring(0,ai.length-1);}var F={xtype:"fieldcontainer",fieldLabel:ai,labelSeparator:" ",layout:"column",items:[{xtype:"button",columnWidth:1,tooltip:"Configure Email and Password",iconCls:"iconConfigure",style:{background:"none",border:"0px"},listeners:{click:function(){testViews.configEMailCredential();
}}},{xtype:"hiddenfield",name:cn,id:cn,value:cX}]};a2.add(F);}else{var bV=publicJson["multiUserOrNameParamValue"+cn];var cw=publicJson["readOnly"+cn];if(aC||aS){if(cB){var b4=publicJson["plusButton"+cn];var aG=publicJson["onBlurStr"+cn];var cG=publicJson["onFocusStr"+cn];var bQ=publicJson["onChangeStr"+cn];
if(!Ext.isEmpty(b4)&&b4!=undefined){var Q="";if(aC){Q=label16;if(cn=="Connection_server_name"){tooltipMsg=serverNameToolTip;}}else{Q=label17;}var b6=cn;var n={xtype:"fieldcontainer",fieldLabel:ai,labelSeparator:" ",layout:"column",items:[{xtype:"textfield",cls:"textbox",id:cn,name:cn,columnWidth:0.93,value:bV,readOnly:cw,margin:"0 5 0 0",listeners:{change:function(){if(aC){me.getUserChangedValue(this.id);
}else{if(aS){me.getNamePatternChangedValue(this.id);}}},focus:function(){if(aC){me.getUserValue(this.id);}else{if(aS){me.getNamePatternValue(this.id);}}},blur:function(){if(aC){me.checkMultipleUser(this.id);}else{if(aS){me.checkMultipleNamePattern(this.id);}}}}},{xtype:"button",iconCls:"iconAdd",columnWidth:0.07,tooltip:Q,style:{background:"none",border:"0px"},listeners:{click:function(){testViews.getPopUpView(b6);
}}}]};a2.add(n);}else{if((c8.toLowerCase()=="ctxxcxalogonsimtest"||c8.toLowerCase()=="hrznlogonsimtest"||c8.toLowerCase()=="hrznwlogonsimtest"||c8.toLowerCase()=="awslogonsimtest")&&cn.toLowerCase()=="published_resources"){var b6=cn;var H={xtype:"fieldcontainer",fieldLabel:ai,labelSeparator:" ",layout:"column",items:[{xtype:"button",columnWidth:1,tooltip:pubResourceToolTip,iconCls:"iconConfigure",style:{background:"none",border:"0px"},listeners:{click:function(){if(c8.toLowerCase()=="hrznwlogonsimtest"){testViews.configHorizonWSResourceSet();
}else{if(c8.toLowerCase()=="awslogonsimtest"){testViews.configAmazonWSResourceSet();}else{testViews.getPopUpView(b6);}}}}},{xtype:"hiddenfield",name:cn,id:cn,value:bV}]};a2.add(H);}else{var ao={xtype:"textfield",cls:"textbox",fieldLabel:ai,id:cn,name:cn,value:bV,readOnly:cw};a2.add(ao);if((c8=="CtxXcXALogonSimTest"||c8=="AWSLogonSimTest"||c8=="HrznLogonSimTest")&&cn=="Domain"){Ext.getCmp(cn).hide();
}}}}else{if(cn.toLowerCase()=="user_id"){var s={xtype:"textfield",cls:"textbox",id:cn,name:cn,fieldLabel:ai,value:cX,};a2.add(s);if(c8=="HrznWLogonSimTest"){Ext.getCmp(cn).hide();}}else{if(bV.length>20&&cC.toLowerCase()==""){var bl={xtype:"textarea",cls:"text-area",id:cn,name:cn,fieldLabel:ai,value:bV,readOnly:cw,rows:5};
a2.add(bl);}else{var c9={xtype:"textfield",cls:"textbox",id:cn,name:cn,fieldLabel:ai,value:bV,readOnly:cw};a2.add(c9);}if((c8=="CtxXcXALogonSimTest"||c8=="HrznLogonSimTest"||c8=="AWSLogonSimTest"||c8=="HrznWLogonSimTest")&&(cn=="Username"||cn=="Disclaimer")){Ext.getCmp(cn).hide();}}}}else{cX=publicJson["remainParamValue"+cn];
if((be||L||b)&&(cn=="snmpPort"||cn=="username"||cn=="context"||cn=="snmpCommunity"||cn=="snmpcommunity"||cn=="Jmx_Remote_Port"||cn=="Jndi_Name"||cn=="user"||cn=="JREHome"||cn=="LogFileName"||cn=="Jmx_user"||cn=="Java_Home"||cn=="Include_Packages"||cn=="Exclude_Packages"||cn=="Heap_Dump_Location"||cn=="userparams"||cn=="Provider")){var s={xtype:"textfield",cls:"textbox",id:cn,name:cn,value:cX,fieldLabel:cn.toUpperCase(),disabled:true,hidden:true,columnWith:1};
a2.add(s);if(b){if(cn=="userparams"){var by=Ext.getCmp("correct1").getValue();if(by){Ext.getCmp(cn).setDisabled(false);Ext.getCmp(cn).show();}}else{if(cn=="user"){Ext.getCmp(cn).setDisabled(false);Ext.getCmp(cn).show();}}}if(be){if(cn=="snmpPort"){snmpPortextValues=cX;}else{if(cn=="context"){snmpUserContextValues=cX;
}else{if(cn=="username"){snmpUserTextValues=cX;}else{if(cn=="snmpCommunity"||cn=="snmpcommunity"){snmpCommunityTextValues=cX;}}}}if(L){var aR=Ext.getCmp("mode1").getValue();var bW=Ext.getCmp("mode2").getValue();if(aR){if(cn=="snmpPort"){Ext.getCmp(cn).show();Ext.getCmp(cn).setDisabled(false);}var c5="";
if(!Ext.isEmpty(Ext.getCmp("snmpversion"))&&Ext.getCmp("snmpversion")!=undefined){c5=Ext.getCmp("snmpversion");}else{if(!Ext.isEmpty(Ext.getCmp("snmpVersion"))&&Ext.getCmp("snmpVersion")!=undefined){c5=Ext.getCmp("snmpVersion");}}if(!Ext.isEmpty(c5)&&c5!=undefined){var dd=c5.getValue();if(cn=="username"&&dd=="v3"){Ext.getCmp(cn).show();
Ext.getCmp(cn).setDisabled(false);}else{if(cn=="context"&&dd=="v3"){Ext.getCmp(cn).show();Ext.getCmp(cn).setDisabled(false);}else{if((cn=="snmpCommunity"||cn=="snmpcommunity")&&dd!="v3"){Ext.getCmp(cn).show();Ext.getCmp(cn).setDisabled(false);}}}}}else{if(bW){if(cn=="Jmx_Remote_Port"){Ext.getCmp("Jmx_Remote_Port").setDisabled(false);
Ext.getCmp(cn).show();}else{if(cn=="Jndi_Name"){Ext.getCmp("Jndi_Name").setDisabled(false);Ext.getCmp(cn).show();}else{if(cn=="Provider"){Ext.getCmp("Provider").setDisabled(false);Ext.getCmp(cn).show();}else{if(cn=="Jmx_user"||cn=="user"){Ext.getCmp(cn).setDisabled(false);Ext.getCmp(cn).show();}}}}}}var ca=Ext.getCmp("Heap_Analysis1");
if(!Ext.isEmpty(ca)&&ca!=undefined){var ch=Ext.getCmp("Heap_Analysis1").getValue();if(ch){if(cn=="Java_Home"){Ext.getCmp("Java_Home").setDisabled(false);Ext.getCmp(cn).show();}else{if(cn=="Include_Packages"){Ext.getCmp("Include_Packages").setDisabled(false);Ext.getCmp(cn).show();}else{if(cn=="Exclude_Packages"){Ext.getCmp("Exclude_Packages").setDisabled(false);
Ext.getCmp(cn).show();}else{if(cn=="Heap_Dump_Location"){Ext.getCmp("Heap_Dump_Location").setDisabled(false);Ext.getCmp(cn).show();}}}}}}}else{var c5="";if(!Ext.isEmpty(Ext.getCmp("snmpversion"))&&Ext.getCmp("snmpversion")!=undefined){c5=Ext.getCmp("snmpversion");}else{if(!Ext.isEmpty(Ext.getCmp("snmpVersion"))&&Ext.getCmp("snmpVersion")!=undefined){c5=Ext.getCmp("snmpVersion");
}}if(cn=="username"){snmpUserTextValues=cX;}else{if(cn=="context"){snmpUserContextValues=cX;}else{if(cn=="snmpCommunity"||cn=="snmpcommunity"){snmpCommunityTextValues=cX;}}}if(cn=="snmpPort"){Ext.getCmp(cn).show();Ext.getCmp(cn).setDisabled(false);}else{if(!Ext.isEmpty(c5)&&c5!=undefined){var dd=c5.getValue();
if(cn=="username"&&dd=="v3"){Ext.getCmp(cn).show();Ext.getCmp(cn).setDisabled(false);}else{if(cn=="context"&&dd=="v3"){Ext.getCmp(cn).show();Ext.getCmp(cn).setDisabled(false);}else{if((cn=="snmpCommunity"||cn=="snmpcommunity")&&dd!="v3"){Ext.getCmp(cn).show();Ext.getCmp(cn).setDisabled(false);}}}}}if(be){if(cn=="Jmx_user"||cn=="user"){Ext.getCmp(cn).setDisabled(false);
Ext.getCmp(cn).show();}}}}}else{var ai=publicJson["paramNameObj"][cn];if(!Ext.isEmpty(ai)&&ai.lastIndexOf("#")>-1){ai=ai.substring(0,ai.length-1);}var cw=publicJson["readOnly"];var ak=publicJson["descriptorButton"];if(!Ext.isEmpty(ak)&&ak!=undefined){var cm={xtype:"fieldcontainer",fieldLabel:ai,labelSeparator:" ",layouut:"column",items:[{xtype:"textfield",cls:"textbox",id:cn,name:cn,value:cX,columnWidth:0.9,readOnly:cw},{xtype:"component",columnWidth:0.1,html:"<center>"+ak+"</center>"}]};
a2.add(cm);}else{if(cX.length>30&&!cw){if((c8=="EgSyslogFilterTest"||c8=="EgSyslogFilterSvrTest"||c8=="DeviceSyslogMsgs")&&(cn=="facility"||cn=="filter_host"||cn=="level"||cn=="filter_logic"||cn=="exclude_Patterns")){var cp={xtype:"textfield",cls:"textbox",id:cn,name:cn,value:cX,fieldLabel:ai,hidden:true,readOnly:cw};
a2.add(cp);}else{var co={xtype:"textarea",cls:"text-area",id:cn,name:cn,value:cX,readOnly:cw,fieldLabel:ai,rows:5};a2.add(co);}}else{var c={xtype:"textfield",cls:"textbox",id:cn,name:cn,fieldLabel:ai,value:cX,readOnly:cw};a2.add(c);if((c8=="EgSyslogFilterTest"||c8=="EgSyslogFilterSvrTest"||c8=="DeviceSyslogMsgs")&&(cn=="facility"||cn=="filter_host"||cn=="level"||cn=="filter_logic"||cn=="exclude_Patterns")){Ext.getCmp(cn).hide();
}if((c8=="AsAbapWorkTest"||c8=="AsAbapWPCnfTest_cf")&&(cn=="timeout"||cn=="sapuser"||cn=="sysno"||cn=="clientname"||cn=="router"||cn=="instancename"||cn=="os_username"||cn=="wsdl_port")){var cg=Ext.getCmp("use_sapcontrol2");var bc=Ext.getCmp("use_sapcontrol");if(!Ext.isEmpty(cg)){var aL=cg.getValue();
if(aL){if(cn=="os_username"||cn=="os_password"||cn=="wsdl_port"){Ext.getCmp(cn).setDisabled(true);Ext.getCmp(cn).hide();}else{Ext.getCmp(cn).setDisabled(false);Ext.getCmp(cn).show();}}else{if(cn=="os_username"||cn=="os_password"||cn=="wsdl_port"){Ext.getCmp(cn).setDisabled(false);Ext.getCmp(cn).show();
}else{Ext.getCmp(cn).setDisabled(true);Ext.getCmp(cn).hide();}}}if(!Ext.isEmpty(bc)){var aL=bc.getValue();if(aL.toLowerCase()=="false"){if(cn=="os_username"||cn=="os_password"||cn=="wsdl_port"){Ext.getCmp(cn).setDisabled(true);Ext.getCmp(cn).hide();}else{Ext.getCmp(cn).setDisabled(false);Ext.getCmp(cn).show();
}}else{if(aL.toLowerCase()=="true"){if(cn=="os_username"||cn=="os_password"||cn=="wsdl_port"){Ext.getCmp(cn).setDisabled(false);Ext.getCmp(cn).show();}else{Ext.getCmp(cn).setDisabled(true);Ext.getCmp(cn).hide();}}else{Ext.getCmp(cn).setDisabled(false);Ext.getCmp(cn).show();}}}}if(cn=="Show_Exat_limit"){Ext.getCmp(cn).setDisabled(true);
Ext.getCmp(cn).hide();}if(cn=="Requests_Per_Day"){var cV=Ext.getCmp("Is_Trail1");if(!Ext.isEmpty(cV)){var bx=cV.getValue();if(bx){Ext.getCmp(cn).setDisabled(false);Ext.getCmp(cn).show();}else{Ext.getCmp(cn).setDisabled(true);Ext.getCmp(cn).hide();}}}if(c8.indexOf("JvmMemoryDetailsTest")>-1&&cn=="Target_Process_User_Name"){var bs=Ext.getCmp("Use_Sudo1");
if(!Ext.isEmpty(bs)){var bx=bs.getValue();if(bx){Ext.getCmp(cn).setDisabled(false);Ext.getCmp(cn).show();}else{Ext.getCmp(cn).setDisabled(true);Ext.getCmp(cn).hide();}}}if(cn=="Pojo_Method_Tracing_Limit"||cn=="Pojo_Method_Tracing_Cutoff_Time"||cn=="Recursive_Method_Tracing_Limit"||cn=="Non-Pojo_Method_Tracing_Limit"||cn=="Exception_Stacktrace_Lines"||cn=="Included_Exceptions"||cn=="Ignored_Exceptions"||cn=="Ignored_Characters"||cn=="Max_Grouped_Urls_Per_Measure_Period"||cn=="Key_Max_Grouped_Urls_Per_Measure_Period"||cn=="Max_Sql_Queries_Per_Transaction"||cn=="Max_Mongodb_Query_Length"||cn=="Exception_With_StackTrace_Capture_Limit"||cn=="Exception_FQEN_Capture_Limit"||cn=="Max_Sql_Error_Queries_Per_Transaction"||cn=="Max_Exception_Trace_Limit"||cn=="Mask_SQL"||cn=="Mask_Public_IP"||cn=="Mask_Private_IP"||cn=="Mask_URL_Params"){var cV=Ext.getCmp("Advanced_Settings1");
if(!Ext.isEmpty(cV)){var bx=cV.getValue();if(bx){Ext.getCmp(cn).setDisabled(false);Ext.getCmp(cn).show();}else{Ext.getCmp(cn).setDisabled(true);Ext.getCmp(cn).hide();}}}if(cn=="max_grouped_urls"){Ext.getCmp(cn).setDisabled(true);Ext.getCmp(cn).hide();}if(cn=="Maximum_Allowed_Grouped_Url_Per_Component"){Ext.getCmp(cn).setDisabled(true);
Ext.getCmp(cn).hide();}if(isAPMTest&&(cn=="Slow_URL_Threshold"||cn=="Stalled_URL_Threshold")){Ext.getCmp(cn).setDisabled(true);Ext.getCmp(cn).hide();}}}}}}}}}}}}}}}}}}}var bJ=publicJson["allowDetailedDiagnosis"];if(bJ){var S=publicJson["DDLabel"];var bn=publicJson["isTestDetailedDiagnosisDisabledGlobally"];
if(bn){var am=publicJson["isDisabledGlobalValue"];var br={xtype:"label",id:"detaileddiagnosisLabel",name:"detaileddiagnosisLabel",fieldLabel:S,value:am};a2.add(br);}else{var bg=publicJson["DDEnabled"];var ce=publicJson["DDDisabled"];var Z={xtype:"radiogroup",cls:"radiobt",fieldLabel:S,vertical:false,columns:2,items:[{boxLabel:"On",name:"detaileddiagnosis",id:"detaileddiagnosis1",inputValue:"On",checked:bg},{boxLabel:"Off",name:"detaileddiagnosis",id:"detaileddiagnosis2",inputValue:"Off",checked:ce}]};
a2.add(Z);}}var r={xtype:"container",id:"hiddenFieldContainer",layout:{type:"vbox",align:"center",pack:"center"},items:[]};var cK=publicJson["hiddenObj"];if(!Ext.isEmpty(cK)){var aE=new Array();Ext.getCmp("testConfigForm").add(r);for(k in cK){var bC={xtype:"hiddenfield",name:k,id:k,value:cK[k],};aE.push(bC);
}Ext.getCmp("hiddenFieldContainer").add(aE);}var cV=Ext.getCmp("Advanced_Settings1");if(!Ext.isEmpty(cV)&&cV!=undefined){var bx=cV.getValue();if(bx){var K=Ext.getCmp("Mask_SQL_radioGrp");K.setDisabled(false);K.show();var bt=Ext.getCmp("Mask_Public_IP_radioGrp");bt.setDisabled(false);bt.show();var bz=Ext.getCmp("Mask_Private_IP_radioGrp");
bz.setDisabled(false);bz.show();var c2=Ext.getCmp("Mask_URL_Params_radioGrp");c2.setDisabled(false);c2.show();}else{var K=Ext.getCmp("Mask_SQL_radioGrp");K.setDisabled(true);K.hide();var bt=Ext.getCmp("Mask_Public_IP_radioGrp");bt.setDisabled(true);bt.hide();var bz=Ext.getCmp("Mask_Private_IP_radioGrp");
bz.setDisabled(true);bz.hide();var c2=Ext.getCmp("Mask_URL_Params_radioGrp");c2.setDisabled(true);c2.hide();}}a2.show();Ext.getCmp("bottomToolBar").show();Ext.getCmp("updateBtn").setDisabled(false);}},btNamingConfig:function(){Ext.create("DefaultTestConfiguration.view.BusinessTransactionNaming").show();
me.getRulesData();},getRulesData:function(){var a=publicJson["testName"];var c=publicJson["selectedCompType"];var b=publicJson["selectedCompName"];Ext.Ajax.request({url:"DefaultTestConfiguration/data/EGBTNamingJson.jsp?compName="+b+"&compType="+c+"&testName="+a+"&crud=read&data=",method:"POST",async:false,success:function(p){if(p.status==200&&!Ext.isEmpty(p.responseText)){var m=p.responseText;
publicJSON=Ext.decode(m);for(var i in publicJSON["BTValues"]){var l=publicJSON["BTValues"][i]["Matching_URL_Pattern"];var g="";if(l.startsWith("*")&&l.endsWith("*")){g="CONTAINS";}else{if(l.startsWith("*")){g="ENDS WITH";}else{if(l.endsWith("*")){g="STARTS WITH";}else{g="EQUALS";}}}publicJSON["BTValues"][i]["Matching_URL_Pattern"]=g+" : "+l.split("*").join("");
var o=publicJSON["BTValues"][i]["Rule_Details"].split("~|~");var k="/";for(var j in o){if(o[j].startsWith("US")){o[j]=o[j].replace("=","");o[j]=o[j].replace("US","URL_SEGMENT #");}else{if(o[j].startsWith("HP")){var f=o[j].split("=")[1];var n=o[j].split("=")[0];var e=n.replace("HP_","");o[j]="REQUEST_PARAM_VALUE_FOR : "+f;
if(e!=undefined&&e.length>0){o[j]+=", WITH_REGEX : "+e;}}}k+=o[j]+"/";}publicJSON["BTValues"][i]["Rule_Details"]=k.substring(0,k.length-1);}var d=Ext.getCmp("resultPanel");var h=Ext.create("DefaultTestConfiguration.view.BusinessTransactionRuleGrid");d.removeAll();d.add(h);Ext.getCmp("btRulesGrid").getStore().loadRawData(publicJSON["BTValues"]);
if(Ext.isEmpty(publicJSON["BTValues"])){Ext.getCmp("updateSpecificConfig").hide();Ext.getCmp("updateSpecificConfigContainer").hide();}else{Ext.getCmp("updateSpecificConfig").show();Ext.getCmp("updateSpecificConfigContainer").show();}}}});me.btNamingConfigs();},btNamingConfigs:function(){Ext.Ajax.request({url:"DefaultTestConfiguration/data/defaulttesthelpJson.jsp?mode=businesstransactionnaming",method:"POST",async:false});
},resultPanelCreateRuleForm:function(){var b=Ext.getCmp("resultPanel");var a=Ext.create("DefaultTestConfiguration.view.BusinessTransactionRule");b.removeAll();b.add(a);Ext.getCmp("createRule").setText("Create Rule");},saveOrUpdateRule:function(){if(Ext.getCmp("createRule").getText()=="Create Rule"){me.createRule();
}else{me.updateRule();}},verifyCreateOrUpdateRule:function(d,e,f){if(Ext.isEmpty(d)){me.displayAlert("name",_checkempty);return false;}if(Ext.isEmpty(e)){me.displayAlert("nameURL1",_checkempty);return false;}for(var g in f){var c=Ext.getCmp("urlsegment_1_"+f[g]).getValue();var h=Ext.getCmp("urlsegmentNo_1_"+f[g]).getValue();
var b=Ext.getCmp("urlspecificsegmentNo_1_"+f[g]).getValue();var a=Ext.getCmp("urlParam_1_"+f[g]).getValue();if(c=="param"){if(Ext.isEmpty(a)){me.displayAlert("urlParam_1_"+f[g],_checkempty);return false;}}else{if((c=="1stFew"||c=="specific")){if(h<1){me.displayAlert("urlsegmentNo_1_"+f[g],onlypositive);
return false;}else{if(b<1){me.displayAlert("urlspecificsegmentNo_1_"+f[g],onlypositive);return false;}else{if(isNaN(h)){me.displayAlert("urlsegmentNo_1_"+f[g],onlyNumber);return false;}else{if(isNaN(b)){me.displayAlert("urlspecificsegmentNo_1_"+f[g],onlyNumber);return false;}}}}}}}return true;},createRule:function(b,l,m){var a=Ext.ComponentQuery.query("#urlPropsfieldset1  fieldcontainer");
var c=Ext.getCmp("name").getValue();var f=Ext.getCmp("nameURL1").getValue();var n=[];for(var g in a){var k=a[g].id.split("_1_")[1];if(!n.includes(k)){n.push(k);}}if(!me.verifyCreateOrUpdateRule(c,f,n)){return false;}var e=me.prepareCpcData(n);var j=publicJson["testName"];var d=publicJson["selectedCompType"];
var h=publicJson["selectedCompName"];if(e!=""){Ext.Ajax.request({url:"DefaultTestConfiguration/data/EGBTNamingJson.jsp?compName="+h+"&compType="+d+"&testName="+j+"&crud=create&data="+encodeURIComponent(e),method:"POST",async:false,success:function(i){if(Ext.decode(i.responseText)["ruleCreated"]){var o=Ext.getCmp("resultPanel");
me.getRulesData();}}});}else{}},displayAlert:function(a,b){Ext.Msg.show({title:businessTransNamingTitle,msg:b,buttons:Ext.MessageBox.OK,icon:"iconExclamation",fn:function(){Ext.getCmp(a).focus(true,true);}});},prepareCpcData:function(i){var h=Ext.getCmp("urlPropsfieldset1");var c=h.items.getCount();var e="";
if(!Ext.isEmpty(h)&&h!=undefined){var a=Ext.getCmp("nameURL1").getValue();var f=Ext.getCmp("name").getValue();if(Ext.getCmp("uri_1").value=="SW"){a=a+"*";}else{if(Ext.getCmp("uri_1").value=="EW"){a="*"+a;}else{if(Ext.getCmp("uri_1").value=="CON"){a="*"+a+"*";}else{if(Ext.getCmp("uri_1").value=="LIST"){a="*"+a;
a=a.replace(/,/g,"*,*");a=a+"*";}}}}if(a!=null&&a!=undefined&&a.length>0){var j=a+"~#~"+f;var b=this.preparePropsData("1",i);if(b.length>0){b="~!~"+b;e=e+j+b+",";}else{e=e+j+",";}}}if(e.length>0){var d=e.endsWith(",");if(d){var g=e.lastIndexOf(",");e=e.substring(0,g);}return e;}else{return"none";}},preparePropsData:function(o,l){var p=Ext.getCmp("urlPropsfieldset1").items.getCount();
if(p==undefined){return;}var k=true;var d=0;var n=1;var m="";var s=BTNamingSegmentCount+1;for(var h in l){var c=l[h];var e=Ext.getCmp("urlProperty_1_"+c);if(!Ext.isEmpty(e)&&e!=undefined){var b=Ext.getCmp("urlsegment_1_"+c).getValue();var q="";if(b!="param"){var a;if(b=="1stFew"){a=Ext.getCmp("urlsegmentNo_1_"+c).getValue();
var j;var t="";for(j=1;j<=a;j++){t+="US="+j+"~|~";}q=q+t;}else{a=Ext.getCmp("urlspecificsegmentNo_1_"+c).getValue();q=q+"US="+a+"~|~";}}else{if(b=="param"){var g=Ext.getCmp("urlParam_1_"+c).getValue();var i=Ext.getCmp("urlRegEx_1_"+c).getValue();if(i!=undefined&&(i=="none"||i.length==0)){q=q+"HP_="+g+"~|~";
}else{if(i!=undefined&&i.length>0){q=q+"HP_"+i+"="+g+"~|~";}}}}m=m+q;d++;}else{continue;}}var r=m.endsWith("~|~");if(r){var f=m.lastIndexOf("~");m=m.substring(0,f-2);}return m;},updateRule:function(){var c=Ext.getCmp("name").getValue();var g=Ext.getCmp("nameURL1").getValue();var h=Ext.getCmp("cpcVariable").getValue();
var f=Ext.getCmp("uri_1").getValue();if(f=="EQ"){g=g;}else{if(f=="SW"){g=g+"*";}else{if(f=="EW"){g="*"+g;}else{if(f=="CON"){g="*"+g+"*";}}}}cpcValue=g+"~#~"+c+"~!~";var b=Ext.ComponentQuery.query("#urlPropsfieldset1  fieldcontainer");var p=[];for(var j in b){var m=b[j].id.split("_1_")[1];if(!p.includes(m)){p.push(m);
}}for(var e in p){if(Ext.getCmp("urlsegment_1_"+p[e]).getValue()=="1stFew"){var q=Ext.getCmp("urlsegmentNo_1_"+p[e]).getValue();var n="";for(n=1;n<=q;n++){cpcValue+="US="+n+"~|~";}}else{if(Ext.getCmp("urlsegment_1_"+p[e]).getValue()=="specific"){cpcValue+="US="+Ext.getCmp("urlspecificsegmentNo_1_"+p[e]).getValue()+"~|~";
}else{if(Ext.getCmp("urlsegment_1_"+p[e]).getValue()=="param"){cpcValue+="HP_"+Ext.getCmp("urlRegEx_1_"+p[e]).getValue();var o=Ext.getCmp("urlParam_1_"+p[e]).getValue();if(o!=undefined&&!(o.length<1)){cpcValue+="="+o;}cpcValue+="~|~";}}}}cpcValue=cpcValue.substring(0,(cpcValue.length)-3);if(!me.verifyCreateOrUpdateRule(c,g,p)){return false;
}var l=publicJson["testName"];var d=publicJson["selectedCompType"];var k=publicJson["selectedCompName"];var a="DefaultTestConfiguration/data/EGBTNamingJson.jsp?compName="+k+"&compType="+d+"&testName="+l+"&crud=update&variable="+encodeURIComponent(h)+"&data="+encodeURIComponent(cpcValue);Ext.Ajax.request({url:a,method:"POST",async:false,success:function(i){me.getRulesData();
}});},handleDeleteIconClick:function(b,c,a){Ext.Msg.show({title:businessTransNamingTitle,msg:confirmDeleteRule,icon:"iconConfirmation",buttons:Ext.Msg.YESNO,fn:function(f){if(f=="yes"){var d=publicJson["testName"];var g=publicJson["selectedCompType"];var e=publicJson["selectedCompName"];var h="DefaultTestConfiguration/data/EGBTNamingJson.jsp?compName="+e+"&compType="+g+"&testName="+d+"&crud=delete&variable="+encodeURIComponent(Ext.getCmp("btRulesGrid").getStore().getAt(c).data["variable"]);
Ext.Ajax.request({url:h,method:"POST",async:false,success:function(i){me.getRulesData();}});}}});},callRulesDestroy:function(){},createRadioButton:function(b){var c=publicJson["paramNameObj"][b];if(!Ext.isEmpty(c)&&c.lastIndexOf("#")>-1){c=c.substring(0,c.length-1);}var a={xtype:"radiogroup",cls:"radiobt",id:b+"_radioGrp",fieldLabel:c,vertical:false,columns:2,items:[{boxLabel:"Yes",name:b,id:b+"1",inputValue:"true"},{boxLabel:"No",name:b,id:b+"2",inputValue:"false"}],};
return a;},createComboBox:function(b){var c=publicJson["paramNameObj"][b];if(!Ext.isEmpty(c)&&c.lastIndexOf("#")>-1){c=c.substring(0,c.length-1);}var a={xtype:"scrollcombo",cls:"dropdown",id:b,name:b,fieldLabel:c,value:"",queryMode:"local",displayField:"displayField",valueField:"valueField",editable:false,parent:this,store:new Ext.data.Store({fields:["displayField","valueField"],data:[]})};
return a;},createTextBox:function(b){var c=publicJson["paramNameObj"][b];if(!Ext.isEmpty(c)&&c.lastIndexOf("#")>-1){c=c.substring(0,c.length-1);}var a={xtype:"textfield",cls:"textbox",id:b,name:b,fieldLabel:c,value:"",columnWidth:1};return a;},getRuleNamesFromIni:function(c){var a=publicJson["testName"];
var e=publicJson["selectedCompType"];var d=publicJson["selectedCompName"];if(c){var b=Ext.getCmp("businesstransactionnaming");b.destroy();}Ext.Ajax.request({url:"DefaultTestConfiguration/data/EGBTNamingJson.jsp?compName="+d+"&compType="+e+"&testName="+a+"&crud=read&data=",method:"POST",scope:this,success:function(h){if(h.status==200&&!Ext.isEmpty(h.responseText)){var i=Ext.decode(h.responseText);
var f="";for(var g in i["BTValues"]){f+=i["BTValues"][g]["Rule_Name"]+" , ";}f=f.substring(0,f.length-2);Ext.getCmp("custom_bt_naming").setValue((f.length<1)?"None":f);}}});},createFieldContainerTextBox:function(b){var c=publicJson["paramNameObj"][b];if(!Ext.isEmpty(c)&&c.lastIndexOf("#")>-1){c=c.substring(0,c.length-1);
}var a={xtype:"fieldcontainer",id:c,name:c,fieldLabel:c,labelSeparator:" ",layout:"column",items:[{xtype:"textfield",cls:"textbox",id:b,name:b,columnWidth:1,value:""}]};return a;},configAmazonWSResourceSet:function(a){this.getController("DefaultTestConfiguration.controller.FunctionController").configAmazonWSResourceSet();
},configSystemProperties:function(a){this.getController("DefaultTestConfiguration.controller.FunctionController").configSystemProperties();},configHorizonWSResourceSet:function(a){this.getController("DefaultTestConfiguration.controller.FunctionController").configHorizonWSResourceSet();},configMultiHLSFieldSet:function(a){this.getController("DefaultTestConfiguration.controller.FunctionController").configMultiHLSFieldSet();
},configEMailCredential:function(a){this.getController("DefaultTestConfiguration.controller.FunctionController").configEMailCredential();},createRulesForSyslog:function(a){this.getController("DefaultTestConfiguration.controller.FunctionController").createRulesForSyslog();},egxmsconfig:function(a){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").egxmsIPsconfig(a);
Ext.getCmp("testConfigForm").body.scrollTo("top",250);},clearXMSIP:function(a){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").clearXMSIPs();},updateXMSIP:function(a){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").updateXMSIPs();
},callXMSDestroy:function(){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").callXMSIPsDestroy();},egvcconfig:function(a){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").egvcsconfig(a);},combosslVc:function(){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").combosslVcs();
},clearVc:function(a){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").clearVcs();},updateVc:function(a){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").updateVcs();},callVcDestroy:function(){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").callVcsDestroy();
},egnutconfig:function(a){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").egnutconfiginter(a);Ext.getCmp("testConfigForm").body.scrollTo("top",250);},clearNut:function(a){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").clearNutInter();
},updateNut:function(a){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").updateNutInter();},callNutDestroy:function(){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").callNutInterDestroy();},eghmcconfig:function(a){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").eghmcsconfig(a);
},clearHmc:function(a){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").clearHmcs();},updateHmc:function(a){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").updateHmcs();},callHmcDestroy:function(a){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").callHmcsDestroy();
},egrhevconfig:function(a){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").egrhevsconfig(a);},combosslrhev:function(){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").combosslrhevs();},clearRhev:function(a){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").clearRhevs();
},updateRhev:function(a){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").updateRhevs();},callRhevDestroy:function(){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").callRhevsDestroy();},getPopUpView:function(b){if(isPasswordProfileEnabled(publicJson.pwdParamSetList,b)){var a=passwordParamDisabled(publicJson.pwdParamSetList,b);
if(!Ext.isEmpty(a)){me.applyPwdProfile(Ext.getCmp(a.trim()));}}if(b=="user"){testViews.configMultiUsers();}else{if(b=="Connection_server_name"){testViews.configHorizonMultiUsers();}else{if(b=="name"){testViews.configurlnamepattern();}else{if(b=="admin_user"){testViews.vmgusers();}else{if(b=="Published_resources"){if(!Ext.isEmpty(testName)&&testName.toLowerCase()=="ctxxcxalogonsimtest"){testViews.configMultiSource();
}else{if(!Ext.isEmpty(testName)&&testName.toLowerCase()=="hrznlogonsimtest"){testViews.configMultiHLSFieldSet();}}}}}}}},vmgusers:function(){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").vmgusers();},addVmgUsr:function(){addContact();},ClearConfigUsrs:function(){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").ClearConfigUsr();
},UpdateConfigUsrs:function(){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").UpdateConfigUsr();},configMultiUsers:function(a){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").configMultiUser();},configHorizonMultiUsers:function(a){this.getController("DefaultTestConfiguration.controller.FunctionController").configHorizonMultiUsers();
},addMultiUsr:function(a){addMultiUsrContact();},ClearMultiConfigUsrs:function(){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").ClearMultiConfigUsr();},UpdateMultiConfigUsrs:function(){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").UpdateMultiConfigUsr();
},configMultiSource:function(a){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").interConfigMultiSource();},addMultiSource:function(a){addMultiSourceContact();},ClearMultiConfigSource:function(){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").interMultiSourceClr();
},UpdateMultiConfigSource:function(){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").interMultiSourceUpdate();},configCerdentialurl:function(a){plusButtonClicked="true";this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").configCerdentialurls();
},addCredUrls:function(a){addCredUrlContact();},clearCredUrls:function(a){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").clearCredUrl();},updateCredUrls:function(a){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").updateCredUrl();
},configurlnamepattern:function(a){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").configurlnamepatterns();},addUrlNames:function(a){addUrlNameContact();},clearUrlNames:function(a){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").clearUrlName();
},updateUrlNames:function(a){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").updateUrlName();},configWindowShared:function(a){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").configWindowShareds();},addWinShared:function(a){addWinSharedContact();
},clearWinShareds:function(a){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").clearWinShared();},updateWinShareds:function(a){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").updateWinShared();},configureWsdlUrl:function(){plusButtonClicked="true";
this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").configureWsdlUrls();},addWsdlUrl:function(a){addWsdlUrlContact();},clearWsdlUrls:function(a){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").clearWsdlUrl();},updateWsdlUrls:function(a){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").updateWsdlUrl();
},configRunTimePattern:function(a){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").configRunTimePatrn(a);},updateRuntimePatt:function(){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").updateRuntimePatern();},policyCreationMainPage:function(){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").policyCreationPage();
},configViewMainPolicy:function(){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").configViewPolicy();},policyMainSearch:function(){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").policySearch();},policyMainValidate:function(){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").policyValidate();
},openMainWindow:function(){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").openWindow();},windowCloseMainEvent:function(){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").windowCloseEvent();},check:function(a){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").checkInter(a);
},handleDeleteSelected:function(){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").handleDeleteSelectedInter();},handleEditIconClick:function(a,f,b,c,d){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").handleEditIconClickInter(a,f,b,c,d);
},handleViewIconClick:function(a,c,b){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").handleViewIconClickInter(a,c,b);},afterMainRender:function(){var a="DefaultTestConfiguration/data/EgConfigureDefaultTestParamsJson.jsp?";if(!Ext.isEmpty(compType)){a+="componentType="+encodeURIComponent(compType)+"&previousComponentType="+encodeURIComponent(compType);
}if(!Ext.isEmpty(testName)){a+="&testName="+encodeURIComponent(testName);}if(!Ext.isEmpty(testType)){a+="&testType="+encodeURIComponent(testType)+"&previousTestType="+encodeURIComponent(testType);}if(!Ext.isEmpty(Ext.getCmp("paramsContainer"))&&Ext.getCmp("paramsContainer").show()){Ext.getCmp("paramsContainer").removeAll();
Ext.getCmp("paramsContainer").hide();Ext.getCmp("updateBtn").setDisabled(true);Ext.getCmp("bottomToolBar").hide();}Ext.Ajax.request({url:a,method:"POST",scope:this,success:function(b){if(b.status==200&&!Ext.isEmpty(b.responseText)){var e=b.responseText;publicJson=Ext.decode(e);var c=publicJson["isConfigSupported"];
var f=publicJson["selectedCompType"];var d=publicJson["selectedTestType"];if(c){Ext.getCmp("testType").show();if(!Ext.isEmpty(d)){Ext.getCmp("testType").setValue(d);}else{Ext.getCmp("testType").setValue("PerformanceTest");}}else{Ext.getCmp("testType").hide();}Ext.getCmp("enableDisableBtn").update(publicJson["enableDisableTestPageLabel"]);
Ext.getCmp("componentType").getStore().clearFilter(true);Ext.getCmp("componentType").getStore().loadRawData(publicJson["compTypeArr"]);Ext.getCmp("testName").getStore().clearFilter(true);Ext.getCmp("testName").getStore().loadRawData(publicJson["testNameArr"]);if(!Ext.isEmpty(f)){Ext.getCmp("componentType").setValue(f);
Ext.getCmp("componentType").fireEvent("select",Ext.getCmp("componentType"));}else{Ext.getCmp("componentType").setValue(publicJson["compTypeArr"][0].valueField);Ext.getCmp("testName").setValue(publicJson["testNameArr"][0].valueField);}}}});},compTypeChangeEvent:function(){if(!Ext.isEmpty(Ext.getCmp("paramsContainer"))&&Ext.getCmp("paramsContainer").show()){Ext.getCmp("paramsContainer").removeAll();
Ext.getCmp("paramsContainer").hide();Ext.getCmp("updateBtn").setDisabled(true);Ext.getCmp("bottomToolBar").hide();}availPolicies="";var c=publicJson["isConfigSupported"];var d=Ext.getCmp("componentType").getValue();var b="";if(c){b=Ext.getCmp("testType").getValue();}if(Ext.isEmpty(d)){this.afterMainRender();
}else{if(!Ext.isEmpty(d)){var a="";if(!Ext.isEmpty(testType)){b=testType;a=testType;}else{a=publicJson["hiddenObj"]["previousTestType"];}if(!Ext.isEmpty(compType)&&!Ext.isEmpty(d)){if(compType!=d){a="";testName="";}}compType=d;Ext.Ajax.request({url:"DefaultTestConfiguration/data/EgConfigureDefaultTestParamsJson.jsp?cType_HelpPage="+encodeURIComponent(d)+"&componentType="+encodeURIComponent(d)+"&testType="+encodeURIComponent(b)+"&previousTestType="+encodeURIComponent(a),method:"post",scope:this,async:false,success:function(e){var i=e.responseText;
publicJson=Ext.decode(i);Ext.getCmp("enableDisableBtn").update(publicJson["enableDisableTestPageLabel"]);Ext.getCmp("testName").getStore().removeAll();Ext.getCmp("testName").getStore().clearFilter(true);Ext.getCmp("testName").getStore().loadRawData(publicJson["testNameArr"]);var g=publicJson["selectedTestName"];
var h=publicJson["selectedTestType"];var f=publicJson["isConfigSupported"];if(!Ext.isEmpty(testName)){Ext.getCmp("testName").setValue(testName);Ext.getCmp("testName").fireEvent("select",Ext.getCmp("testName"));}else{Ext.getCmp("testName").setValue(publicJson["testNameArr"][0].valueField);}if(f){if(!Ext.isEmpty(h)){Ext.getCmp("testType").setValue(h);
}else{Ext.getCmp("testType").setValue("PerformanceTest");}}}});}}},testNameChangeEvent:function(){if(!Ext.isEmpty(Ext.getCmp("paramsContainer"))&&Ext.getCmp("paramsContainer").show()){Ext.getCmp("paramsContainer").removeAll();Ext.getCmp("paramsContainer").hide();Ext.getCmp("updateBtn").setDisabled(true);
Ext.getCmp("bottomToolBar").hide();}var d=publicJson["isConfigSupported"];var f=publicJson["hiddenObj"]["previousComponentType"];var e=Ext.getCmp("componentType").getValue();var b=Ext.getCmp("testName").getValue();var c=Ext.getCmp("testType").getValue();availPolicies="";var g="DefaultTestConfiguration/data/EgConfigureDefaultTestParamsJson.jsp?";
if(Ext.isEmpty(e)){this.afterMainRender();}else{if(!Ext.isEmpty(e)&&Ext.isEmpty(b)){this.compTypeChangeEvent();}else{if(d){var a="";if(!Ext.isEmpty(testType)){c=testType;a=testType;}else{a=publicJson["hiddenObj"]["previousTestType"];}g+="cType_HelpPage="+e+"&componentType="+encodeURIComponent(e)+"&testName="+encodeURIComponent(b)+"&testType="+encodeURIComponent(c)+"&tName_HelpPage="+encodeURIComponent(b)+"&previousComponentType="+encodeURIComponent(f)+"&previousTestType="+encodeURIComponent(a);
}else{g+="cType_HelpPage="+encodeURIComponent(e)+"&componentType="+encodeURIComponent(e)+"&testName="+encodeURIComponent(b)+"&tName_HelpPage="+encodeURIComponent(b)+"&previousComponentType="+encodeURIComponent(f);}testName=b;Ext.Ajax.request({url:g,method:"POST",scope:this,async:false,success:function(h){var j=h.responseText;
publicJson=Ext.decode(j);var i=publicJson["isConfigSupported"];me.gotoBuildContainer();}});}}},testTypeChangeEvent:function(){if(!Ext.isEmpty(Ext.getCmp("paramsContainer"))&&Ext.getCmp("paramsContainer").show()){Ext.getCmp("paramsContainer").removeAll();Ext.getCmp("paramsContainer").hide();Ext.getCmp("updateBtn").setDisabled(true);
Ext.getCmp("bottomToolBar").hide();}var c=Ext.getCmp("componentType").getValue();var a=Ext.getCmp("testName").getValue();var b=Ext.getCmp("testType").getValue();availPolicies="";if(Ext.isEmpty(c)&&Ext.isEmpty(a)){this.afterMainRender();}else{if(!Ext.isEmpty(c)&&Ext.isEmpty(a)){this.compTypeChangeEvent();
}else{testType=b;Ext.Ajax.request({url:"DefaultTestConfiguration/data/EgConfigureDefaultTestParamsJson.jsp?cType_HelpPage="+encodeURIComponent(c)+"&componentType="+encodeURIComponent(c)+"&testName="+encodeURIComponent(a)+"&testType="+encodeURIComponent(b)+"&tName_HelpPage="+encodeURIComponent(a),method:"post",scope:this,async:false,success:function(d){var g=d.responseText;
publicJson=Ext.decode(g);Ext.getCmp("enableDisableBtn").update(publicJson["enableDisableTestPageLabel"]);Ext.getCmp("testName").getStore().removeAll();Ext.getCmp("testName").getStore().clearFilter(true);Ext.getCmp("testName").getStore().loadRawData(publicJson["testNameArr"]);var f=publicJson["selectedTestName"];
var e=publicJson["isConfigSupported"];if(!Ext.isEmpty(f)){Ext.getCmp("testName").setValue(f);Ext.getCmp("testName").fireEvent("select",Ext.getCmp("testName"));}else{Ext.getCmp("testName").setValue(publicJson["testNameArr"][0].valueField);}}});}}},winServiceConfig_pr:function(){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").winServiceConfigs_pr();
},updateService_pr:function(a){this.getController("DefaultTestConfiguration.controller.IntermediateDefaultController").updateServices_pr();},encodeFieldParams:function(e){var g="";var b=e.getFields().items;var d=publicJson["encodeParamList"];for(var c in b){var f=b[c].name;var a=b[c].value;if(Ext.isEmpty(f)||b[c].disabled||!me.isExistsParam(d,f)){continue;
}Ext.getCmp(b[c].id).submitValue=false;g+="&"+f+"="+encodeURIComponent(filterEncode(a));}return g.startsWith("&")?g.substring(1):g;},isExistsParam:function(d,c){var a,b;for(a=0,b=d.length;a<b;a++){if(d[a].toLowerCase()===c.toLowerCase()){return true;}}return false;}});function checkValidValue(c){var b=/^(\-)$|^(\-|\-?(([0-9]+\.|\.)?[0-9]+))$/i;
var a=b.test(c);return a;}function checkNegativeValue(c){if(c=="-"){c="0";}var b=/^\-([0-9]+\.|\.)?[0-9]+/;var a=b.test(c);return a;}function checkNegativeFormat(c){var b=/^(\-{0,1})[0-9]{1,6}(\.[0-9]{1,2})?$/;var a=b.test(c);return a;}function checkNonNegativeFormat(c){var b=/^[0-9]{0,6}(\.[0-9]{1,2})?$/;
var a=b.test(c);return a;}function JMXParamDisable(a){if(a!=null&&a!=undefined){a.setDisabled(true);a.hide();}}function JMXParamEnable(a){if(a!=null&&a!=undefined){a.setDisabled(false);a.show();}}function passwordParamEnabled(b,d,f){if(Ext.isEmpty(b)){return false;}var a=false;for(var c in b){var g=b[c];
if(!Ext.isEmpty(g)&&g.toLowerCase()==d.toLowerCase()){var e=Ext.getCmp(c).getValue();if(!Ext.isEmpty(e)&&e.toLowerCase()!="none"&&e.toLowerCase()!="-1"){f.reset();a=true;break;}}else{if(!Ext.isEmpty(g)&&g.toLowerCase().endsWith(","+d.toLowerCase())||g.toLowerCase().indexOf(","+d.toLowerCase()+",")!=-1||g.toLowerCase().startsWith(d.toLowerCase()+",")){var e=Ext.getCmp(c).getValue();
if(!Ext.isEmpty(e)&&e.toLowerCase()!="none"&&e.toLowerCase()!="-1"){f.reset();a=true;break;}}}}return a;}function isPasswordProfileEnabled(b,d){if(Ext.isEmpty(b)){return false;}var a=false;for(var c in b){var f=b[c];if(!Ext.isEmpty(f)&&f.toLowerCase()==d.toLowerCase()){var e=Ext.getCmp(c).getValue();
if(!Ext.isEmpty(e)&&e.toLowerCase()!="none"&&e.toLowerCase()!="-1"){a=true;break;}}else{if(!Ext.isEmpty(f)&&f.toLowerCase().endsWith(","+d.toLowerCase())||f.toLowerCase().indexOf(","+d.toLowerCase()+",")!=-1||f.toLowerCase().startsWith(d.toLowerCase()+",")){var e=Ext.getCmp(c).getValue();if(!Ext.isEmpty(e)&&e.toLowerCase()!="none"&&e.toLowerCase()!="-1"){a=true;
break;}}}}return a;}function getPwdProfileParamName(a,c){var e="";if(!Ext.isEmpty(a)){for(var b in a){var d=a[b];if(Ext.isEmpty(d)){continue;}if(d==c){e=b;break;}}}return e;}function passwordParamDisabled(b,d){if(Ext.isEmpty(b)){return;}var a="";for(var c in b){var f=b[c];if(!Ext.isEmpty(f)&&f.toLowerCase()==d.toLowerCase()){var e=Ext.getCmp(c).getValue();
if(!Ext.isEmpty(e)&&e.toLowerCase()!="none"&&e.toLowerCase()!="-1"){a=c;break;}}else{if(!Ext.isEmpty(f)&&f.toLowerCase().endsWith(","+d.toLowerCase())||f.toLowerCase().indexOf(","+d.toLowerCase()+",")!=-1||f.toLowerCase().startsWith(d.toLowerCase()+",")){var e=Ext.getCmp(c).getValue();if(!Ext.isEmpty(e)&&e.toLowerCase()!="none"&&e.toLowerCase()!="-1"){a=c;
break;}}}}return a;}function setNoneForDependsParams(e){if(!Ext.isEmpty(e)){for(var b=0;b<e.length;b++){var d=e[b];var c=Ext.getCmp(d);if(!Ext.isEmpty(c)){if(d.toLowerCase()=="inside_view_using"){continue;}else{c.setValue("None");}}}}}function showToPwdProfile(d,b){if(!Ext.isEmpty(d)){for(var c=0;c<d.length;
c++){var a=d[c];if(!Ext.isEmpty(a)){if(b){Ext.getCmp(a).show();Ext.getCmp(a).setDisabled(false);}else{Ext.getCmp(a).setDisabled(true);Ext.getCmp(a).hide();}}}}}function isMultiUserParamExists(b,e){var c=false;if(!Ext.isEmpty(b)){var f=b.split(",");for(var d=0;d<f.length;d++){var a=f[d];if(a.toLowerCase()==e.toLowerCase()){c=true;
break;}}}return c;}function checkParamIsUserField(b){var a=false;if(Ext.isEmpty(b)){return a;}if(b.toLowerCase()=="user"||b.toLowerCase()=="username"||b.toLowerCase()=="user_name"||b.toLowerCase()=="user"||b.toLowerCase()=="username"||b.toLowerCase()=="user_name"||b.toLowerCase().indexOf("user")!=-1){a=true;
}return a;}function checkParamIsDomainField(b){var a=false;if(Ext.isEmpty(b)){return a;}if(b.toLowerCase()=="domain"||b.toLowerCase()=="domainname"||b.toLowerCase()=="domain_name"||b.toLowerCase().endsWith("domain")||b.toLowerCase().endsWith("domain_name")||b.toLowerCase().endsWith("domainname")){a=true;
}return a;}function checkParamIsPasswordField(b){var a=false;if(Ext.isEmpty(b)){return a;}if(b.toLowerCase()=="password"||b.toLowerCase().endsWith("password")||b.toLowerCase().indexOf("pass")!=-1||b.toLowerCase().indexOf("password")!=-1){a=true;}return a;}