on 06-13-2023 5:49 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.