Re: Field 'ID' can not be modified in master/detail
- From: "Vitali Kalinin" <vitkalinin@xxxxxxxxx>
- Date: Fri, 12 Oct 2007 11:55:09 +0300
Ok this is what had happen to you - when you are inserting record to Detail
dataset ID field of Detail is initialized with value of ID parameter (this
is how Delphi implementation of master detail works). But since Detail ID is
autoincrement field this operation fails. In general it was very bad idea to
use same name for PK in Master and Detail tables. Also autoincrement fields
are PITA in modern apps, which extensively utilizes disconnected mode.
.
- Follow-Ups:
- Re: Field 'ID' can not be modified in master/detail
- From: Eugene V. Goldberg
- Re: Field 'ID' can not be modified in master/detail
- References:
- Field 'ID' can not be modified in master/detail
- From: Eugene V. Goldberg
- Re: Field 'ID' can not be modified in master/detail
- From: Del Murray
- Re: Field 'ID' can not be modified in master/detail
- From: Eugene V. Goldberg
- Field 'ID' can not be modified in master/detail
- Prev by Date: Re: TADOStoredProc
- Next by Date: Re: Field 'ID' can not be modified in master/detail
- Previous by thread: Re: Field 'ID' can not be modified in master/detail
- Next by thread: Re: Field 'ID' can not be modified in master/detail
- Index(es):