Block: EntityDataStore

The EntityDataStore block is used to store multiple data entities with a common set of properties.

EntityDataStoreConfig

PersistedEntityDataStoreConfig

Name Type Required Description
kind "EntityDataStore" Yes
persistToStore string Yes
properties Dictionary<string, PrimitiveEntityProperty> Yes Define the schema of the entities. For every entry key there must be a matching property
subscribe List<EntityDataStoreSubscribe> No

PrimitiveEntityProperty

Name Type Required Description
type "String" | "Number" Yes Entities values must have a predefined type.

LocalEntityDataStoreConfig

Name Type Required Description
kind "EntityDataStore" Yes
properties Dictionary<string, EntityProperty> Yes Define the schema of the entities. For every entry key there must be a matching property
entities StaticEntities | ImportedEntities Yes Define entities as static records or load entities from a csv file. Entities should match the schema defined by properties
subscribe List<EntityDataStoreSubscribe> No

StaticEntities

EntityProperty

Name Type Required Description
type "String" | "Number" | "Image" | "AutoId" Yes Entities values must have a predefined type. If type is set to AutoId the value will be autogenerated

ImportedEntities

Name Type Required Description
fromCsvFile string Yes

EntityDataStoreSubscribe

EntityDataStoreControlPanelSubscribe

Name Type Required Description
kind "ControlPanel" Yes Trigger an update to the filter set on any change in the control panel
frame string Yes
source string Yes
action "Insert" | "Update" No

EntityDataStoreEntityTableSubscribe

Name Type Required Description
kind "EntityTable" Yes
frame string Yes
source string Yes
selectOn List<string> No