cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronization in background possible?

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

kishorg
Advisor
Advisor
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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