Creating navigation lists
In this recipe, we will see how we can display data in the form of a navigation list. The navigation list is similar to a tree. However, the nodes appear in expanded form when displayed and may not be compressed. The entire navigation list may be expanded and compressed (however, not the data nodes within it).
We assume that we have an internal DATA_TAB
table comprising of three fields, department
, pernr
, and sname
, containing the department name, employee number, and the employee names respectively in sorted order according to the department name.
How to do it...
We will now see the steps required to create a navigation list:
We will first create the context node related to the navigation list in the component controller. We create a context node by the name
NAVLIST
.The Init Lead Selection field must be set to
No
(since, in this case, we do not require lead selection and its initialization). The Singleton property of the node must be set asNo
. The Cardinality field...