Data adapters & private variables
  • 23 May 2022
  • 1 Minute to read
  • Dark
    Light
  • PDF

Data adapters & private variables

  • Dark
    Light
  • PDF

Article Summary

Data adapters

image.png

A data adapter works as a connector between the data component and a data resource in the app. By using the adapter, the component can perform operations on the connected resource via its internal data flow functions.

The adapter schema can be fixed, requiring a certain number of fields with fixed types, or arbitrary, specifying only accepted field types and a minimum/maximum number of fields.

Fixed data adapter - A data adapter schema that expects the connected data resource to have a certain number of fields with known types.
Arbitrary data adapter schema - A data adapter schema that allows a flexible number of fields. The minimum and maximum number of fields and accepted field types can be set when creating the adapter.

Private variables

image.png

A private data variable only exists within the context of a single data component. It works together with the data adapter similarly to a data variableworking together with a data resource. The value of a private data variable can be set with the ‘Set private data variable’ flow function in Component template editor. Similarly to data variables, private data variables come in two types: List of objects and Single object.


Was this article helpful?