Master – detail
Posted: Fri 11 May 2007 08:37
Hi
I have a master detail relation.
In master table I have got a field, which have a value (SUM of field in detail table).
In detail table on event After post: I wrote next statemets:
MainTable.Edit;
MainTable.FieldByName('nameofthefield').asFloat:= SUM Value; //EX: 12
MainTable.Post;
The problem is next: I am inserting a record in detail table. When I wont to moved into next record, detail table is getting in post state, but I am still in the same record, why do not wont to move in next record? Then I must tu press another demand to move cursor in next record.
I have a master detail relation.
In master table I have got a field, which have a value (SUM of field in detail table).
In detail table on event After post: I wrote next statemets:
MainTable.Edit;
MainTable.FieldByName('nameofthefield').asFloat:= SUM Value; //EX: 12
MainTable.Post;
The problem is next: I am inserting a record in detail table. When I wont to moved into next record, detail table is getting in post state, but I am still in the same record, why do not wont to move in next record? Then I must tu press another demand to move cursor in next record.