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:
Notice, in the image below, how the one data provider supplies two components with 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).
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.
One Manufacturer -> Many Products
- Add a Table Block nested below the Repeater of the Autogenerated 'Manufacturer Detail' screen.
- Select the Products relationship column from the data source dropdown
Updated 3 months ago