Click or drag to resize

SetValFlags Enumeration

Option flags for use with SetValue(Object, SetValFlags, Object).

Namespace:  NetQuarry.Data
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
[FlagsAttribute]
public enum SetValFlags
Members
  Member nameValueDescription
DoNotMakeDirty1Do not mark the field dirty as a result of this set. If the field is already marked dirty, the Dirty flag will not be cleared.
ClearDirty2Clear the field's Dirty flag.
DoNotSetOldVal4Do not set the OldValue.
ClearOldVal8Clear the OldValue.
FromDispText32The provided value is the display text (vs. underlying value) for the field's new value.
OnlyIfDiff64 Only set the field's value if the provided value differs from the field's current value. Treat the field's Dirty and OldValue appropriately depending on whether the value is set or not.
NoCtrlSet128Do not set the new value through to the provided or bound control.
FromDefault256Set the field's value to its DefaultValue.
FromControl512Set the field's value using the value of the provided or bound control.
InitOldValue1024Initialize the field's OldValue to this value.
Mapper2048The value is being set (initialized) by the field's mapper.
OnlyIfNullOrBlank4096 Only set the field's value if the current value is null (or a blank string). Treat the field's Dirty and OldValue appropriately depending on whether the value is set or not.
ByMapper3074Flags used when value is being initialized by the field's mapper.
ForFiltering8192 The value provided is a filter string. Normal type checking, validation, conversion does not apply.
InvariantCulture16384 The value is provided in the invariant culture.
OnlyIfNotLocked32768 Only set the field's value if the field is not locked in the current context. This is normally used when the IsStrictMode is set in order to enforce strict data security.
SetDefaultValue65536 Set the default value of the field, rather than the value.
UserFriendlyErr131072 If an error occurs while setting a value, throw a more user friendly error message vs. an error message intended more for a developer.
LogIfLocked262144 Devlog if the field's value is set and the field is locked in the current context. This is normally used when the IsStrictMode is NOT set in order to log possible data security breaches.
SetToAliases524288 After setting the value on the field, find any other fields in the mapper whose AliasName matches this field's Key and set the value on through to those as well.
OnlyIfKnown1048576 Set the field's value only if the provided value is found in the field's Picklist. Applies only when used in conjunction with FromDispText and is incompatible with NullIfUnknown.
NullIfUnknown2097152 Set the field's value to null if the provided value is not found in the field's Picklist. Applies only when used in conjunction with FromDispText and is incompatible with OnlyIfKnown.
AsShadowColumn4194304 This field is being used as a ShadowColumn and the provided value is the value from the shadow's referencing field. When set, the field should apply any ShadowAlgorithm to transform the data into its shadow form.
DateWithTimezone1048576 The value is a date/time value and the timezone to which that date/time applies is provided in param. The timezone may be specied using either a TimeZone object, or a timezone key (ID) such as an integer or string zero for UTC, or "." for the user's local timezone. The resulting field value will be the provided date/time converted to its storage timezone.
IgnoreDateTimeResolution2097152 Normally date/time changes are only saved if the change would affect the visible value. The primary intent of this is to NOT change a value where the seconds or milli-seconds is not shown, but exists. For example, if the user sees "7/1/15 8:00 am" but the underlying value is "7/1/15 8:00:30 am" we don't want a postback of "7/1/15 8:00 am" to clobber the seconds value. However, this can have the side-effect of eating some programmatic changes that are desired. When this attribute is set the precision is ignored and any change will be saved.
See Also