/// <summary> /// Validates that the specified setting exists AND has a non-empty value /// </summary> /// <param name="setting">The name of the setting to validate</param> /// <exception cref="RequiredSettingMissingException"> /// The setting was not found /// </exception> protected void ValidateRequiredReportSetting(string setting) { if (SettingsUtil.FieldIsNotSet(this.CurrentReport.DataSourceSettings, setting)) { throw new RequiredSettingMissingException(setting, this.ExtensionContext); } }