Related Field - Search

Hi all,

I extended the Calls module by a ID field pae_contact_id, linked to the Contacts Module. (see code below of the pae_vardef)

Additional I want to display & search the Contact Name and Country in the Calls List View.

Displaying the data works, but when trying to search the Country, I just get a list of all Contacts to filter on a single Contact:

What do I need to change to be able to search for e.g. all Calls where the Contact Country is "DE"

Many thanks for your help :)

Sven

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// custom/Extension/modules/Calls/Ext/Vardefs/pae_vardefs.php
$dictionary['Call']['fields']['pae_contact_id'] = array(
'name' => 'pae_contact_id',
'vname' => 'LBL_PAE_CONTACT_ID',
'type' => 'id',
);
$dictionary['Call']['fields']['pae_contact_name'] = array(
'name' => 'pae_contact_name',
'vname' => 'LBL_PAE_CONTACT_NAME',
'rname' => 'name',
'type' => 'relate',
'id_name' => 'pae_contact_id',
'source' => 'non-db',
'link' => 'pae_contact_link',
'sort_on' => array('name',),
'module' => 'Contacts',
'table' => 'contacts',
'audited' => true,
);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parents
  • Hi Sven,

    You can do this by adding custom filters on the Contact ID in the calls module. Please go through Filters and Filter Examples in SugarCRM documentation. It is very clearly explained in this documentation on how to create custom filters in SugarCRM.

    Hope this helps you:)

    Thank you,

    Poojitha K

Reply
  • Hi Sven,

    You can do this by adding custom filters on the Contact ID in the calls module. Please go through Filters and Filter Examples in SugarCRM documentation. It is very clearly explained in this documentation on how to create custom filters in SugarCRM.

    Hope this helps you:)

    Thank you,

    Poojitha K

Children
  • Hi Poojitha,

    Thanks for your help, I read these documents, but I think you got me wrong.

    When clicking on this filter on Calls List View:

    I get this Search and Select, with all Contacts listed and can select one or multiple Contacts, whose calls are then shown in the Calls List view.

    But I would like to have the Countries selectable there, like in the Contacts List View, and then get all Calls where the Contacts are in the specified countries.