on 01-24-2023 10:14 AM
Hi all,
I am working on a CAP service and want consume it using UI5 Smart Controls. Smart Controls are only compatible with OData V2, so I am using the cds-odata-v2-adapter-proxy.
It is a simple data model:
In order to use Smart Controls, the OData metadata document needs to contain a few key elements such as the "sap:" annotations (see UI5 documentation) - I found the respective part in the CAP documentation and updated my CAP service accordingly:
The metadata document now looks like this:
As far as I can see, that pretty much matches the example in the UI5 documentation (except "DESCR" is "name" in my example). Also, the CAP documentation (specific part for pre-defined types like "Currencies") states that "all SAP Fiori UIs [...] will automatically receive Value Help for currencies". However, my UI5 smart control does not display any ValueHelp (the SmartLabel works!):
Does anyone have any ideas why the ValueHelp won't show up?
i don´t really know your usecase, but you can look at the examples:
Maybe it´s not in edit mode?
I guess you want to use SmartFields. Just in case you just want to use the "Smart" Features, you can use macros Fields with V4:
https://ui5.sap.com/test-resources/sap/fe/core/fpmExplorer/index.html#/buildingBlocks/field/fieldEdi...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
nicolai.geburek
I recommend to go with this below approach for editing the field.
Amount with Dynamic field control on the currency
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.