Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP CDS UI Annotation Drop Down Select Single Value

ankeshjindal
Participant
0 Likes
3,834

Hi,

I have requirement to show dropdown via CDS UI annotation which is coming nice by using below annotation

@ObjectModel.resultSet.sizeCategory: #XS

But I have further query :

1) It is multi-Select, I want user to select only value from drop-down

2) Is there any way to put default value via CDS ui-annotation

Hi,

I have requirement to show dropdown via CDS UI annotation which is coming nice by using below annotation

@ObjectModel.resultSet.sizeCategory: #XS

But I have further query :

1) It is multi-Select, I want user to select only value from drop-down

2) Is there any way to put default value via CDS ui-annotation

1 REPLY 1
Read only

ankeshjindal
Participant
0 Likes
3,340

It got resolved

@Consumption.filter : { selectionType: #SINGLE }

and I have added defualt value through WebIDE through

<smartFilterBar:ControlConfiguration>