This topic contains 2 replies, has 2 voices, and was last updated by Andrey Yatsenko 4 years, 10 months ago.
- Topic
Hello guys!
I added a custom field in my Account entity: host location.
The only problem with this field occurs when someone try to filter it. The default method (checkbox), created by Oro, would work, but it’s veeeeery slow, because it returns almost 6000 results at once.
So, I tryed to change the filter type through event listener, but with the event listener the filter stops to work. If I try to select only rows where host location is blank, for exemple… I appli the filter, but nothing happens. All the rows still there.
Here is my listener:
12345678public function onBuildBefore(BuildBefore $event){$config = $event->getConfig();$config->offsetAddToArrayByPath('[filters][columns][host_location]', ['type' => 'string','data_name' => 'a.host_location']);}
The forum ‘OroCRM – Programming Questions’ is closed to new topics and replies.