on 2024 Feb 12 9:16 AM
aspect elementForAssessment {
key code : String enum {
Attachment;
Boolean;
Character;
Currency;
Date;
Numeric;
Object;
![Text Area]
}
};
entity AssessmentTypes {
FieldConfig : Composition of many {
elementaryTest : String;
}
}
I have the above configuration in my schema.cds file and i want to provide the value help for the field "elementaryTest" . Here the values for the value help should be the values which are there in the aspect "elementForAssessment " , so can anyone please help me with this issue? Answers will be appreciated!
Thanks & Regards,
Ashoka
Request clarification before answering.
You could take the approach in the sample application and define a code list.
using { sap.common.CodeList } from '@sap/cds/common';
entity BookingStatus : CodeList {
key code : String(1) enum {
New = 'N';
Booked = 'B';
Canceled = 'X';
};
};
then define the type as an association.
BookingStatus : Association to BookingStatus;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
3 | |
2 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.