Popup Form Lookup Validation

Hello Frnds,

I am facing problem to validate lookup values in my popup forms where no datasource available

scenario is that in my poupform where i have some customized lookups which is accepting values not exist in lookup list, now i want to validate this values

pls suggest solution for it!!

Rgds

BK

In validate method of that lookup control just write as:

if (Lookupfield.valuestr())

{

select firstonly custGroup

where custGroup.CustGroup == Lookupfield.valuestr();

if (!custGroup)

{

ret = checkFailed(‘The specified customer group does not exists.’);

}

}