Hi,
you need to create a calculated field with display callback. In that callback you'll have to retrieve last phonecall record and display it's edit date.
About creating new fields please review our wiki: RB, RBO.
Also you can find in our code new_record_field and calculated, to get some examples.
Retrieve last edited phonecall would look like this (it's a bit more tricky so I'll help you):
$crits = array( ... ); // you need to define some crits to get proper phonecalls.
$rec = Utils_RecordBrowserCommon::get_records('phonecall', $crits, array(), array(':Edited_on' => 'DESC'), 1);
$date = '';
if ($rec) {
$rec = reset($rec); //get this one retrieved contact from array
$info = Utils_RecordBrowserCommon::get_record_info('phonecall', $rec['id']);
$date_raw = $info['edited_on'] ? $info['edited_on'] : $info['created_on'];
$date = Utils_RegionalSettingsCommon::time2reg($date_raw);
}
return $date;
I hope there is no mistype - I haven't run this code.
Regards,
Adam