ReadOnly Field

The forum for ZeosLib 7.2 Report problems. Ask for help, post proposals for the new version and Zeoslib 7.2 features here. This is a forum that will be edited once the 7.2.x version goes into RC/stable!!

My personal intention for 7.2 is to speed up the internals as optimal a possible for all IDE's. Hope you can help?! Have fun with testing 7.2
Post Reply
DPStano
Junior Boarder
Junior Boarder
Posts: 39
Joined: 16.05.2016, 09:21

ReadOnly Field

Post 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
DPStano
Junior Boarder
Junior Boarder
Posts: 39
Joined: 16.05.2016, 09:21

Re: ReadOnly Field

Post by DPStano »

i resolved it by manually setting ReadOnly to False

Code: Select all

        Field.ReadOnly := False;
        Field.Value := Value;
        DataSet.Post;
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1956
Joined: 17.01.2011, 14:17

Re: ReadOnly Field

Post 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
Post Reply