Page 1 of 1

UniDac 3.00.0.3 roAfterInsert refresh

Posted: Sat 31 Oct 2009 00:20
by wjzws
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!!!

Posted: Mon 02 Nov 2009 10:41
by Plash
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.

Posted: Mon 02 Nov 2009 12:00
by wjzws
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!