cancel
Showing results for 
Search instead for 
Did you mean: 

Suggestion values on Fiori Elements Selection Field with CDS-View

beat_birrer
Explorer

Hello,

I'm using a CDS-View with annotations to generate an oData-Service. So I haven't a mpc_ext class to redefined the "define-method" for adding some oData-Annotations. My CDS-View contains UI.LineItem- and UI.SelectionField-Annotations. Further I have an association which I used for a valueHelp. With this oData-Service I'm able to create a List Report Application in the WebIDE. The App generates a SmartTable and a SmartFilterBar. Everything works fine.

But I've seen the SmartTable-Example on the SAPUI5-Expored page. There are suggestion values on the input field of the SmartFilterBar. I know the SmartFilterBar is interpreting the oData-Metadata and annotations.

So now my question is: How can i annotate the CDS-View to get suggestion values on a selection field in the app?

Thanks for your help.

Regards,

Beat

FabioPagoti
Active Contributor
0 Kudos

Same problem for me

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hello

it definitely depends on what kind of associated view you are using, if you require to see something like a key field and a Text then you might need to implement a so called helper View specifically for this,

_ValueHelp_View1

and then annotate that field with annotation below

 @Consumption.valueHelp: '_ValueHelp_View1'

don't forget to publish that association

BR

Kairat Alaichiev

Answers (1)

Answers (1)

Jocelyn_Dart
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Beat,

Can you point to exactly what you mean or include a screenshot ? I'm guessing you mean the default keyword search field which is controlled by the annotation DefaultSearchElement ? Or is it something else?

Rgds

Jocelyn