Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

Hi, I'm trying to make a synchronization function following the example of the function present in, but I did not understand what parameters should I put in the call 'createSyncParms'.

Thanks in advance

asked 09 Sep '11, 11:00

enricoDevoteam's gravatar image

accept rate: 0%

retagged 19 Sep '11, 11:48

Graham%20Hurst's gravatar image

Graham Hurst

createSyncParms(String,String) is expecting the MobiLink user name and the script version name (not username and password). The username along with the remote id help identify who is synchronizing. The version name identifies which set of MobiLink synchronization scripts to use to control what data is synchronized (how the upload is applied to the consolidated, how conflicts are resolved, and what data needs to be downloaded to a particular remote).

createSyncParms(String,String) creates a SyncParms object suitable for HTTP synchronization. createSyncParms(int,String,String) lets you select between HTTP or HTTPS synchronization.

getStreamParms() gives you access to parameters that specifically impact networking.

The next step is to provide the name or ip of the host you want to synchronize to and then what port (if not using the default 80 for HTTP and 443 for HTTPS).

The URL suffix helps you specify additional information for the URL - for example when going through the relay server as in the CustDB sample, you need to identify what user and farm to connect to. On BlackBerry devices, additional networking parameters may also be supplied here.

The rest of the SyncParms object controls the direction of data and what will be synchronized (publications allow you to subset the tables of your remote).

permanent link

answered 13 Sep '11, 17:49

PhilippeBertrand%20_SAP_'s gravatar image

accept rate: 22%

createSyncParms(String, String) returns a SyncParms class, which you use to provide information to log in to your MobiLink server. The method signature for createSyncParms is expecting a username and version name to access the MobiLink server.

Once you have your SyncParms object, you may need to specify additional synchronization options using the various .set*() modifiers.

Most synchronization applications minimally need to specify MobiLink client network protocol options, using the .getStreamParms().set*() modifiers.

permanent link

answered 09 Sep '11, 12:08

Jeff%20Albion's gravatar image

Jeff Albion
accept rate: 25%

edited 14 Sep '11, 09:10

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 09 Sep '11, 11:00

question was seen: 3,033 times

last updated: 19 Sep '11, 11:48