Goup Tables and Nested Datasources

I’m new to Cuba and perhaps this is a silly question.
I have a structure of entities that have a composition relationship with the next one in a sort of thee.
I defined a view that represents the structure (see the picture).
At this point creating an UI based on a group table for the most external entity, I was expecting to be able to see all the columns with “name” of all the stances of the entities defined in the view, but only the fist level appeared.
I tried to define a nested data source for the screen, but the result does not change.
there is an option to obtain the result without having manually add the columns and having to code the corresponding queries?

Thank you

4-4-2017 12-56-12 PM

Hi Alessandro,

If you have defined a view containing attributes of related entities and have used it in a datasource, the datasource should contain all requested entities and attributes. In order to show nested entity attributes in a table, use dots (".") to define paths to them, for example:

<groupTable id="lanesTable"
        <column id="name"/>
        <column id="plaza.name"/>
        <column id="plaza.facility.name"/>
        <column id="plaza.facility.authority.name"/>
    <rows datasource="lanesDs"/>

Hope I understood your problem correctly.

1 Like