Click or drag to resize

FieldExpressionAttrs Enumeration

Attributes used when resolving field reference expressions. Each of these attributes corresponds to a modifier flag character. See the ExpressionParser class for more information about field references.
  • [$keyname] - DisplayText - Use the field's display text rather than its raw value (obtained via DisplayTextGet(DispTextFlags)).
  • ['keyname] - AnsiQuote - AnsiQuote the value using AnsiQuote(String).
  • [`keyname] - DoubleQuote - Enclose the field value in double-quote '"' characters (this is a back-tick character).
  • [#keyname] - Numeric - The value is a numeric value and should be rendered as zero "0" if the value is null/empty.
  • [<keyname] - UseOldValue - Use the OldValue if the field is dirty.
  • [&keyname] - UseCaption - Use the field's Caption instead of its value.
  • [?keyname] - EscapeForUrl - The field's value should be escaped for use in a URL using ForUrl(String).
  • [@keyname] - EscapeForHtml - The field's value should be escaped for use in HTML using ForHtml(String).
  • [^keyname] - ApplyDefault - Use the field's DefaultValue if the field's value is null/empty.
  • [+keyname] - EscapeForXML - The field's value should be escaped for use in XML using ForXml(String).
  • [*keyname] - RawValue - Use the field's raw value (obtained via Value), implied if no other option specified.
  • [~keyname] - ClientElement - Renders as a javascript expression accessing the field. Often combined with either '$' or '*' attributes to obtain the client-side display or raw values respectively.
  • [:keyname] - Optional - Value is optional and should default to zero or empty string, as appropriate.
  • [-keyname] - Guid - The value is a GUID value and should be rendered as the zero GUID "{00000000-0000-0000-0000-000000000000}" if the value is null/empty.

Namespace:  NetQuarry.Data
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
[FlagsAttribute]
public enum FieldExpressionAttrs
Members
  Member nameValueDescription
DisplayText1$ = Use DisplayText
AnsiQuote2' = AnsiQuote
DoubleQuote4` (back tick) = Double quote
Numeric8# = Use zero if null or empty
UseOldValue16< = Use old value if dirty
UseCaption32& = Use label
EscapeForUrl64? = Escape for use in URL
EscapeForHtml128@ = Escape for HTML
ApplyDefault256^ = Use default if no value found
EscapeForXML512+ = Escape for XML
RawValue1024* = Raw Value (also implied if no other option specified)
ClientElement4096~ = Client Element. Often combined with either '$' or '*' attributes to obtain the client-side display or raw values respectively.
Optional8192: = Value is optional and should default to zero or empty string, as appropriate.
Guid16384- = Use zero-GUID "{00000000-0000-0000-0000-000000000000}" if null or empty.
See Also