Hi,
I have written a lookup code on a field, but if user types, it isn't validating the data that is being typed.
Somehow, it can be that either the written text is validated from the page that is opening on lookup or writing anything is not allowed??
0
Answers
Just have to use the below kind of code for such cases:
IF "Account Type" = "Account Type"::"G/L Account" THEN BEGIN
GLAccount1.INIT;
IF "Account No." <> '' THEN
GLAccount1.GET("Account No.");//Over here it will give u the error, where it checks it existence..still i guess, how it will work for non primary keys??
END;
Nevertheless, there are two fundamentally different kinds of lookup triggers, those on table fields, and those on controls on Pages.