Skip to Content
avatar image
Former Member

SMP offline cache

I have created a SMP application.I am facing issue in MergeEntriesFromFeed method call.The merge call is sucessfull without any error but its copying only 1 entry to the cache object and not merging all the entries in the feed to the cache.

ODataFeed* feed = [dataParser getFeed];

__block NSArray* entries;

NSError *errormerge=nil;

if(![appdelegate.cache mergeEntriesFromFeed:feed forUrlKey:[request.url absoluteString] withError:&errormerge withCompletionBlock:^(NSNotification*notif)

{

NSLog(@"%@", notif);

entries = [appdelegate.cache readEntriesForUrlKey:[request.url absoluteString] withError:nil];

}] )

Can someone please help in resolving this issue.

Thanks for your support in advance

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Apr 07, 2016 at 07:12 AM

    This message was moderated.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 07, 2016 at 08:58 AM

    Hi All,

    When i mergeentity from feed to cache and readentity back i am not able to get the complete enity set.I get only partial entities.

    So can someone please help me in resolving the issue.

    Thanks.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Kalyani,

      It is not clear to me if your response is a new question or related to your original post. If it is a new question, please create a new Discussion. If it is related to the original, be patient. Almost all who post in SCN do so voluntarily on their own time. There is no Service Level Agreement regarding response times and bumping posts in less than half a day tends to irritate some of the experts who you would like to respond.

      Regards, Mike (Moderator)

      SAP Technology RIG

  • Apr 08, 2016 at 04:37 PM

    Hi Kalyani,

    it seems that you are using an outdated mechanism. Is there a reason why you are not using the up-to-date API, which is available in the SMP SDK?

    Please use the OData API for creating Online, Occasionally Offline and Offline Apps. This OData API got introduced in SP05 ..(current Service Pack of SDK: SP11)

    iOS Applications - Application Development in SAP Mobile Platform - SAP Library

    Regards

    Marvin

    http://help.sap.com/saphelp_smp3011sdk/helpdata/en/4d/67660e6bad457886652b7eb36f2c89/content.htm

    Add comment
    10|10000 characters needed characters exceeded