BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Excluding field from updating

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress)
View previous topic :: View next topic  
Author Message
herman
Guest





PostPosted: Mon Apr 16, 2007 2:32 pm    Post subject: Excluding field from updating Reply with 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
Kees Vermeulen (Kever-IT)
Guest





PostPosted: Mon Apr 16, 2007 4:20 pm    Post subject: Re: Excluding field from updating Reply with quote



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





PostPosted: Mon Apr 16, 2007 10:18 pm    Post subject: Re: Excluding field from updating Reply with quote



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





PostPosted: Thu Apr 26, 2007 7:41 pm    Post subject: Re: Excluding field from updating Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.