Page 1 of 1

ReadOnly Field

Posted: 07.08.2018, 13:25
by DPStano
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

Re: ReadOnly Field

Posted: 07.08.2018, 14:49
by DPStano
i resolved it by manually setting ReadOnly to False

Code: Select all

        Field.ReadOnly := False;
        Field.Value := Value;
        DataSet.Post;

Re: ReadOnly Field

Posted: 07.08.2018, 17:05
by marsupilami
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