UniDac 3.00.0.3 roAfterInsert refresh

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
wjzws
Posts: 20
Joined: Fri 17 Jul 2009 02:33

UniDac 3.00.0.3 roAfterInsert refresh

Post by wjzws » Sat 31 Oct 2009 00:20

Hello:
Found to have such a problem: (unidac 3.003)
UniConnection1.Options.DisconnectedMode:=true;
uniquery1.CachedUpdates:=false;
query1.RefreshOptions: = [roAfterInsert, roAfterUpdate];


Query1 From Sqlserver have calculated field (The calculated field of Sqlserver ) , in the afterpost revealed that the calculated field is not updated from server, you must implement query1.RefreshRecord; or
set uniquery1.Options.SetFieldsReadOnly:=false; before they can.


I wonder if this is not a problem? Should be refreshed automatically calculate the value of the field, right?


Thanks!!!

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

Post by Plash » Mon 02 Nov 2009 10:41

By default the RefreshRecord method refreshes only data fields that belong to the updating table and can be updated.

Set the FullRefresh option to True to refresh all fields.

wjzws
Posts: 20
Joined: Fri 17 Jul 2009 02:33

Post by wjzws » Mon 02 Nov 2009 12:00

Plash wrote:By default the RefreshRecord method refreshes only data fields that belong to the updating table and can be updated.

Set the FullRefresh option to True to refresh all fields.
Problem solved the problem! Are you really too great!

Post Reply