Skip to Content
0

How to define tree table annotation (XML view)?

Oct 29, 2017 at 07:09 PM

134

avatar image
Former Member

I have defined tree table same as shown in UI5 demo kit sample.

<t:TreeTable id="TreeTableHeader" selectionMode="Single" enableColumnReordering="false" expandFirstLevel

"false" rows="{ path : '/SearchSet', parameters : { countMode: 'Inline',
treeAnnotationProperties : {

hierarchyLevelFor : 'HierarchyLevel',

hierarchyNodeFor : 'NodeID',

hierarchyParentNodeFor : 'ParentNodeID',

hierarchyDrillStateFor : 'DrillState' } } }" >


I am confused about "tree annotations properties" here.
My data coming from oData is as follow



I have tried defining annotations in MPC_EXT as shown in this blog https://blogs.sap.com/2015/10/23/treetable-odata-binding/

but it is calling same oData again when you expand any node.
I have tried one sample project in reference to UI5 sample application "tree table using mockserver", It works fine but not when i use my oData.

Can anyone explain about "tree annotation properties" where i need to maintain it?

capture1.png (35.5 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers