cancel
Showing results for 
Search instead for 
Did you mean: 

CAP Fiori Elements warnings on READ requests

a_oezsoy
Explorer
0 Kudos

Hi,

I am working on a CAP project with Fiori Elements List Report frontend. I have a custom on READ handler for a certain entity and I would like to show notifications to the user on the UI after the read event.

The way I implemented it is as follows:

service.js
----------------
module.exports = (srv) => {
// ... srv.on('READ', 'Connections', (req) => { // ... if (...) { req.warn({code: 'DATA_INCOMPLETE',message: 'Data could only be partially retrieved. ...'}); } // ... }); // ... }

The request functions with lower severities (warn/info/notify) don't seem work when I am handling READ requests.

Is this normal behaviour? If so, is there another "CAP/Fiori Elements way" of showing the warnings to the user (other than writing it in native UI5)?

Thanks,

Atakan

Accepted Solutions (0)

Answers (0)