cancel
Showing results for 
Search instead for 
Did you mean: 

Computed fields in CAP

sergei-u-niq
Active Contributor

I think, I have seen this question before, but just cant find the answer.

What I'd like is an after-read method that computes a value for a field. I can easily place it in after-read of that entity in the service implementation. that works for service calls like

/EntityWithComputedProp

What I would like, though, is a method that will be executed regardless of how the service was called, e.g.

/SomeOtherEntity?$expand=EntityWithComputedProp

If I recall correctly, there is a way to do that. (except placing similar code in after-read of SomeOtherEntity)

Thanks, Sergei

View Entire Topic
vobu
Active Contributor
0 Kudos