Update a DataSet
- Last Updated: March 30, 2020
- 2 minute read
- OpenEdge
- Version 12.2
- Documentation
DataSets are useful for passing updated data between a client and server. Typically, the client obtains the DataSet from the application server, makes changes to the DataSet, and sends those changes back to the application server. The application server matches the records back to the original datasource, verifies that the records were not changed by other users, and then applies the changes to the datasource. The server passes back the final versions of records that may have been further changed on the server, along with any errors.
DataSets in both .NET and ABL have built-in support for updating. In addition to being an in-memory cache of data, DataSets keep track of which records were changed (modified, added, or deleted). They also keep track of the original or before-image versions of modified or deleted records, so the server can compare those records against the current records in the datasource. (ProDataSets on the application server need to define a before table to keep track of original values.)
The normal processing of DataSets for update is as follows: