Page 1 of 1

Master/Detail error in version 6.50.0.37

Posted: Fri 12 Sep 2008 14:43
by flls
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.

Posted: Mon 15 Sep 2008 12:08
by Plash
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;

Posted: Fri 14 Nov 2008 17:37
by flls
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;

Posted: Mon 17 Nov 2008 13:33
by Plash
You should set this variable only once in your application. You don't need to set it in each datamodule.

Posted: Wed 26 Nov 2008 12:59
by flls
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.

Posted: Fri 28 Nov 2008 12:54
by Plash
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.