on 2022 Jan 31 3:19 PM
Hello Community,
I've encountered an error when using an input control with value help in a Fiori Elements app (using oData V4 and the template "ui5template.fiorielements.v4.lrop"). The strange thing is, it works before with SAPUI5 version 1.87.9, but after updating it to 1.96.x or 1.97.x the error occurs.
How to recreate the error:
FieldValueHelpTableWrapperBase-dbg.js:336
The function tries to find the correct item by using id and descr (in version 1.87.x it only searches using the id, here it's working well).
The entered value is not transferred into the oData model afterwards, but still is in the input field. If you're now saving the draft, you have a skew between frontend and backend. This is of course very bad in productive environments, especially if the user does not notice it immediately.
Further information on how we implemented the form:
CAP project with the following entity:
myProperty is a type:
The UI annotations have been extended:
Which results into the following annotations in the metadata:
Thank you very much in advance!
Best regards,
Mark
Request clarification before answering.
You should have something like that:
annotate service.MyEntity with {
myProperty @Common.Text : {
$value : myProperty.descr, ![@UI.TextArrangement] : #TextFirst }
};
annotate service.myValueList with {
ID @Common.Text : {
$value : descr, ![@UI.TextArrangement] : #TextFirst }
};
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
73 | |
30 | |
8 | |
8 | |
7 | |
6 | |
6 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.