GetFullStateBlob method (DataWindows)
Description
Returns the state
of a DataWindow or DataStore. You must call GetFullState first
to set up the state information. This method is used primarily in
distributed applications.
Controls
DataWindow type |
Method applies to |
---|---|
Web ActiveX |
DataWindow control |
Syntax
[Web ActiveX]
1 |
string <span>dwcontrol</span><span>.</span><span>GetFullStateBlob</span> ( ) |
Argument |
Description |
---|---|
dwcontrol |
A reference to the DataWindow control |
Return Values
Returns a string whose value is the DataWindow state blob
set up by GetFullState.
If dwcontrol is null, the method returns
null.
Usage
GetFullState and GetFullStateBlob are
used in conjunction with SetFullState to synchronize
two or more DataWindows or DataStores. For details, see GetFullState.
Examples
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:
1 |
blob lblb_changes |
1 |
long ll_rv |
1 |
1 |
ll_rv = dw_employee.<span>GetChanges</span>(lblb_changes) |
1 |
1 |
IF ll_rv = -1 THEN |
1 |
MessageBox("Error", "GetChanges call failed!") |
1 |
ELSE |
1 |
iuo_employee.UpdateData(lblb_changes) |
1 |
END IF |