WHFSType::Enrich (open)

Enrich a record array with values from this type in bulk

Syntax

LOADLIB "mod::system/lib/internal/whfs/contenttypes.whlib";

RECORD ARRAY FUNCTION Enrich(RECORD ARRAY inrows, STRING idcellname, STRING ARRAY fields, RECORD options)

Parameters

RECORD ARRAY inrows

Input rows to enrich

STRING idcellname

Name of the cell in the inrows that contain the fs_object id. Append '[]' if the cell is an array of values, use <cellname>.<innerarray> to enrich inner arrays.

STRING ARRAY fields

Fields to retrieve

RECORD options

Options

BOOLEAN orphans

Get orphan members too

BOOLEAN rightouterjoin

No effect - getting instancedata always succeeds.

STRING wrapfields

If not empty, wrap the enriched fields in a cell with this name (when the idcell is an array, insert enriched values into this cell).

Return value

RECORD ARRAY

Enriched rows