WRDEntity2017::GetField (open)
Get a single field
Syntax
LOADLIB "mod::wrd/lib/internal/wrdentity.whlib";
VARIANT FUNCTION GetField(STRING field, RECORD options)
Parameters
STRING field
Tag of field to grab
RECORD options
Options
INTEGER cachettl
If set, use the adhoccache to cache the results for this number of milliseconds. The cache is invalidated when changes to this type are committed. Do not use within a same transaction that also modifies this WRD type.
STRING historymode
History mode. By default, all entities (even temporaries) are visible
DATETIME when
For history mode 'at', date when entities must be valid to be returned
DATETIME when_limit
For history mode 'range', limit of the range where entities must have been valid in to be returned
DATETIME when_start
For history mode 'range', start of the range where entities must have been valid in to be returned
Return value
VARIANT
Contents of the requested field