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 

Re: ADO/MIDAS AutoInc field nightmare...

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier)
View previous topic :: View next topic  
Author Message
Andy Mackie
Guest





PostPosted: Wed Jul 02, 2003 8:08 am    Post subject: Re: ADO/MIDAS AutoInc field nightmare... Reply with quote



"Frenk" <franc.rotar (AT) email (DOT) si> wrote

Quote:
Any idea how to refresh Client Dataset (calling function RefreshRecord)
with
AutoInc primary key when using ADOExpress as DS provider.

Here's a couple of links discussing this:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=3c7277e4_2%40dnew
s&rnum=1

http://bdn.borland.com/article/0,1410,20847,00.html



Andy Mackie




Back to top
Frenk
Guest





PostPosted: Wed Jul 02, 2003 2:54 pm    Post subject: Re: ADO/MIDAS AutoInc field nightmare... Reply with quote



I don't heve problem with inserting records but with Refreshing
(RefreshRecord method). I insert records using some other way.
Regards,
Frenk


"Andy Mackie" <_@_> wrote

Quote:
"Frenk" <franc.rotar (AT) email (DOT) si> wrote in message
news:3f00c4e6 (AT) newsgroups (DOT) borland.com...
Any idea how to refresh Client Dataset (calling function RefreshRecord)
with
AutoInc primary key when using ADOExpress as DS provider.

Here's a couple of links discussing this:

http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=3c7277e4_2%40dnew
s&rnum=1

http://bdn.borland.com/article/0,1410,20847,00.html



Andy Mackie






Back to top
Frenk
Guest





PostPosted: Wed Jul 02, 2003 4:48 pm    Post subject: Re: ADO/MIDAS AutoInc field nightmare... Reply with quote



7

"Dave Rowntree" <daver (AT) spam_offbrookswood (DOT) co.uk> wrote

Quote:
"Frenk" <franc.rotar (AT) email (DOT) si> wrote:

Any idea how to refresh Client Dataset (calling function RefreshRecord)
with
AutoInc primary key when using ADOExpress as DS provider.

When PF is AutoInc, I get error "Field ID cannot be modified".

I also removed pfUpdate from field ProviderFlags and set only to pfInKey
without any success. Is it even possible to do this using ADOExpress (I
read
in some ng that DBX are even worse...)?

What version of Delphi are you using?
--
Dave Rowntree



Back to top
Dave Rowntree
Guest





PostPosted: Wed Jul 02, 2003 10:16 pm    Post subject: Re: ADO/MIDAS AutoInc field nightmare... Reply with quote

"Frenk" <franc.rotar (AT) email (DOT) si> wrote:

Quote:
"Frenk" <franc.rotar (AT) email (DOT) si> wrote:

Any idea how to refresh Client Dataset (calling function RefreshRecord)
with
AutoInc primary key when using ADOExpress as DS provider.

When PF is AutoInc, I get error "Field ID cannot be modified".

I also removed pfUpdate from field ProviderFlags and set only to pfInKey
without any success. Is it even possible to do this using ADOExpress (I
read
in some ng that DBX are even worse...)?

You're right, MIDAS objects to any alterations being made to the
existing value of a TAutoInc field.

A workaround is to replace the TAutoInc field with a TInteger field
(on the DSP.DataSet).
--
Dave Rowntree

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier) 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.