Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

Generating a JSON Tree for SAPUI5 TreeTable

$
0
0

Hey,

 

I have to generate a hierarchical json from multiple tables (Database).

 

It will be used for a TreeTable (SAPUI5). Are there any functions in SAPUI5 or the MII Workbench which could be useful for me?

 

Example Data:

data: {  0: {  text: "Node 1"  parent_id: -1  },  1: {  text: "Node 2"  parent_id: -1  },  2: {  text: "Node 1|1"  parent_id: 0  },  3: {  text: "Node 2|1"  parent_id: 1  },  4: {  text: "Node 2|1|1"  parent_id: 3  },  5: {  text: "Node 1|2"  parent_id: 0  }
}

 

Thanks!

Regards Robin


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>