on 2024 Jul 31 12:33 PM
Hello experts I'm encountering a problem with using $expand in MDK. When navigating from one component to another, the target component doesn’t display correctly.
Has anyone faced a similar issue or know how to resolve it?
Request clarification before answering.
The ilodata tool is included in the MDK SDK distribution in the Tools folder at the top level.
After you have installed ilodata you can open the store
ilodata store_name=myofflinestorefile store_key=MDK
The myofflinestorefile is the name of the offline database without the extension. You can then issue a
get <entityset>
and use any additional query options.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi jitendra thank you for the response
From the equipment detail i call the $expand property like this and from my initialize.action i defined like this
},
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you using a branded client in an emulator? If so I would suggest turning off the secure db encryption and checking your offline database after initialization to confirm the entity and expanded data is populated correctly in the offline db using the ilodata tool. My guess is that the offline db was unable to populate the expanded data correctly from your backend service.
I did a test using the Sample service and the standard MDK List Detail template for Customers. In the Customers detail page the binding for the SalesOrders is just like you are using. I changed my offline initialization to include the $expand on SalesOrders and when I run it the data renders as expected. I also changed the syntax to use what you are showing and still see the data as expected which leads me to suggest confirming the data was populated into the offline store as expected.
| User | Count |
|---|---|
| 17 | |
| 8 | |
| 8 | |
| 6 | |
| 4 | |
| 4 | |
| 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.