on 07-14-2023 10:58 AM
Hello gurus,
I am using below entity in a list report fiori elements application. I would like to make the product field unique by itself where the user can not enter/save the same product more than one time. I tried to use @assert.unique annotation however it did not make any change during the save function. Can anyone guide/explain (to) me on why it does not work?
@assert.unique: {productUnique: [product]}
@cds.autoexpose
entity Product : managed
{
key id : UUID;
product : String;
productDetail : Composition of many
{
key id : UUID;
plant : String; // IWERK
planGroupKey : String; // STDNR
planGroupCounter : String; // STDAL
}
}
Thanks in advance,
Merve
User | Count |
---|---|
77 | |
11 | |
8 | |
8 | |
6 | |
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.