on 2024 Dec 19 9:48 PM
Hello everyone,
I'm using CAP(Node.js) with odata(v4) & fiori elements. My requirement is to display error & warning messages in the same message popover similar to the one available in ui5 :
With fiori elements you can use req.error() or req.warn() to show these messages, But the problem is when i use them both together only the errors are shown. The warnings are shown only if there are no errors. Is this the standard behavior or is there a way to show them both together ?
Request clarification before answering.
You can work around this CAP node.js behavior using an error handler:
this.on("error", (err, req) => {
if (req.messages) {
err.details = err.details ? err.details.concat(req.messages) : req.messages;
}
)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 18 | |
| 7 | |
| 6 | |
| 6 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.