Page 1 of 1
Master Detail relation, Detail Full Refresh after update
Posted: Fri 25 Dec 2009 11:00
by flyy
hi,
I had a master detail relation in my project. I set up master source etc. I want to Full refresh in detail dataset after update of Master dataset. is there a way on dataset to accomplish that
Posted: Mon 28 Dec 2009 08:15
by Plash
When you change the key field in master dataset, detail dataset is automatically refreshed. If you want to refresh the detail dataset after any master field is changed, use the AfterPost event for the master and call the Refresh method for the detail dataset in this event.
It is not true if you are inserting a master record
Posted: Thu 22 Apr 2010 00:15
by guto1234
Plash wrote:When you change the key field in master dataset, detail dataset is automatically refreshed. If you want to refresh the detail dataset after any master field is changed, use the AfterPost event for the master and call the Refresh method for the detail dataset in this event.
If you are inserting a master record, previously inserted detail records are not refreshed wher you fill the masterfield. It is incredible this is happening, since there are many situations this may be necessary.
Posted: Thu 22 Apr 2010 08:07
by Dimon