Displaying data

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

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

241241

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

800800

 

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.

259259

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 Autogenerated 'Manufacturer Detail' screen.
  2. Select the Products relationship column from the data source dropdown
12611261

Did this page help you?