WRDSchema2017::SetupEntities (open)
Setup entities in the schema,
Syntax
LOADLIB "mod::wrd/lib/internal/wrdschema.whlib";
RECORD FUNCTION SetupEntities(RECORD ARRAY commands, RECORD options)Parameters
RECORD ARRAY commandsA list Entity creation commands
STRING createTag of the wrdtype to create
RECORD defaultsDefault values for unspecified entity cells
RECORD ARRAY entitiesA list of CreateEntity records. Will be merged with 'defaults' and any referencing field containing `:`` as a value will be looked up internally
STRING entities._nameName for the entity, used for references and in the return record
RECORD optionsOptions
RECORD continuesetupAn earlier SetupEntities result which we will be allowed to reference and will be merged into our result
Return value
RECORDA record containing the created entities by their _name