Hi,
Can someone help me on solving below issue. Thanks in advance.
I am using OData service to download data in my iOS native application. We have customer and order data on server. On initial launch of application, i am downloading all customers data in my offlineStore. Now the problem what I am facing is If I want to download specific orders for a particular customer as both has relationship. Its not downloading the orders data. Below is the piece of code for definingRequest for downloading orders.
SODataOfflineStoreOptions * storeOptions = [selfOfflineStoreOptionsSharedInstance];
NSLog(@"orders storeOptions : %@", storeOptions);
NSString *keyValue = [NSStringstringWithFormat:@"Orders?$filter=CustomerID eq '%@'", @"VINET"];
storeOptions.definingRequests[@"req"] = keyValue;
If someone provide me the code snippet or any link where I can find anything. It will be very helpful.
Thanks,
Ashish jha