
The Hierarchical List (Tree) component, being an FPM UIBB, takes part, when it is visible, in each FPM event loop. The Tree component may also raise FPM events itself from several sources.
These events are raised from the following sources:
A row selection may also raise an FPM event. It is possible to choose whether only a lead selection, or a normal selection raises an FPM event. For more information, see the system documentation in FLUID).
It is possible sort the Tree UIBB. However, the FPM framework provides only the handle for the sort event triggered on the UI by a user. As a result, an FPM event is triggered which can then be handled in the respective feeder class. Information such as the feeder class, the direction of the sort, and the column which is sorted are available as event parameters. The actual sorting of the data must be handled in the feeder class itself. Note that the master column of the Tree UIBB is not available for sorting. Sorting can be activated only for the other columns in the Tree. Additionally, sorting needs to be activated by the feeder class ( in the GET_DEFINITION method). The FPM event ID which is raised for sorting is FPM_SORT_TREE_COLUMN.
The feeder class, using method GET_DEFINITION, parameter FIELD_DESCRIPTION, and attribute ALLOW_SORT, determines which columns are available for sorting.
When this attribute is set to TRUE, the personalization dialog box enables the user to sort according to more than one column. It is recommended to set this attribute to TRUE although the default is FALSE (for compatibility reasons).
When this attribute is set to TRUE, the Personalization dialog box displays a Sorting tab. The recommended value is also TRUE.
Whether the sort feature is available or not is also determined by the configuration (General Settings panel in FLUID). Sorting is available only when the feeder class, and the configuration, allow it.At runtime, when a user triggers sorting, the following FPM event is raised: IF_FPM_GUIBB_TREE=>GC_EVENT_APPLY_RULES. The feeder class retrieves the current sort rule in the feeder class method GET_DATA. The parameter, IO_SERVICE_INFO, of type IF_FPM_TREE_SERVICE_INFO. Note that sort rules can be persisted by using the Personalization dialog box. That means that, even at startup, it is possible that sort rules already exist; this makes it necessary to use parameter IO_SERVICE_INFO to check for this first.
One-click actions are available in this component. For more information on one-click actions, see the section on the List ATS Component.
This is available only to components that are created in SAP NetWeaver 7.0 EHP3/7.31 SP4 onwards (which use the WD ABAP C-Table). For more information, see the documentation under this heading under the List ATS Component. However, note that this dialog box contains a restricted set of features for the Hierarchical List Component.