 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Andy Mackie Guest
|
|
| Back to top |
|
 |
Frenk Guest
|
Posted: Wed Jul 02, 2003 2:54 pm Post subject: Re: ADO/MIDAS AutoInc field nightmare... |
|
|
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
|
|
| Back to top |
|
 |
Frenk Guest
|
Posted: Wed Jul 02, 2003 4:48 pm Post subject: Re: ADO/MIDAS AutoInc field nightmare... |
|
|
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
|
Posted: Wed Jul 02, 2003 10:16 pm Post subject: Re: ADO/MIDAS AutoInc field nightmare... |
|
|
"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 |
|
 |
|
|
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
|
|