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,
);