Hi All,
When working on the offline capabilities ,Im getting the following error .
Im using the following URL:http://SERVER HOST /com.sap.test.demo/read_cust/?$filter=IKunnr eq 'xxxxx'
.
And i created the defining request as follows:
options.definingRequests[@"req1"] = @"/read_cust";
As per my knowledge , the problem is related with defining the request.
So please help me out ,how to define a request for the above url?
ERROR:
Open Failed:Error Domain=NetworkDomain Code=2 "[-10060] An error occurred while performing a synchronization.
Reason: -857 (ERROR) %1:[-10225] Message: Failure occurred while executing user supplied code" UserInfo=0x7fa4b165e8d0
{
NSLocalizedDescription=[-10060] An error occurred while performing a synchronization. Reason: -857 (ERROR) %1:[-10225] Message: Failure
occurred while executing user supplied code
}
Thanks,
Praveen Kumar Addiki.
Tags edited by: Jitendra Kansal
Hi Praveen,
You have to define the query when you are creating the offline store.
Ex.
definingRequests : {
contacts : "/ContactSet?$expand=ToContactDetails",
}
Regards,
Midhun VP
SAP Customer Experience Group - CEG
This blog has all your answers. Getting Started with the Offline Store for Android
Add a comment