Hi Team,
I have an entity with a column fromCurrency and the type is sap.cds.common.Currency. In the post payload, I give the body as
```
fromCurrency: {
code: "EUR"
}
```
However in the get response, CAP converted it to "fromCurrency...
Hi Community,
Could the CAP CDS calculated columns (on-read and on-wirte specifically) support hana build-in SQL functions like REPLACE? https://help.sap.com/docs/SAP_HANA_PLATFORM/4fe29514fd584807ac9f2a04f6754767/20e66a2c75191014bac6a279955db665.h...
Hi Community
I am exposing an API with
service MyService {
entity MyEntity as projection on schema.DbEntity { * }; annotate ExchangeRate with { <Some annotations.> };}
When I call [GET] /odata/v4/MyService/MyEntity('{id}'), it w...
Hi Community,
I am using CAP to define a model that uses a customized type <RateType>:
type RateType : Association to RateTypes;entity RateTypes: sap.common.CodeList { key code : String(20);};entity ExchangeRate { key internalId : UUID; ...
I am trying to manager sub-entities with handlers. I use handlers on Insert/Upser events to operate in sub-entities. I will also need to handle Delete events. However, it seems i have no access to the deleted entity nor the id from the endpoint path ...
It's because my type added sap.common.CodeList aspect, and CodeList itself is annotated with @cds.autoexpose=true. We either not use CodeList or add @cds.autoexpose=false
Hi David,
fromCurrency : Association to one sap.common.Currencies; this seems does not work either, it still appends a `"fromCurrency": null` to the end of the object, but the `"fromCurrency_code": "USD"` remains the same.Andy Ideas?
Hey David, i think expand only works for Associations? In my case, the type of fromCurrency is Currency. In my test, adding expand will append a `"fromCurrency": null` to the end of the object, but the `"fromCurrency_code": "USD"` remains the same