Show TOC

Selection FieldsLocate this document in the navigation structure

Get information about what UI annotations to use to work with selection fields for SAP Fiori UIs.

Figure 1: Example of selection fields for filtering

If a CDS is annotated as @Search.searchable, the UI automatically takes this is into consideration and no additional UI annotations are required to expose a search field or a value help.If your table or list contains many data and therefore many rows, it gets hard to find the information you need. To facilitate finding the desired information, you can use selection fields to specify the range of information that you are looking for.

Figure 2: Example for @Search.searchable annotation
If your table or list contains many data and therefore many rows, it gets hard to find theYou can use the following UI annotation to enable specific elements for selection, for example using a filter bar:
  • @UI.selectionField
    Sample Code
    ...
    define view ZExample_SalesOrder as select from sepm_cds_sales_order as so {
      key so.sales_order_id as SalesOrder,
      
      @UI.selectionField: [ { position: 10 } ]
      so.customer.company_name as CompanyName,
      
      ...
    }