Set data source attributes

The Set data source attributes action node updates a selection of attributes that determine the contents and behavior of a data source. It is often used to optimize app performance.

Usage

This action node can control the number of objects read in to an app at runtime. It is useful for data sources that could potentially contain many objects or data sources that are not frequently used. It is often used in conjunction with the following attributes set directly on the data source:

  • Initially skip object count

  • Initially limit object count

  • Initially subscribe to updates

  • Initially disabled

Disabled

This attribute can be used to control if objects are read into a data source or not. This can be used to implement lazy loading of data, enabling the data source only when a user performs a particular action. For example, if you have a data source Company Log and you only need this data when the user clicks a View History button, you can have the data source initially disabled and enable it if the user clicks the button.

Limit

Limit can be used to control the number of objects in a data source. For example, if you want to want to implement infinity scrolling for a client user you can use initially limit object count and update the limit value to show more objects when a user scrolls in a container.

Skip

Skip is used to control which objects are read into a data source. For example, if you want to implement pagination for a client user to browse the contents of a data source you can use skip in conjunction with limit. As the user switches between pages you can update the skip value based on the page the user is on. You can let them specify the number of objects to show per page by updating the limit value.

Initially subscribe to updates

This attribute can be used to automatically refresh the contents of a data source based on changes made by other users. This can have a performance impact, so it should only be used when necessary.

General properties

PropertyDescription

Data Source

The data source on which to set the attributes.

Data source attributes

Visible when a Data Source is selected.

PropertyDescription

Disabled

Set whether the data source is disabled or not. If a data source is disabled, it will be empty.

Limit

Set the maximum number of objects that can be in the data source.

Skip

Set the number of objects to skip when reading objects into the data source. For example, if Skip is set to 2, the first 2 objects in the database that would normally qualify for the data source are ignored.

Subscribe to Updates

Set if the data source will update when a change is made by another user.

Last updated