Hello,
can someone help me with a primary filter on multi-enum field ?
just the function :
If i understand, i need something like item::fromRaw or item converter ?
it's crazy, we can do this in 3 click with advanced pack report, report filter !
Thanks
can someone help me with a primary filter on multi-enum field ?
just the function :
PHP Code:
<?php
namespace Espo\Custom\Classes\Select\Epidemio\PrimaryFilters;
use Espo\Core\Select\Primary\Filter;
use Espo\ORM\Query\SelectBuilder;
use Espo\ORM\Query\Part\Condition as Cond;
class MultiEnumField implements Filter
{
public function __construct()
{
}
public function apply(SelectBuilder $queryBuilder): void
{
$queryBuilder->where([
'MultiEnumField' => ['value1', 'value2'],
]);
}
}
it's crazy, we can do this in 3 click with advanced pack report, report filter !
Thanks
Comment