| Home | Previous Lesson: Method to Retrieve Data Next Lesson: Creating Proxy Objects for Jaguar CTS Components |
This method takes a blob argument that was set by the GetChanges() function in the client program and applies those changes to the DataStore and updates the DataStore.
Object: n_product_master
Function: of_Update()
Argument: BLOB, abl_changes, By reference
Returns: Long
ids_data.SetChanges(abl_changes)
IF ids_data.Update() = 1 THEN
its_jaguar.SetComplete( )
return 1
ELSE
its_jaguar.SetAbort( )
return -1
END IF
return 1
If the update is successful, we are calling SetComplete() function instead of COMMIT statement; meaning, we are indicating the Jaguar that every thing is okay on my side and you can commit the transaction. Check UseContextObject topic under 'New Objects > Functions > Options for EAS Support' section for more details. SetAbort() function indicates Jaguar to rollback the transaction.
| Home | Previous Lesson: Method to Retrieve Data Next Lesson: Creating Proxy Objects for Jaguar CTS Components |