Learn How To Retrieve Data And Manage Cached Updates With TFDMemTable In Delphi
January 31, 2021 by Konstantin Tomov
The CachedUpdates sample shows you how to work with the Для просмотра ссылки Войдиили Зарегистрируйся class. To this end, Для просмотра ссылки Войди или Зарегистрируйся retrieves data from a database through Для просмотра ссылки Войди или Зарегистрируйся and Для просмотра ссылки Войди или Зарегистрируйся. Then, the sample uses some methods and properties of Для просмотра ссылки Войди или Зарегистрируйся in order to implement some features related with the management of Для просмотра ссылки Войди или Зарегистрируйся.
или Зарегистрируйся. When you select an item of the combo box, the Для просмотра ссылки Войди или Зарегистрируйся property is set to True in order to open a dataset and read data from a database. Then, the sample displays a Для просмотра ссылки Войди или Зарегистрируйся using a Для просмотра ссылки Войди или Зарегистрируйся component. Once the Для просмотра ссылки Войди или Зарегистрируйся is filled, you can interact with the sample. Each of the following buttons implements an Для просмотра ссылки Войди или Зарегистрируйся event to do what is described below:
или Зарегистрируйся named cdsOrders and see the CachedUpdates property of the DataSet property on the Для просмотра ссылки Войди или Зарегистрируйся.
To get more details on this sample, please visit the link below:
Для просмотра ссылки Войдиили Зарегистрируйся
Для просмотра ссылки Войдиили Зарегистрируйся
January 31, 2021 by Konstantin Tomov
The CachedUpdates sample shows you how to work with the Для просмотра ссылки Войди
Location
You can find the CachedUpdates sample project at:- Start | Programs | Embarcadero RAD Studio Sydney | Samplesand then navigate to:
- Object PascalDatabaseFireDACSamplesComp LayerTFDMemTableCachedUpdates
- Subversion Repository:
- You can find Delphi code samples in Для просмотра ссылки Войди
или Зарегистрируйся. Search by name into the samples repositories according to your RAD Studio version.
- You can find Delphi code samples in Для просмотра ссылки Войди
How to Use the Sample
- Navigate to the location given above and open CDS_CachedUpdates.dproj.
- Press F9 or choose Run > Run.
- Click on the Use Connection Definitioncombo box and select an option.
- Modify the tables and interact with the provided buttons.
Files
File in Delphi | Contains |
---|---|
CDS_CachedUpdates.dproj CDS_CachedUpdates.dpr | The project itself. |
fCachedUpdates.pas fCachedUpdates.fmx | The main form. |
Implementation
This sample uses three main components:- Для просмотра ссылки Войди
или Зарегистрируйся. It uses Для просмотра ссылки Войдиили Зарегистрируйся to connect to the desired database. In the commandText property of Для просмотра ссылки Войдиили Зарегистрируйся there is a SQL command for selecting data from DB: select * from {id Orders}. You can check it on the Для просмотра ссылки Войдиили Зарегистрируйся. - Для просмотра ссылки Войди
или Зарегистрируйся. It provides communication between the application and the database. It is a mediator between Для просмотра ссылки Войдиили Зарегистрируйся and Для просмотра ссылки Войдиили Зарегистрируйся. - Для просмотра ссылки Войди
или Зарегистрируйся. It retrieves data from database through Для просмотра ссылки Войдиили Зарегистрируйся and Для просмотра ссылки Войдиили Зарегистрируйся.
- The RevertRecord button uses the Для просмотра ссылки Войди
или Зарегистрируйся method to undo changes to the current record and remove it from the dataset changes log. - The UndoLastChange button uses the Для просмотра ссылки Войди
или Зарегистрируйся method to undo the last modification to the dataset records and remove the change from the dataset change log. - The CancelUpdates button uses the Для просмотра ссылки Войди
или Зарегистрируйся method to remove all records from the change log and restore the dataset rows to their prior editing state. - The ApplyUpdates button uses the Для просмотра ссылки Войди
или Зарегистрируйся method to apply changes for all records in the dataset change journal to the database.
To get more details on this sample, please visit the link below:
Для просмотра ссылки Войди
Для просмотра ссылки Войди