Show TOC

Prioritizing UI ElementsLocate this document in the navigation structure

Get information about how to set the priority of elements displayed on SAP Fiori UIs.

To define the priority of elements, you can use the importance property of dataField-like annotations. This information is relevant for adaptive UIs. If a UI is displayed on a small screen, elements with low priority can automatically be hidden. To define importance, you can choose the following values:
  • #HIGH
  • #MEDIUM
  • #LOW
  • not set
Sample Code
...
define view ZExample_SalesOrder as select from sepm_cds_sales_order as so {
  @UI.identification: [ { position: 10, importance: #HIGH } ]
  key so.sales_order_id as SalesOrder,
  
  @UI.identification: [ { position: 20, importance: #MEDIUM } ]
  so.customer.company_name as CompanyName,
  
  @UI.identification: [ { position: 30, importance: #LOW } ]
  so.currency_code as CurrencyCode, 
  
  @UI.identification: [ { position: 40 } ]
  so.gross_amount as GrossAmount

  ...
}