cancel
Showing results for 
Search instead for 
Did you mean: 

How to define a request ,when working with offlinestore?

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

This blog has all your answers.

midhun_vp
Active Contributor
0 Kudos

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