Skip to Content
author's profile photo Former Member
Former Member

How to define a request ,when working with offlinestore?

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Nov 27, 2014 at 01:22 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 06, 2014 at 03:05 AM

    This blog has all your answers. Getting Started with the Offline Store for Android

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.