on 2024 Feb 03 1:19 PM
Hi SAP Cloud Application Programming Model experts
I am looking for a way to combine the convenience option @cds.odata.valuelist (which produces value helps for managed associations)
https://cap.cloud.sap/docs/advanced/fiori#convenience-option-cds-odata-valuelist
With the "@Common.ValueListWithFixedValues" annotation. Expected result is that the managed associations provide a dropdown rather than popup helps.
I was expecting this would work, but it still gives me a popup value help.
@cds.odata.valuelist // To enable the convenience value list creation in FE
entity MyAttribute {
@Common.ValueListWithFixedValues: true // To make it a dropdown
key Code: String;
Description: String;
}
entity MyEntity : cuid {
MyAttribute: Association to Attribute; // Managed association
}
Thanks in advance!
//Carl
Request clarification before answering.
Hi carlonnheim,
Please check the sample code for CAP available at the bellow address (session: Additional Features in SAP Fiori Elements for OData V4)
https://sapui5.hana.ondemand.com/sdk/#/topic/2a0a630e50c7472b803fb94dab922d18
Apparently you are using the annotation at the wrong place. 😉
Best regards,
Ivan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
66 | |
9 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.