WRDEntity2017::GetField (open)
Get a single field
Syntax
LOADLIB "mod::wrd/lib/internal/wrdentity.whlib";
VARIANT FUNCTION GetField(STRING field, RECORD options)Parameters
STRING fieldTag of field to grab
RECORD optionsOptions
INTEGER cachettlIf 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 historymodeHistory mode. By default, all entities (even temporaries) are visible
DATETIME whenFor history mode 'at', date when entities must be valid to be returned
DATETIME when_limitFor history mode 'range', limit of the range where entities must have been valid in to be returned
DATETIME when_startFor history mode 'range', start of the range where entities must have been valid in to be returned
Return value
VARIANTContents of the requested field