Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.1 » MobiLink - Getting Started » MobiLink technology » MobiLink plug-in for Sybase Central » Synchronization models » Synchronization model tasks


Modifying scripts in a synchronization model

You modify scripts in a synchronization model using the Events tab.

The Events tab allows you to perform the following tasks:

  • View and modify the scripts that were generated by the Create Synchronization Model Wizard.

  • Create new scripts.

The top of the Events tab indicates the group that the selected script belongs to. All scripts for a single table are grouped together. The top of the Events tab also indicates the name of the selected script and whether it was generated by the Create Synchronization Model Wizard, whether it was user-defined, or whether a generated script was overridden. It also indicates whether the synchronization logic is written in SQL, .NET, or Java.

The script is fully under your control when you add a script of override a generated script; it does not change automatically when you change a related setting. For example, if you change a download_delete_cursor for a model and then clear the Del column in the Table Mappings pane under the Mappings tab, your customized download_delete_cursor is not affected.

You can use options in the File menu to restore generated scripts you have overridden, restore scripts that you have set to be ignored, or to remove new scripts you have added. Select the script(s) you want to restore or remove and click File to view your options.

 Locate a script for a particular table
  1. In the Folders view of Sybase Central, expand MobiLink 12, your MobiLink project name, Synchronization Models, and then select your synchronization model name.

  2. Open the Table Mappings tab in the right pane.

  3. In the Table Mappings pane, select a table mapping.

  4. From the File menu, click Go To Events.

    The Events tab opens, and you can view all scripts for that particular table.

  5. In the Event field, choose the script name that you want to locate.

    The cursor moves to that script and you can make the necessary changes.

    Existing scripts are highlighted in bold.