With last release of DA, I try to set some fields of a disconnected TDAMemDataTable:
DM.dtBackupPlan.Insert;
DM.dtBackupPlan.FieldByName('Database').AsString := 'hola';
DM.dtBackupPlan.FieldByName('Params').AsString := 'hola';
DM.dtBackupPlan.FieldByName('Host').AsString := 'hola';
DM.dtBackupPlan.Post;
However, just after set the string, all the fields are empty, as if I have never put a string here. That is for all the records.
The DataTable have defined the fields manually in the datamodule and is created:
dtBackupPlan.InitializeDataTable;
I run all the code “disconnected” because my app must work for long periods offline and for easier prototyping. LogChanges is true, and remotefetch is false.