on 2021 Sep 24 3:43 PM
I'm having an issue to display on screen some entities that aren't sync with backend database, only stored locally.
I'm creating this entity associating "User" PK and "Scope" PK. They are exposed in the same CAP endpoint and are present on xml metadata file.
The local store works good, but I can't bind the expand values inputted in the Query, only the PKs. As soon, as you can see, on query options we can select the Expand entities:
It only works as we want when we sync the local storage with database. Exists an way to bind the expand values without database sync?
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
I solved this question by my own iniciative and I'm writing here to help the newbies as me.
In simple words, to make expands works fine, we need to create related links as Bill did talk in the comments. But if we only select "createLinks" to a specific entity and not set the options, the entity will be created with the first object from the data.
In this case, we need to put on options the correct id of the object that we want use, like the following example:
This will return only the entity that we've selected in the view and create relationship correctly.
The documentation is not so clear to understand some concepts, so we have to try to understand the correct behavior.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
73 | |
21 | |
9 | |
8 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.