cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Fixed value List with CDS annotations

Former Member
0 Likes
21,616

Hi,

I'm creating a Fiori app using fiori elements/templates and CDS annotations.

One of the fields requires a search-help value list, This just needs to be a drop down list with PASS and FAIL in it.

I have created another view that returns a table with these results and then create a foreign key association and linked the field to the value help

@Consumption.valueHelp:'_Result'

@ObjectModel:{foreignKey.association:'_Result',mandatory:true}

ZHEADER.qires,


This is working however the result is a two step search help (i.e. I click on the possible entries which brings up a dialog box where I then have to click go to show the list of entries as per below).

Is it possible to get the entries to appear as an immediate list similar to the one below?

Can this be done via annotations?

Any help much appreciated


View Entire Topic
janmattfeld
Participant

Annotate your value help CDS view with

@ObjectModel.resultSet.sizeCategory: #XS

This will automatically create the fixed-values metadata annotation and shows a dropdown in Fiori Elements.