KeyFields Problem
Posted: Wed 02 Aug 2017 09:23
I have a table with fields "field_1, field_2, field_3". Primary index is "field_1;field_2"
Unitable1.Options.StrictUpdate := False;
Unitable1.IndexFieldNames := "field_1;field_2"
Unitable1.KeyFields := "field_1"
For example I have 5 records in the table of field_1 column has values "x", field_2 values are different.
When I change the value of any cell in field_3 column with field_1 "x" value, all the cells in field_3 values changes.
When I delete one of the records that field_1 value is "x", all records is deleted too where field_1 value is "x".
When I try to change field_2 value with field_1 "x", it gives "Duplicate key" error.
Unitable1.Options.StrictUpdate := False;
Unitable1.IndexFieldNames := "field_1;field_2"
Unitable1.KeyFields := "field_1"
For example I have 5 records in the table of field_1 column has values "x", field_2 values are different.
When I change the value of any cell in field_3 column with field_1 "x" value, all the cells in field_3 values changes.
When I delete one of the records that field_1 value is "x", all records is deleted too where field_1 value is "x".
When I try to change field_2 value with field_1 "x", it gives "Duplicate key" error.