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

Fixed value List with CDS annotations

Former Member
0 Likes
21,580

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
former_member383742
Participant
0 Likes

Hi Andrew,

This is an feature which I am also interested in it. I think for now there is only the implementation approach available to define such dropdown list. See here:

https://blogs.sap.com/2016/04/27/how-to-build-drop-down-list-based-on-fixed-value-defined-in-a-domai...

I hope that sun there will be a ABAP CDS View Annotation which you can add to element level and define a field as dropdown list.

Kind regards,

Catalin