Monday 4 December 2017

Where all the Dropdown Values of SugarCRM/SuiteCRM Saved? / Module name not appearing in SugarCRM MenuList?

In Sugarcrm you know that we can create dropdown lists. But its not saved in the database directly. Think some of you will be confused or tried hard to find out where it is stored. Actually it is stored in CRM/custom/language/en_us.lang.php.
This File have many Purposes...


  •  It stores the labels of all modules in the CRM system. So in old CRM versions, If you create some module and its Module name not showing in the main menu, You can include in this File. 

For eg:-

$app_list_strings['moduleList']['Attendance']='Attendance Log';


  •  All dropdown lists will be saving in this file.. 


For eg: if we create a dropdown called companytype_list, that will saved like this in the same file..

$GLOBALS['app_list_strings']['companytype_list']=array (
'' => '',
'Engineering' => 'Engineering',
'Fashion_Industry' => 'Fashion Industry',
'Food_Beverages' => 'Food & Beverages',
'IT' => 'IT',
'Medical' => 'Medical',
'Supermarkets' => 'Supermarkets',
'Automative' => 'Automative',
'Others' => 'Others',
);

so If you want to skip creating dropdown lists in multiple CRMs, Just copy paste same array in the en_us.lang.php file & do a Quick repair & rebuild from Admin.

No comments:

Post a Comment