Closed TornadoM closed 2 days ago
Hello @TornadoM from what I see here your navigation property doesn't come with any referential constraints, as such we cannot really invent a relationship here. If you have a referential contraints then that would be feasible (and should already work), but without that it's complicated
Hello @TornadoM from what I see here your navigation property doesn't come with any referential constraints, as such we cannot really invent a relationship here. If you have a referential contraints then that would be feasible (and should already work), but without that it's complicated
Hi Lunet,
Thanks a lot for the reply. I will generate a mock dataset json file for such navigation property call by myself. But how shall I name it correctly? If I want to define mockdata for BusinessPartners Entity, I just generate file "BusinessPartners.json". But for such navigation property call _BusinessPartners(ID='ID0',XXX='dummy')/ProductOrders , how should I name the json file to make the call reach the mock dataset in the file? Thanks a lot!
BTW, another question. Is that possible that I run a local backend server and I trigger some actions in UI from the test journey, and the mockdata files can be automatically recorded and written into the mockdata folder? Is mockserver or any other sap middleware able to handle this?
Thanks a lot!
Best Regards Ming
Hello @TornadoM we have no support for local backend proxy to save data as you go :)
The data for the navigationProperty can be provided with the name of the target entityset or type as json.
You then have to ensure that you have a way to access those data, either through a defined referential constraint, or by matching key property names from parent to child.
You can also provide ProductOrders
inline for all the entries you want (this should work)
closing for lack of activities
Entity defined like:
Metadata like:
In UI, after filter on the parent entity and go to the object page, it will call the request like below, but it's empty:
http://localhost:808/v2/service-name/BusinessPartners(ID='ID_0',XXX='dummy')/ProductOrders
Could you please enable the automatic data generation for such navigation properties? Can we expect this in the near future?
Thanks.