WRDEntity2017::GetFields (open)
returns all requested fields of the entity with the given find_id
Syntax
LOADLIB "mod::wrd/lib/internal/wrdentity.whlib";
RECORD FUNCTION GetFields(VARIANT fields, RECORD options)
Parameters
VARIANT fields
Names of the fields to return as a STRING ARRAY or a RECORD
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
RECORD
Record with a cell for each requested field (not all described)