Master/Detail error in version 6.50.0.37

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
flls
Posts: 20
Joined: Fri 13 Apr 2007 17:05

Master/Detail error in version 6.50.0.37

Post by flls » Fri 12 Sep 2008 14:43

After I installed the version 6.50.0.37 21-Aug-08
I began to have problems with tables master / detail during insertion, table detail does not bring any record, only if I make a close and then open one.

Why?

Sorry for my BAD english.

PS: Build again in version 6.50.0.35 and all ok.

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Mon 15 Sep 2008 12:08

The new ODAC version does not refresh the detail dataset when a record is inserted in the master dataset.

In the next ODAC build we'll add the RefreshParamsOnInsert global variable that you can set to True to get the old behaviour:

Code: Select all

initialization
  RefreshParamsOnInsert := True;
end;

flls
Posts: 20
Joined: Fri 13 Apr 2007 17:05

Post by flls » Fri 14 Nov 2008 17:37

His trick worked, but it would be possible to include this option in TOraSession? All I create new datamodule have to remember to put this code or I will have problems.

Thanks.

Sorry by my bad english

Plash wrote:The new ODAC version does not refresh the detail dataset when a record is inserted in the master dataset.

In the next ODAC build we'll add the RefreshParamsOnInsert global variable that you can set to True to get the old behaviour:

Code: Select all

initialization
  RefreshParamsOnInsert := True;
end;

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Mon 17 Nov 2008 13:33

You should set this variable only once in your application. You don't need to set it in each datamodule.

flls
Posts: 20
Joined: Fri 13 Apr 2007 17:05

Post by flls » Wed 26 Nov 2008 12:59

I know that, but I have several different applications and for each new application I have to remember to put this code.
Plash wrote:You should set this variable only once in your application. You don't need to set it in each datamodule.

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Fri 28 Nov 2008 12:54

Even if we add this option to TOraSession, you need to remember to change it.

You should try not to use functionallity of inserting detail records before inserting a master record in your new code.

Post Reply