cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP Fiori Elements Code List Handler Access Context data

TatianaFetecua
Explorer
0 Likes
486

Hi,

I have a code list entity, and in the READ handler of the code list entity, I would like to access the context data ID where this code list is being used, is there any way to access the ID of the current context, I have tried cds.context, req.context but no luck! I only see details of the code list entity, I have not find a way to access the corresponding context data. Node.js SAP Fiori Cloud 

 

Thanks,

Tatiana F.

Accepted Solutions (0)

Answers (1)

Answers (1)

david_kunz2
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Tatiana,

The CAP server will only receive the corresponding GET request to return the requested data. The CAP server is a stateless application, that means the only available information must be part of the request.

In your custom handler, you can analyse the query with `req.query`, but this only includes the information based on the incoming HTTP request.

Best regards,
David