Homelab, Linux, JS & ABAP (~˘▾˘)~
 

[CAP] Create value help with distinct values

using my.Model as db from '../db/data-model';

service myService @(requires: 'authenticated-user') {

    @readonly
    @cds.odata.valuelist
    entity uniqueValues as select from db.Table distinct {
        key field
    };
}

Leave a Reply

Your email address will not be published. Required fields are marked *