on 2024 Aug 20 6:22 PM
Hello community, thank you very much for the help. I have an exposed odata v4 service which gives me two entities that are related. If I build the query correctly using expand I can get results like this:
The problem is that in my mobile application it is showing me the description of the "Audit" entity and not the description of the "TipoAuditoria" entity.
I set up the relationship like this. My detail view "Auditoria_Detail.page" is like this:
And in my edit view, we can see that the values are taken as follows:
{Auditoria/DESCRIPCION}
{TipoAuditoria/DESCRIPCION}
At first glance everything seems to be fine, but when I enter my application I find the following:
It gives me the description for Audit. What am I doing wrong? In "Tipo de auditoría" it should say: "Auditoría Operativa"
Request clarification before answering.
I see where you have set the design time target for your detail page to include the $expand=TIPOAUDITORA but keep in mind that this is used only in the editor to know what properties are assumed to be available when using the Object Browser. At runtime for these bindings to work the default binding object passed into the page is assumed to have been expanded and available.
Assuming you are coming from a list page you need to make sure the list target has the same $expand in the target so the expanded properties are available on the detail page.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 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.