Use the Delete URL field to specify the URL that will provide the list of records that determines which records are to be deleted. The Delete URL must return a list of records formatted similarly to the examples below. All of the following assume that you have sent down an entire database. For this example, we will use a very simple one:
<root> <testCase date="20001215T12:15:36" string="1"/> <testCase date="19041215T12:15:36" string="2"/> <testCase date="19691231T23:59:59" string="3"/> <testCase date="19700101T12:00:00" string="4"/> </root> |
Now the next time you synchronize you will get an X-AvantGo-LastSyncTimestamp
header from M-Business Server that will tell you the last time a user synchronized the device. You can add two records to the device that have been added since then by supplying:
<root> <testCase date="20031215T12:15:36" string="5"/> <testCase date="20351215T12:15:36" string="6"/> </root> |
If you selected Explicit for Delete Type and you wanted to delete records 3 and 4, your Delete URL should return:
<root> <testCase string="3"/> <testCase string="4"/> </root> |
If you selected Implicit for Delete Type and you wanted to delete records 3 and 4, your Delete URL should return:
<root> <testCase string="1"/> <testCase string="2"/> <testCase string="5"/> <testCase string="6"/> </root> |
And the resulting dataset should be:
<root> <testCase date="20001215T12:15:36" string="1"/> <testCase date="19041215T12:15:36" string="2"/> <testCase date="20031215T12:15:36" string="5"/> <testCase date="20351215T12:15:36" string="6"/> </root> |
Send feedback about this page using email. | Copyright © 2008, iAnywhere Solutions, Inc. |