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,

Roberts

The code at the moment looks like this:

[Control("String")]
class TractorNumber
{
/// <summary>
///
/// </summary>
public void lookup()
{
super();
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 ));

sysTableLookup.parmQuery(query);
sysTableLookup.performFormLookup();
}

}

Related
Recommended