Hi,
Yeah that is where you need to actually do some coding where when you save the record, it will grab who is the person that is saving the record and will insert that in your BOSS field.
Here is an example of what the Asset Module has done to generate a ID to a calculated field:
in AssetsCommon:
public static function generate_id($id) {
if(is_array($id)) $id = $id['id'];
return '#'.str_pad($id, 4, '0', STR_PAD_LEFT);
}
public static function process_request($data, $mode) {
switch($mode) {
case 'adding':
$data['active']=true;
break;
case 'added':
Utils_RecordBrowserCommon::update_record('crm_assets',$data['id'],array('asset_id'=>self::generate_id($data['id'])), false, null, true); //Notice it updated the newly added record and inter the Generate_ID function to the record.
break;
default:
break;
}
return $data;
}
You have to do something similar to get what you need.
Thanks,
jjjj12212