cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 Tree. Can you expand a sap.m.tree via a navigation property?

adamharkus
Participant
0 Kudos
260

I've set up a sap.m.tree bound to a 'Blocks' entity of an oData service.

This pulls in all of the 'Blocks' data fine.

However, the Blocks entity has a nav to the ChildBlocks entity, which I want to show when expanding the tree.

How can this be done with sap.m.tree ?

I've tried the below code, to no avail.

  <Tree id="nodes"
items="{path: '/Blocks',
templateShareable:true,
properties: {
navigation: {
ChildBlocks : '/ChildBlocks'
}
}

I get the below error

Neither navigation paths parameters, nor (complete/valid) tree hierarchy annotations where provided to the TreeBinding. 

Accepted Solutions (0)

Answers (0)