Returns changes made to a DataWindow or DataStore. You must call GetChanges first to set up the change information. This method is used primarily in distributed applications.
DataWindow type |
Method applies to |
---|---|
Web ActiveX |
DataWindow control |
string dwcontrol.GetChangesBlob ( )
Argument |
Description |
---|---|
dwcontrol |
A reference to the DataWindow control for which you just called GetChanges |
Returns a string whose value is the DataWindow change blob set up by GetChanges.
If dwcontrol is null, the method returns null.
GetChanges and GetChangesBlob are used in conjunction with SetChanges to synchronize two or more DataWindows or DataStores. For details, see GetChanges.
These statements use GetChanges to capture changes to a DataWindow control on a client. If GetChanges succeeds, the client calls a remote object function that applies the changes to a DataStore on the server and updates the database:
blob lblb_changes
long ll_rv
ll_rv = dw_employee.GetChanges(lblb_changes)
IF ll_rv = -1 THEN
MessageBox("Error", "GetChanges call failed!")
ELSE
iuo_employee.UpdateData(lblb_changes)
END IF