7777
7777

Reputation: 1

How to specify two level expand parameter in sap.ui.table?

Using the below code I am able to populate values in the ANav only.What is the syntax for specifying inner Navigation property expand also.?

<Table id="table" selectionMode="MultiToggle" enableSelectAll="false"
            rows="{path: 'data>/ParentEntity', parameters : {expand : 'ANav/BNav'}}"
            enableBusyIndicator="true" visibleRowCount="15" threshold="100" width="auto" height="auto" noDataText="No Data">

Upvotes: 0

Views: 675

Answers (1)

Thomas L.
Thomas L.

Reputation: 249

Since you have got a named model "data" you have to specify this model also in your expand parameter:

<Table id="table" selectionMode="MultiToggle" enableSelectAll="false"
        rows="{path: 'data>/ParentEntity', parameters : {expand : 'data>ANav/BNav'}}"
        enableBusyIndicator="true" visibleRowCount="15" threshold="100" width="auto" height="auto" noDataText="No Data">

Upvotes: 1

Related Questions