In Jerry’s previous article on how to quickly create a Fiori Elements application in SAP BTP from a CDS view, we have created a Fiori Elements application based on the CDS view:

In this article, we add a value help to the Agency ID selection field.

Now Agency ID Selection ID, after clicking F4, value help does not work:

Add the following highlighted comment to the agencyID field:

@Metadata.layer: #CORE
annotate view Z_C_TRAVEL_DATA_JERRY with
{
  @UI           : {
      lineItem      : [{position: 10, importance: #HIGH}],
      selectionField: [{position: 10 }]
  }
  TravelID;
  @UI           : {
      lineItem      : [{position: 15, importance: #HIGH}],
      selectionField: [{position: 20 }]
  }
  @Consumption.valueHelpDefinition: [{  entity: {name: '/DMO/I_Agency', element: 'AgencyID'}  }]
  AgencyID;
  @UI           : {
      lineItem      : [{position: 60, importance: #HIGH}]
      }
  Memo;
}

At the same time, the /DMO/I_Agency used by value help in the Service Definition is also exposed:

When activated, refresh the Fiori Elements UI and the Value Help should work properly:

More of Jerry’s original articles can be found on “Wang Zixi “: