Subject | Re: [IBO] TQuery -> TIBOQuery problem? |
---|---|
Author | neczusia |
Post date | 2003-08-14T16:09:54Z |
It's strange, because I created simpler test application with needed
components, set up all their properties to be the same as in my main
application, and it works fine! Strange, I don't know where to look
for the cause of problem. But I won't give up :-). I could miss
something...
Thanks for trying to help, but seems that I have to do it by myself :
(.
Neczka
--- In IBObjects@yahoogroups.com, "Jason Wharton" <jwharton@i...>
wrote:
components, set up all their properties to be the same as in my main
application, and it works fine! Strange, I don't know where to look
for the cause of problem. But I won't give up :-). I could miss
something...
Thanks for trying to help, but seems that I have to do it by myself :
(.
Neczka
--- In IBObjects@yahoogroups.com, "Jason Wharton" <jwharton@i...>
wrote:
> I will more than likely need a sample application demonstrating thisI was
> problem.
>
> Jason Wharton
>
> ----- Original Message -----
> From: "neczusia" <neczusia@w...>
> To: <IBObjects@yahoogroups.com>
> Sent: Wednesday, August 13, 2003 12:13 AM
> Subject: [IBO] TQuery -> TIBOQuery problem?
>
>
> > Hi,
> >
> > I recently converted my application from BDE to IBO classes. But I
> > noticed something I can't deal with.
> >
> > Previously I used TQuery -> (linked to) TDataSetProvider ->
> > TClientDataSet -> TDataSource. I set DSP.LogChanges = false when
> > adding some records during runtime to avoid changing data on the(for
> > server (I want to do something locally). I could append those new
> > records to CDS with the same ID as some already existing records
> > some purpose I need it to be displayed with the same ID). No errorI
> > occurred.
> >
> > Now, when I changed TQuery to TIBOQuery it doesn't work any more.
> > obtain an exception "key violation" during calling CDS->Post(). Ithat
> > tried to set DSP->Constraints = false, I checked that Constraints
> > properties of CDS and IBOQuery are empty. I suspect, after all,
> > the constraints are imported from database somehow (?). Is thereany
> > method to append locally two (or more) records to CDS with thesame
> > ID, when on server database ID has PK constraint?
> >
> > If anyone has an idea how to force CDS not to check ID field to be
> > unique - please, HELP!
> >
> >
> > Regards,
> > Neczka.