 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
herman Guest
|
Posted: Mon Apr 16, 2007 2:32 pm Post subject: Excluding field from updating |
|
|
Hello,
I have TSQLConnection, TSQLQuery, TDataSetProvider, TClientDataSet with
1 not updateble field
I don't want to update the field, but for display purposes I edit it as
normal.
Is there a way of excluding this field from updating?
Thanks in advance
Herman |
|
| Back to top |
|
 |
Kees Vermeulen (Kever-IT) Guest
|
Posted: Mon Apr 16, 2007 4:20 pm Post subject: Re: Excluding field from updating |
|
|
Herman,
You can clear the updated value of the field in the
TDatasetProvider.BeforeUpdateRecord event:
DeltaDS.FieldByName('').Clear;
Kees
herman schreef:
| Quote: | Hello,
I have TSQLConnection, TSQLQuery, TDataSetProvider, TClientDataSet with
1 not updateble field
I don't want to update the field, but for display purposes I edit it as
normal.
Is there a way of excluding this field from updating?
Thanks in advance
Herman |
|
|
| Back to top |
|
 |
J.L.Rocha Guest
|
Posted: Mon Apr 16, 2007 10:18 pm Post subject: Re: Excluding field from updating |
|
|
herman escribió:
| Quote: | Is there a way of excluding this field from updating?
|
Yes, with TField.ProviderFlags.
See "Influencing How Updates Are Applied" topic in Help for details.
--
Jose Luis Rocha |
|
| Back to top |
|
 |
Herman Guest
|
Posted: Thu Apr 26, 2007 7:41 pm Post subject: Re: Excluding field from updating |
|
|
Thanks both of you
Regards
Herman
Kees Vermeulen (Kever-IT) schreef:
| Quote: | Herman,
You can clear the updated value of the field in the
TDatasetProvider.BeforeUpdateRecord event:
DeltaDS.FieldByName('').Clear;
Kees
herman schreef:
Hello,
I have TSQLConnection, TSQLQuery, TDataSetProvider, TClientDataSet
with 1 not updateble field
I don't want to update the field, but for display purposes I edit it
as normal.
Is there a way of excluding this field from updating?
Thanks in advance
Herman |
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|