Displaying data

After adding a data provider and selecting a datasource, the next step is to add a component that allows you to display your data. In many cases you will use one of the following components:

After adding a data provider, chart, and table, your component tree would look like:

Notice, in the image below, how the one data provider supplies two components with data:

Display user specific data

Sometimes, when building apps, you only want to display the data related to the user. For example, only show the sales records created by the user (specific salesperson). To do this, using the Data provider, in the settings panel, click the dropdown under the Data label, and under Relationships, select either Current User.Table-Created By or Current User.Table-Updated By.

I've created a quick video below to help demonstrate how to do this in Budibase (including a bonus conditional UI tip).


Displaying relational data

You can also use a relationship data source to access data from any table relationship.

For example, you may be viewing the details of a manufacturer, but also want to see a list of their products on the same screen.

Data
One Manufacturer -> Many Products

Design

  1. Add a Table block nested below the Repeater of the 'Manufacturer Detail' screen.
  2. Select the Products relationship column from the datasource dropdown.