Subject | IB_Query - wrong ID assigned |
---|---|
Author | malyv2 |
Post date | 2005-05-23T07:55:10Z |
I have IB_Query, IB_Grid and IB_UpdateBar.
ID_VYKON is a primary key.
IB_Query:
FieldsReadOnly.Add('ID_VYKON=True');
GeneratorLinks.Add('ID_VYKON = GEN_CISVYKONY');
KeyLinks.Add('ID_VYKON');
KeyLinksAutoDefine := False;
1. Insert record - I can see assigned ID_VYKON in grey field - that's OK
2. Refresh just inserted record - I see in column ID_VYKON assigned
number +1
3. It is ONLY when property FieldsReadOnly is assigned. I don't know
why generator fired twice.
What is wrong? How I can prevent user editing this field?
Vlado
ID_VYKON is a primary key.
IB_Query:
FieldsReadOnly.Add('ID_VYKON=True');
GeneratorLinks.Add('ID_VYKON = GEN_CISVYKONY');
KeyLinks.Add('ID_VYKON');
KeyLinksAutoDefine := False;
1. Insert record - I can see assigned ID_VYKON in grey field - that's OK
2. Refresh just inserted record - I see in column ID_VYKON assigned
number +1
3. It is ONLY when property FieldsReadOnly is assigned. I don't know
why generator fired twice.
What is wrong? How I can prevent user editing this field?
Vlado