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

Remove Duplicate Values from F4 help in CAP JAVA (CDS Odata V2 Annotations)

0 Likes
757

Hi All,

We have been using CAP JAVA odata V2 model to expose cds views. We have added certain annotations to support F4 help in the UI. But the F4 help is displaying all redundant values. In the below code Field 2 has redundant values. Is there any way to display unique values from field 2 in F4 help using cds annotations in cap java odata v2 model?

Service call{
entity test as select field1, field2 from TEST;

annotate test with {
    field2 @(Common : {
        FieldControl : #Mandatory,
        ValueList    : {
            CollectionPath  : 'test',
            Label           : 'Field2',
            SearchSupported : true,
            Parameters      : [
                {
                    $Type             : 'Common.ValueListParameterOut',
                    LocalDataProperty : 'field2',
                    ValueListProperty : 'field2'
                }
            ]
        }
    });

}


}

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

krantikartan
Discoverer
0 Likes

If you have solution please let us know here