a month ago - last edited a month ago
Is it possible to display an error message directly in the input field when the service encounters an exception in SAP Fiori Elements with CAP Java?
I know this is achievable on the object page in edit mode, but we require a similar functionality in the list report during the create action.
We have implemented a create action using annotations that include several specific input fields. When we click on the value help or dropdown in one of these fields, we encounter service exceptions if certain configurations are missing.
Currently, the error message only appears in a popover once we close the create dialog. However, we want the error message to be displayed directly in the input field without closing the create dialog as in the below image.
Error message: {"error":{"code":"400","message":"Common destination PLM_COMMON_LAUNCHPAD_PATH does not exist. Please create a new destination with this name.","target":"in/workflowDefinitionId"}}
Looking for the solution as in the below image.
Current behaviour as in the below image.
Once we close the create dialog, the message popover dialog opens.
List Report with create action:
Annotations Code:
Request clarification before answering.
Hi,
To my knowledge this will not work (also not in OP!). What you are trying is to have a validation against the entry from user in the parameter (and not validation against action) - so the response is for the valuehelp call, correct? If so the target does not help as it is looked for in the context of the valuehelp - which is the typeahead table - and not the context of the action (where the target lies)!
Could you setup a call with me and Marcel (D030990) to discuss the options here in more detail?
Best Regards,
Sandeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Seetharam1 @sandeep_rs Please post the solution if you have one here. Thanks!
User | Count |
---|---|
63 | |
8 | |
7 | |
6 | |
6 | |
5 | |
4 | |
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.