Subject RE: [IBO] Master change causes detail to switch into edit mode
Author IBO Support List
Do you have the KeySource property set to another datasource?
 
Jason
 


From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com]
Sent: Monday, March 9, 2015 1:33 PM
To: IBObjects@yahoogroups.com
Subject: [IBO] Master change causes detail to switch into edit mode

I have two TIB_Queries set up as master detail.
Both master and detail are set to AutoEdit=False.

When scrolling trough the master set, the change of the master causes some of the details to switch the detail into edit mode, although there is no obvious difference in the data that could cause this unwanted effect.

In order to find out where this is coming from, I put a breakpoint into BeforeEdit of the detail set and by crawling through the call stack landed in TIB_Dataset.SysBeforeFieldDataChange of IB_Components. This routine is only called when the detail set is put in edit mode unwantedly.

The funny thing is, in the routine iI found this comment by Jason:
// I have decided to allow alteration of fields that the DML generating process
// will ignore anyway. This allows the KeyDescLinks assignments to be performed
// without causing an exception or taking the dataset into an editing mode.

Can anyone give me hint where else I can look for the cause of the problem

Thanks
Florian