on 2023 Apr 20 8:36 AM
Hey,
I can't get a herarchy from my oData. What exactly did I do wrong?
<mvc:View
controllerName="TreeTable2.controller.View"
xmlns="sap.ui.table"
xmlns:m="sap.m"
xmlns:mvc="sap.ui.core.mvc">
<TreeTable
id="myTreeTable"
selectionMode="Single"
enableColumnReordering="false"
expandFirstLevel="false"
rows="{
parameters : {
countMode: 'Inline',
numberOfExpandedLevels: 1,
treeAnnotationProperties : {
hierarchyLevelFor : 'HierarchyLevel',
hierarchyNodeFor : 'NodeID',
hierarchyParentNodeFor : 'ParentNodeID',
hierarchyDrillStateFor : 'HierarchyDrillState'
}
}
}">
<columns>
<Column label="Description">
<template>
<m:Text text="{Description}" wrapping="false" />
</template>
</Column>
<Column label="HierarchyLevel">
<template>
<m:Text text="{HierarchyLevel}" wrapping="false" />
</template>
</Column>
<Column label="NodeID">
<template>
<m:Text text="{NodeID}" wrapping="false" />
</template>
</Column>
<Column label="ParentNodeID">
<template>
<m:Text text="{ParentNodeID}" wrapping="false" />
</template>
</Column>
<Column label="HierarchyDrillState">
<template>
<m:Text text="{HierarchyDrillState}" wrapping="false" />
</template>
</Column>
</columns>
</TreeTable>
</mvc:View>
onInit: function () {
var oTreeTable = this.getView().byId("myTreeTable");
oTreeTable.bindRows({
path: '/ZC_EMPLOYEE_TEST'
});
}<br>
regards
Tim
Did you have an answer ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
61 | |
11 | |
7 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.