Site icon Embarcadero RAD Studio, Delphi, & C++Builder Blogs

Learn About How To Redirect Inserting, Deleting And Updating Records In Delphi With FireDAC

This sample shows how to redirect inserting, deleting and updating records using standalone table adapter.

Location

You can find the Commands sample project at:

Files

File in DelphiContains
Commands.dproj
Commands.dpr
The project itself.
fCommands.pas
fCommands.fmx
The main form.

Implementation

The sample implements the following standalone table adapter features.

Create table adapter

[crayon-66347856bff34656851887/]

Selecting data

[crayon-66347856bff3d284235645/]

Redirect records

Redirect all record inserts into FDQA_map2 table instead FDQA_map1:

[crayon-66347856bff3f443266305/]

Redirect all record deletes into FDQA_map3 table instead FDQA_map1:

[crayon-66347856bff40143797938/]

Redirect all record updates into FDQA_map4 table instead FDQA_map1:

[crayon-66347856bff42860511124/]

Add new rows

[crayon-66347856bff43131157493/]

Post changes to RDBMS

[crayon-66347856bff44636032321/]

For more details and links to other posts, you can refer to the link below:

http://docwiki.embarcadero.com/CodeExamples/Sydney/en/FireDAC.DAptLayerCommands_Sample

Check out the full source code for the demo over on GitHub or in your RAD Studio IDE examples section.


Exit mobile version