function hideShowGeneralTabAndFields(executionContext) {
var formContext = executionContext.getFormContext();
var platFormBased = formContext.getAttribute("platformbased").getValue();
var optionset = formContext.getAttribute("optionset").getValue();
if(platFormBased == true)
{
if (optionset == 11 && platFormBased == true) { //BDC
formContext.getControl("header_field1").setVisible(false);
formContext.getControl("header_field2").setVisible(true);
formContext.ui.tabs.get("General").sections.get("tab_10_section_1").setVisible(false);
formContext.ui.tabs.get("General").sections.get("General_section_2").setVisible(true);
}else if(optionset == 12 && platFormBased == true){ // FUND
formContext.getControl("header_field1").setVisible(true);
formContext.getControl("header_field2").setVisible(false);
formContext.ui.tabs.get("General").sections.get("tab_10_section_1").setVisible(false);
formContext.ui.tabs.get("General").sections.get("General_section_2").setVisible(true);
}
}else{
formContext.ui.tabs.get("General").sections.get("tab_10_section_1").setVisible(true);
formContext.ui.tabs.get("General").sections.get("General_section_2").setVisible(false);
}
}