/// <summary> /// Returns the Export settings for an EForm /// </summary> /// <param name="eformName">The name of the EForm</param> /// <returns>Export Settings</returns> public static XmlServiceSettings GetEFormExportSettings(string eformName) { XmlServiceSettings settings = new XmlServiceSettings(); EformConfig config = EformConfig.GetByName(eformName); if (config != null) { string enableDuplicateTables = config.GetConfigurationValue("allowDuplicateRecords"); if (!string.IsNullOrEmpty(enableDuplicateTables)) { settings.EnableDuplicateRecords = enableDuplicateTables.Split(','); } } return(settings); }
/// <summary> /// Returns if eform navigation is visible by default /// </summary> /// <param name="eformName"></param> /// <returns></returns> public static bool ShownNavigation(string eformName) { EformConfig config = EformConfig.GetByName(eformName); string showNav = config.GetConfigurationValue("showNav"); if (!string.IsNullOrEmpty(showNav)) { return(bool.Parse(showNav)); } // default else { return(true); } }