protected function SetSecondEditorControlValue($value) { parent::SetSecondEditorControlValue($value); if (!$this->useComboBox) { $this->lookupDataset->AddFieldFilter($this->idColumn, new FieldFilter($value, '=')); $this->lookupDataset->Open(); if ($this->lookupDataset->Next()) { /** @var AutocomleteComboBox $editorControl */ $editorControl = $this->GetSecondEditorControl(); $editorControl->SetDisplayValue($this->lookupDataset->GetFieldValueByName($this->valueColumn)); } $this->lookupDataset->CLose(); $this->lookupDataset->ClearFieldFilters(); } }