routing - SAPUI5: Is it possible to map a folder like structure to a list control in sap.m Master view? -


i want map folder structure list control in sap.m master view.

please have @ thie demo app named shopping cart. see master->master->detail navigation. category products (product) detail.

i studied source code. navigation above realized using routing.

for projects, have similar. however, no simple m->m->d structure. data received in json form sap enterprise portal folder structure. each folder can have other folders or files. data structure like this, may have n levels of folders:

{ "root": [   { "name" : "folder a",   "iscollection": true,   "content" : [     { "name" : "sub folder a",       "iscollection": true,       "content" : [         {"filename":"ipsumprimisin.xls","datatype":"application/vnd.ms-excel"},{"filename":"idornare.mp3","datatype":"audio/x-mpeg-3"}       ]      }     ]   },   { "name" : "folder b",     "iscollection": true,     "content" : [       { "name" : "sub folder b",         "iscollection": true,         "content" : [           {"filename":"ipsumprimisin.xls","datatype":"application/vnd.ms-excel"}{"filename":"non.mov","datatype":"video/quicktime"}         ]       }     ]   } ] } 

please note, folder structure changing , might become more diverse , more deep on time.

an ideal solution dynamicly read, adapt , map json structure kind of sapui5 routing logic. possible? have router instance, loop through json structure, call addroute() on , dynamicly add folder route...

note: know how create json structure based on sap ep folders.

this solution: map json menu in openui5 works fine!

every time click on menu item call controller function open detail page or create every time new istance of menu on new master page.


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -