Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3523

Need help on SMP 3.0 in defining multiple request for SODataOfflineStoreOptions

$
0
0

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


Viewing all articles
Browse latest Browse all 3523

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>