Show TOC

Enabling the Search Feature in the Tree ComponentLocate this document in the navigation structure

Like the List ATS UIBB, the Tree UIBB can activate a search function within its toolbar.

Unlike the List ATS UIBB, in which the search function can be activated simply by selecting the Search Function field in the General Settings panel in FLUID, the search function for the Tree UIBB requires the application to prepare the data before the search.

As the search is performed by the Tree UIBB on all rows (including those rows which might be concealed under collapsed nodes), the application must decide when it should retrieve all of the data. The feeder class must inform the Tree UIBB, using the SEARCH attribute in the feeder class method GET_DEFINITION, parameter ES_OPTION, which of the following options it chooses:
  • Retrieve all data on start-up

    For this, the application must assign the following value to the SEARCH attribute: IF_FPM_GUIBB_TREE=>GC_SEARCH_OPTIONS-ENABLED.

  • Retrieve all data when the search is executed

    For this, the application must assign the following value to the SEARCH attribute: IF_FPM_GUIBB_TREE=> GC_SEARCH_OPTIONS-DYNAMIC.

    When the search is executed, the Tree UIBB raises the FPM event IF_FPM_GUIBB_TREE=>LOAD_ALL_DATA. This is the signal for the feeder class to provide all data in method GET_DATA.

Now you can activate the search function for the Tree UIBB in FLUID.

Note Unlike the search function in the List ATS UIBB which offers two types of search (find and filter), the Tree UIBB offers only one search flavor, that is, the find type.

This feature is possible due to the text marker properties of the Web Dynpro ABAP UI element, the C-Table. For more information, see C Table Properties in the SAP Help Portal (help.sap.com).