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. Read more about Initially Subscribe to Updates on Data Sources here.

General properties

Data source attributes

Visible when a Data Source is selected.

Last updated