cancel
Showing results for 
Search instead for 
Did you mean: 

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

09-23-2021 1:28 PM
893 views 1 comments
0 Likes
SAP Managed Tags
Subscribe

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

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

krantikartan
Discoverer
0 Likes

If you have solution please let us know here