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 fieldsNames of the fields to return as a STRING ARRAY or a RECORD
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
RECORDRecord with a cell for each requested field (not all described)