Let's follow up this discussion at the Neptune Community

(this forum will be kept in read-only mode)
Answered

Recursive list

Hi, I need to implement a hierarchical list that shows the organization structure, the list can contain persons and other sub org units, when the user taps an org. unit the list should show the sub entries of the tapped org. and this list can contain again org. units and so on ... I'm not sure how to implement this with Neptune? regards Markus

Best Answer

Hi


I have been looking into something like this myself.

The only component I can see that is available in Neptune is the tree component.

Have a look at Neptunes example.

https://template.neptune-software.com/neptune/sdk/EXP_SAMPLE_TREE


In openui5 there is a tree table component but this is not available in neptune, or at least I could not find it.


Another cool control that is available in Sapui5 is the progress flow, but this is not available in neptune

https://sapui5.hana.ondemand.com/explored.html#/sample/sap.suite.ui.commons.sample.ProcessFlow/preview..


So, I would think that the tree would be your best bet.

Also, have a look at this example for your org structure.  It is an old post but it is something I implemented in our system many years ago.  It is a bsp example, but you could polish it up nicely with Neptune.


http://www.sapdev.co.uk/webapps/bsp/bsp_orgunit.htm


Hope this helps


Darren


Answer

Hi


I have been looking into something like this myself.

The only component I can see that is available in Neptune is the tree component.

Have a look at Neptunes example.

https://template.neptune-software.com/neptune/sdk/EXP_SAMPLE_TREE


In openui5 there is a tree table component but this is not available in neptune, or at least I could not find it.


Another cool control that is available in Sapui5 is the progress flow, but this is not available in neptune

https://sapui5.hana.ondemand.com/explored.html#/sample/sap.suite.ui.commons.sample.ProcessFlow/preview..


So, I would think that the tree would be your best bet.

Also, have a look at this example for your org structure.  It is an old post but it is something I implemented in our system many years ago.  It is a bsp example, but you could polish it up nicely with Neptune.


http://www.sapdev.co.uk/webapps/bsp/bsp_orgunit.htm


Hope this helps


Darren


1 person likes this

Hi Darren,


thank you for your response!


The Tree element is a desktop element, I would need sthg. for mobile environement :-(

I think it should be possible with a sap.m List, but I'm not shure how to realize a recursive navigation through the subnodes?


br

Markus

Hi Markus


I don't know what sthg is, but I did a quick test and implemented it into a mobile app, see image in a sap.m.dialog below


Hi,


wie sthg. i meant something :-)

Thank you for your example, but I think on an mobile phone it's not so easy to navigate through the tree (small phone, big hands :-))


br

Markus

Hi Markus,


You may use NavContainer to achieve it :


https://template.neptune-software.com/neptune/sdk/explored.html#sap.m.NavContainer


With 2 pages containing each one the same list (and named differently of course), each time you click on a line, you can filter and keep only the children elements of the parent clicked in the list of second page before displaying the second page and do the same recursively between page1 and page2 to go deeper in the hierarchy.


You may have to write a bit more of JavaScript to store in global variable the hierarchy level of the parent value and insure the back and forth navigation in this way.


Best regards.



PEB

Login or Signup to post a comment