In this lesson, you configure a Notifier event to define how the Notifier creates push requests, and sends push notifications to devices.
Connect to the consolidated database using the MobiLink Synchronization plug-in:
Open Sybase Central.
In the left pane, click MobiLink 11.
Click Mode » Admin.
Click File » Connect.
Click the Identification tab.
In the ODBC Data Source name field, type SIS_CarDealer_LP_DBLSN_CONDB.
Click OK.
In the left-pane, click the Notification folder.
Click File » New » Notifier.
Specify CarDealerNotifier in the Notifier field, and then click Finish.
Enter the request_cursor event script.
The request_cursor event script detects push requests. Each push request determines what information is sent, and which device should receive the information.
In the right pane, select CarDealerNotifier. From the File menu, choose Properties.
Click the Events tab and choose request_cursor for the event.
Enter the following script for the request_cursor script:
SELECT ml_sis_sync_state.remote_id + '.sync' FROM ml_sis_sync_state WHERE EXISTS (SELECT 1 FROM Dealer WHERE last_modified >= ml_sis_sync_state.last_download ) UNION SELECT poll_key FROM non_sync_request |
Click OK to save the Notifier event.
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |