Hi All,
I'm new to UI5 and I'm trying to build a simple TreeTable control.
So I've created some dummy data, which is basically similar to the oData, I'm going to use in my project:
d: {
- results:
[
- {
- __metadata: {},
- type: "brand.cars.CarsType",
- uri: "id_test/testyourmight/services/articles.xsodata/Articles('9947358831881')"
- Gender: "9947358831881",
- CAR_ID: 1,
- DESCRIPTION: "descr 1",
- BRAND: "BRAND 162",
- CAR_GROUP: "SPORTS",
- CAR_TYPE: "CABRIO",
- CAR_CODE: "LUXURY",
- GENDER: "MEN"
{
},- __metadata: {},
- type: "brand.cars.CarsType",
- uri: "id_test/testyourmight/services/articles.xsodata/Articles('9947358831882')"
- Gender: "9947358831882",
- CAR_ID: 2,
- DESCRIPTION: "descr 2",
- BRAND: "BRAND 65",
- CAR_GROUP: "EVERYDAY",
- CAR_TYPE: "SEDAN",
- CAR_CODE: "BUSINESS",
- GENDER: "WOMEN"
{
},- __metadata: {},
- type: "brand.cars.CarsType",
- uri: "id_test/testyourmight/services/articles.xsodata/Articles('9947358831883')"
- Gender: "9947358831883",
- CAR_ID: 4,
- DESCRIPTION: "descr 4",
- BARAND: "BRAND 200",
- CAR_GROUP: "SOMEGROUP",
- CAR_TYPE: "SOMETYPE",
- CAR_CODE: "SOMECODE",
- GENDER: "WOMEN"
{
I want to create a table with tree in the first column
-SPORTS
-CABRIO
-LUXURY
-MEN
-EVERYDAY
-SEDAN
-BUSINESS
-WOMEN
-SOMEGROUP
-SOMETYPE
-SOMECODE
-WOMEN
and DESCRIPTION template in the second. After surfing the SCN threads and combining different opinions, I can understand some logic - find child nodes, then find root nodes, then bind child to root - here we go. But on practice, things getting more difficult. I can't understand logic as for finding child, nor root nodes. Especially, in building new array for storage of child or root nodes and cycle parameters.
Could you pls provide some information about this problem?




