In a field I have the formula below in a dialoglist but it is not working. "Incorrect datatype for database function".
It works when in an actionbutton.
Server := MyServer;
DB := MyDB;
@If(!@IsNewDoc & @IsDocBeingLoaded; @Unavailable; @Unique(@DbColumn
("":"NoCache"; MyServer:DB; "MyView"; "")))