Custom filter by teams

Hi everyone,

I am trying to create a new custom filter that filters by teams in some module's list views (accounts, cases, contacts and opportunities). I defined those filters like this example:


$viewdefs['Opportunities']['base']['filter']['basic']['filters'][] = array(
    'id' => 'filterTeamsOpportunities',
    'name' => 'LBL_FILTER_TEAMS',
    'filter_definition' => array(
        array(
            'team_name' => array(
                '$in' => array(),
            ),
        ),
    ),
    'editable' => false,
    'is_template' => true
);

I also tried placing the custom filter in its own path rather than in the "basic" path, and not to use the Extension framework:

custom/Extension/modules/Opportunities/Ext/clients/base/filters/basic/filterTeamsOpportunities.php

to something like

custom/modules/Opportunities/clients/base/filters/filter-by-team/filterTeamsOpportunities.php

and then updated the array accordingly, like:

$viewdefs['Opportunities']['base']['filter']['filter-by-team']['filters'][] = array(

I have not been able to make it work in these ways. Has anyone tried to do something like this?

Thanks in advanced!

Parents Reply Children