Re: Field 'ID' can not be modified in master/detail
- From: "Vitali Kalinin" <vitkalinin@xxxxxxxxx>
- Date: Fri, 12 Oct 2007 14:03:51 +0300
"Eugene V. Goldberg" <egold@xxxxxxxxx> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ
ÓÌÅÄÕÀÝÅÅ: news:470f4d83@xxxxxxxxxxxxxxxxxxxxxxxxx
so any workaround for this?Change yours pk names so that they will be unique acrooss DB.
If you cant do that. then:
1. Change Master SQL to: SELECT a.ID as MASTER_ID, a.* FROM MASTER a
2. Change Detail SQL to: SELECT * FROM DETAIL WHERE MASTER_ID = :MASTER_ID
3. Make sure that fake MASTER_ID is always the same as ID (my concern is
about insertion into Master dataset)
You are wrong here (at least for Delphi world).
i think this is only the case with ADO master-detail implementation,
i dont think other libraries put a value to detail foreign key field...
HTH,
Vitali
.
- 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
- Re: Field 'ID' can not be modified in master/detail
- From: Vitali Kalinin
- 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: Field 'ID' can not be modified in master/detail
- Next by Date: Re: TADOStoredProc
- Previous by thread: Re: Field 'ID' can not be modified in master/detail
- Index(es):
Relevant Pages
|