2 weeks ago
Today I was doing some testing with CDS, CAP and external API.
I created a test service and the test.js to connect to ES5 test system.
using {GWSAMPLE_BASIC as external} from './external/GWSAMPLE_BASIC';
service Test {
entity BPSet : external.BusinessPartnerSet {}
entity CSet : external.ContactSet {}
}
When I tried "BPSet" i got an error "'Address_City" not found. After some investigation I found out that there is somethin wrong with the metadata.
The metadata of my test-service look like:
When I use cds watch and check the metadata of gwsample-basic, there is difference in the address fields.
It seems, the complex type Address is replaced by Address_City, Address_Street. Anyone know why this happend and how I can resolve it to use the service?
BR
Miri
Why: CAP (nodejs) deprecated support for structure types in oData entities. It was possible to do this earlier with a x4 flavor. The default flavor is to have flat structure for entities. CAP flattens the entities using underscore as separator.
How to proceed: You cannot serve entities with properties of structure type. But you can consume these. You have to write handlers to translate queries snd transform data just like any other transformation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
72 | |
11 | |
10 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.