on 2024 Oct 18 4:08 PM
Hi,
i need to understand how DeepEntity works, i read this post but i do not completely understand how to do it.
I have this scenario:
Head (Parent)
-- OrderText (Child)
-- OrderItem (Child)
-- OrderCond (Child)
The data of child entities are sored in Application Client Data.
How can I pass this data in the CreateLinks section ?
Thank you.
Request clarification before answering.
First it is important to understand if you are working with an offline or online OData service? I ask this because it is important to note that Offline OData only supports 1-to-1 deep link relationships while online can support both 1-to-1 and 1-to-Many relationships.
A Deep Entity is when you call Create Entity and include child entity values all within the same call. There are some OData services that require this approach. I would also say those services should be updated to not require this as the only way to create the entity children. This is one approach for creating related entities.
The other approach involves creating and linking entities as separate create (related) entities requests. When using this approach you call Create Entity for the parent then call Create Entity for the child and link to the parent in the Create Links. You can also call Create Related Entity which is an alternate form to create the child and link it to the parent.
In MDK you can wrap the Parent Create Entity and Child creates in a Change Set to ensure they are processed together. While MDK supports both the Deep Entity creates (with the limitation mentioned above), using it does usually require additional effort and rules to temporarily store data needed in the Deep Entity create.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 14 | |
| 8 | |
| 6 | |
| 6 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.