Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Need help on SMP 3.0 in defining multiple request for SODataOfflineStoreOptions

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 = [self OfflineStoreOptionsSharedInstance];

   

     NSLog(@"orders storeOptions : %@", storeOptions);

   

    NSString *keyValue = [NSString stringWithFormat:@"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

Tags:
Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question