uniquery1.Options.SetFieldsReadOnly:=false;

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

uniquery1.Options.SetFieldsReadOnly:=false;

Post by wjzws » Sat 31 Oct 2009 00:32

Hello:

UniConnection1.Options.DisconnectedMode:=true;
uniquery1.Options.SetFieldsReadOnly:=false;
// uniquery1.Options.RequiredFields:=false;
uniquery1.CachedUpdates:=false;

post, suggesting that: "RequiredField must have a value"

after setr uniquery1.Options.RequiredFields:=false; is OK

This should be a problem, right?


Also, niquery1.Options.SetFieldsReadOnly:=false; some read-only field such as: calculation of the primary key fields and self-growth can be rewritten.

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

Re: uniquery1.Options.SetFieldsReadOnly:=false;

Post by wjzws » Mon 02 Nov 2009 12:07

Solved! In fact, this works fine!



There is often a need for read-only field to write!

 

Such as: select 0 img, 'ABC' name, * from Test



Then need to write the field: img name



Thank you! ! This function works fine! ! , Hoping to preserve!

Post Reply