System shows error if you press enter for a value which is not query value

Hello, friends

It would be nice if you could help me with a problem. I have a field with lookup however user can submit not only lookup values but any. When the inserted value does not correspond to any query value and the user press enter for submission the system shows error (you can submit the value later anyway). As the processing speed which is needed for this form is quite high is there any possiblity to cancel the automatic error log.

Best regards,


The code at the moment looks like this:

class TractorNumber
/// <summary>
/// </summary>
public void lookup()
Query query;

QueryBuildDataSource datasourceEBVehicles;
SysTableLookup sysTableLookup;

query = new Query();
datasourceEBVehicles = query.addDataSource(tableNum(EBVehicles));
sysTableLookup = SysTableLookup::newParameters(tableNum(EBVehicles), this);

sysTableLookup.addLookupfield(fieldNum(EBVehicles, EBVehicle ));
sysTableLookup.addLookupfield(fieldNum(EBVehicles,TMSCarrierCode ));
sysTableLookup.addLookupfield(fieldNum(EBVehicles,TMSName ));