SugarCRM How to make custom field as a global search

SugarCRM How to make custom field as a global search

September 29, 2013 PHP SugarCRM Uncategorized 0

add the file: custom/Extension/modules/Accounts/Ext/Vardefs/search.php which consisted of

 

<?php

$dictionary['Account']['fields']['shop_id_c']['rname'] = 'shop_id_c';

$dictionary['Account']['fields']['shop_id_c']['vname'] = 'LBL_SHOP_ID_C';

$dictionary['Account']['fields']['shop_id_c']['type'] = 'relate';

$dictionary['Account']['fields']['shop_id_c']['dbType'] = 'int';

$dictionary['Account']['fields']['shop_id_c']['table'] = 'accounts_cstm';

$dictionary['Account']['fields']['shop_id_c']['unified_search'] = true;

?>

 

then Rebuild Extensions

 

Leave a Reply

Your email address will not be published. Required fields are marked *