on ‎2016 Mar 17 11:05 AM
Hi Experts,
I have created a SAPUI5 application which mock json data, the master page is in tree structure as shown in image, image1 which is working fine.
The excel sheet snapshot is my mock json representation, using this data only i am creating my mock json.
Now the same application has to be build using odata service as backend(without using mock json data). How could i able to give my master page view as a tree structure in a odata service. Please guide me and help me.
Request clarification before answering.
Gowtham,
I had a similar scenario and considered two options.
1- To create a SICF json service using regular REST classes and convert ABAP to json. (No Gateway here)
2- Send data to frontend as a regular OData query. In each row have a column to indicate the parent ID. Now at client side, write a piece of js code to convert this data into hierarchical json.
I went with the second option, as I was not too familiar with creating JSON from Internal table.
Regards
Krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.