2024 Oct 11 2:50 PM - edited 2024 Oct 11 2:51 PM
Hi,
I'm looking for a solution to handle state messages in SAP CAP, combined with SAP Fiori Elements.
According to the UI5 documentation, state messages should be part of the response payload. https://ui5.sap.com/#/topic/fbe1cb5613cf4a40a841750bf813238e.html#loiofbe1cb5613cf4a40a841750bf81323...
I'm in the situation where I have a business object modelled in CAP, which can contain multiple errors (background processing / jobs) where a user will finally need to make some manual changes to the object. Basically, clear case of state messages (messages don't change as long as the object doesn't change).
Currently it seems like CAP only supports transition messages out of the box with e.g. req.info, req.error...
I'd like to get to a situation where these messages are captured in the backend and provided as state messages to the frontend, so that when a user opens the object in change mode, the state messages are properly shown.
I couldn't find an example of this scenario and the CAP documentation doesn't seem to mention an approach / recommendation for this scenario.
Any pointers in the right direction are greatly appreciated!
Cheers,
Geert-Jan
Request clarification before answering.
Hi @geert-janklaps,
I wonder what the format of the state messages is, because I don't know exactly what it should look like based on the documentation.
In the CAP documentation I found an object parameterization for the methods req.info, req.warning, req.error, where it is possible to specify a target. Maybe this could be used to be interpreted as a state message in the UI?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
30 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.