cancel
Showing results for 
Search instead for 
Did you mean: 

f4 helps (field 1 and field 2) on my UI using CDS view annotations in rap

SowmyaSurekha
Explorer
0 Kudos

hi,

I created two f4 helps (field 1 and field 2) on my UI using CDS view annotations. I would like to get the values in field 2 based on the value selected in field 1.

Accepted Solutions (0)

Answers (1)

Answers (1)

juliandanho
Participant

Hi sowmyasurekha,

you can make this with additionalBinding in @Consumption.valueHelpDefinition. Here is a example how you could achieve this:

@Consumption.valueHelpDefinition: [{   
  entity: {     
element: '<element1>', name: '<CDS_View_for_Field1>'
} }] Field1; @Consumption.valueHelpDefinition: [{ entity: { element: '<element2>', name: '<CDS_View_for_Field2>' }, distinctValues: true, useForValidation: true, enabled: '', additionalBinding: [{ localParameter: '', localElement: '<element1>', localConstant: '', parameter: '', element: '<element1>', usage: #FILTER_AND_RESULT }] }] Field2;

I hope it will help you.

Kind regards
Julian Danho