on 2024 Apr 24 8:31 PM
Hi Experts,
We're building a SAP BTP CAP-based Fiori app and integrating a custom Rich Text Editor fragment with an Object Page extension controller. We're encountering an error when attempting to create/save record because some fields are mandatory including the fields mapped to fragment. Please see the attached screenshot, the popup window of errors becomes squeezed because of this fragment section and affecting the whole UI. Additionally, we need a solution to make the mapped value in the fragment mandatory how we can show error if null value.
Please suggest?
Request clarification before answering.
Hi @itsumerfarooq,
You first need to understand how sapui5 perform user input validation.
That works automatically for standard simple data types:
https://sapui5.hana.ondemand.com/#/topic/91f06be06f4d1014b6dd926db0e91070
So, let's say you have an input field registered as Float. When the user enters data that isn't allowed by this data type, it displays an error message - so the user can make any necessary corrections. You can register it manually or by using annotations on your OData service. So, if you have a data type like Float defined on your service which is being used by Fiori Elements to display that field - it will display validation errors on it according to what is defined as this standard data type.
You can also define additional custom data types for your application. To do so, please read the documentation below:
https://sapui5.hana.ondemand.com/#/topic/a90d93df5a024e8bb18826b699c9aaa7
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 |
---|---|
61 | |
7 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.