Hi There,
I am looking to implement custom filters with 'OR' expression for two different field , As in sugar we can not use 'OR' expression for two different fields , it's working for same field.
How can i implement it for two different fields ?
Hi There,
I am looking to implement custom filters with 'OR' expression for two different field , As in sugar we can not use 'OR' expression for two different fields , it's working for same field.
How can i implement it for two different fields ?
As per documentation for endpoint filterList, a structure like that should work:
$viewdefs['Accounts']['base']['filter']['basic']['filters'][] = array( 'id' => 'filterRQPartners', 'name' => 'LBL_FILTERRQPARTNERS', 'filter_definition' => array( array( '$or' => array( 'ignore_dealer_in_report_c' => array( '$equals' => 0 ), 'dead_2_c' => array( '$equals' => 0 ), ), ), ), 'editable' => false, 'is_template' => true, );
Regards
I have already tried this but it's not working for two different fields.
I have already tried this but it's not working for two different fields.
did you try on JS side ?
Rodrigo Manara
Sr. Developer