Skip to Content
avatar image
Former Member

Synchronization in background possible?

Dear all,

Is there any way to trigger synchronization in background ?.

so that i can run mi application in foreground (for Smart Sync Applications).

please help me to resolve this problem and I promise to return and reward the answers.

Regards

Kishor G

Message was edited by: Kishor Gopinathan

Message was edited by: Kishor Gopinathan

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 23, 2006 at 10:45 AM

    hello kishor,

    use the following parameters in your mobileengine.config.

    MobileEngine.Sync.TimedSyncActive=<true or false>

    MobileEngine.Sync.TimedSyncTimeInterval=<value in ms>

    MobileEngine.Sync.Background.Filter=<true or false>

    description:

    MobileEngine.Sync.TimedSyncActive

    - sync in the background at as specified interval

    MobileEngine.Sync.TimedSyncTimeInterval

    - the time interval in milliseconds

    MobileEngine.Sync.Background.Filter

    - sync only if modified application data exists

    see link for details:

    http://help.sap.com/saphelp_nw04/helpdata/en/93/f53878b47bef4895319c9febb35f78/frameset.htm

    pls consider also data consistency and performance when

    using this feature.

    regards

    jo

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 23, 2006 at 07:56 AM

    Hi Kishor,

    Do you mean you want to sync using code in the application deployed on the Mobile device and not using the sync button? If it is so, then you can use SyncManager(in Sync API) to do it.

    If you that you want to sync from the MI server with a background process then it is not possible. Sync is entirely responsibility of the MI client device.

    Pls tell me what exactly you want to do and I can help you better.

    Regards,

    Rahul

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 23, 2006 at 09:11 AM

    Hi Rahul ,

    actually i want start the synchronization from the client itself . i need ,

    without clicking the sync button , provided i need to run the synchronization in background(in the client), so that i can still run the application in the front end.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Kishor,

      Synchronization means updating data on both, client and backend. Now if sync is made run in background and the user is working on it in foreground, then it might data inconsistency. Hence, synchronization has to run in foreground and not possible to run it in background. Once everyting is updated, user can resume his work.

      In order to sync without actually pressing sync button, use the class SyncManager and call the method synchronizeWithBackend(). This will start the sync process but prevent user from working for the same duration.

      Regards,

      Rahul

      If this helps, pls assign me some points.