i have regression from 7.1 for firebird 2.5 (FB 3.x is ok)
im feeding dataset from complex query and for firebird 2.5 fields are set As ReadOnly = true and i'm getting Field 'my_field' cannot be modified
it's part of a bit complex system that is automatically loading and applying changes
load actual data
if some external changes happens, notify app by events
app loads dataset diff from db and tries to apply changes in original dataset
for this i need to modify original dataset (delete/insert) but for firebird 2.5 when i call e.g. `DataSet.FieldByName('id').AsInteger := InsertId` i'll get Field 'id' cannot be modified
ReadOnly Field
Re: ReadOnly Field
i resolved it by manually setting ReadOnly to False
Code: Select all
Field.ReadOnly := False;
Field.Value := Value;
DataSet.Post;
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: ReadOnly Field
Hello DPStano,
could you try to create a small test app and test database that demonstrate the problem? I would like to add that to our test suites.
Best regards,
Jan
could you try to create a small test app and test database that demonstrate the problem? I would like to add that to our test suites.
Best regards,
Jan