What is a nested data source?

What is a nested datasource and when would you use it?

Regards, Edwin.

1 Like

Hi Edwin,

Nested datasource is an abstraction for working with entities that are loaded in an attribute of some other entity.
For instance you have entity Company which has several employees (attribute List employees).
You can define datasource for Company entity and also define nested datasource for employees attribute like this:

   <datasource id="companyDs"
                <collectionDatasource id="employeesDs"

In this case “employeesDs” is nested datasource. You can use it as normal datasource, for instance for displaying employees in the table.
You can read more about datasources in our documentation here

1 Like