Showing results for 
Search instead for 
Did you mean: 

Looking for a way to omit virtual properties in req.query.SELECT.columns


Hi Community,

I've got an issue with a cap application connecting to an external oData service. I've extended an entity with computed properties (virtual), which is working fine when i invoke the entityset without any additional parameters. When i try to invoke the entityset using $select, sort etc on the computed properties the CAP service fails, because it's sending the computed properties in the req.query.SELECT.columns and those properties does not exist on the external service.
I can't find a better way to solve this than manually splice out those columns, but this seems like a dirty solution.

Does anyone know of a better way of achieving this or even better is there some generic way to do this in the framework which i missed out on?



Accepted Solutions (0)

Answers (0)