Skip to Content

OData Read with $expand not returning navigational table values


I have an Offline App, where i need to maintain 3 tables for a particular document. I have defined navigation from the primary to 2 other secondary tables ( one child1 has 1:1 relationship with the parent, and the other child2 has N:1 relationship with the parent. I have defined 3 defining requests in manifest.json, something like this.

  1. /parent?$expand=child1,chidl2
  2. /child1
  3. /child2

When the mobile device is first synced, i can see all the documents with their related child tables data in all the tabs in my app. When i create a new ticket on the app in mobile device (in disconnected mode), it gets saved, but on the responseCallback function, when i try to read the parent entity for a particular document with #expand=child1,child2 the child table values are not fetched, it is either returned as null or an empty array is returned. When the record was saved while creating, i did check the batch requests, all the 3 tables had the corresponding data.

Not sure how to build the relationship again at the offline mode. Any ideas / pointers would be of great help.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers