Blog

SugarCRM Modify the size of Text Area

Write a code in, /custom/ modules/Quotes (Module Name)/metadata/editviewdefs.php   1 =>    array (      0 =>      array (        'name' => 'term_c',        'label' => 'LBL_TERM',        'displayParams' =>        array (          'rows' => 9,          'cols' => 80,          'maxlength' => 150,        ),      ),    ),  


June 29, 2014 0

SugarCRM custom search by query

custom\Extension\modules\c_Debtor\Ext\Vardefs koi pan field ma lakhi devanu <?php  // created: 2014-06-06 11:41:24 $dictionary['c_Debtor']['fields']['s_c']['labelValue']='s'; $dictionary["c_Debtor"]["fields"]["test"] = array( 'name' => 'test', 'vname' => 'test', 'type' => 'varchar', // function to call that will return html that will be inserted 'function' => array('name' => 'test', 'returns' => 'html', 'include' => 'custom/modules/c_Debtor/dropdown.php'), 'required' => false, 'do_report' => false, 'reportable'…
Read more


June 29, 2014 0

Disable Dahslets and AddDashlet button for all users

1) step: Open file : sugarcrm/modules/Home/index.php comment line 280 $sugar_smarty->assign('maxCount', empty($sugar_config['max_dashlets_homepage']) ? 15 : $sugar_config['max_dashlets_homepage']); $sugar_smarty->assign('dashletCount', $count); $sugar_smarty->assign('dashletIds', '["' . implode('","', $dashletIds) . '"]'); //$sugar_smarty->assign('columns', $display); 2) perform repair. 3) now Dahslet will be disable from all users FOR DISABLE ADD-Dashlet Button. Goto => System Setting  Click on Prevent user customizable Homepage layout: checkbox. Result : Without…
Read more


January 2, 2014 0

Change the size of the default field of Sugar CRM

modules/Tasks (module name)/vardefs.php   Change ,   'name' => array (   'name' => 'name',   'vname' => 'LBL_SUBJECT',   'dbType' => 'varchar',   'type' => 'name',   'len' => '70',   'importable' => 'required', ),    


November 29, 2013 0

SugarCRM How to make custom field as a global search

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  


September 29, 2013 0

SugarCRM Quote PDF customization

1) Customize Fonts in default PDF of SugarCRM copy and Edit  custom/modules/Quotes/sugarpdf/sugarpdf.quotes.php add html tag for font. like '<b>'.value.'</b>' for bold '<u>'.value.'</u>' for underline '<i>'.value.'</i>' For Example you want to change for quote number :  Code:  1.(For Label) : $quote[0]['TITLE'] = '<u><b><i>'.$mod_strings['LBL_PDF_QUOTE_NUMBER'].'</i></b></u>';                  2.(For Value)     :  …
Read more


September 29, 2013 0

Duplicate Finder

This is what i have find during surfing on internet, Give an indication next to phone number if it is found to be repeated over various Contacts : 1.Create a process_record logic hook in custom/modules/Contacts/logic_hooks.php <?php $hook_array['process_record'][] = Array(1, 'Check Dup', 'custom/modules/Contacts/checkDup.php','checkDupC', 'checkDupF'); 2. Create a file checkDup.php in SugarCRM/custom/modules/Contacts/ <?php class checkDupC{ function checkDupF($bean){…
Read more


July 7, 2013 0

Dependable Required Field

e.g.:         My Module Name : Desner        Field                   : desnerStatus_c ( DropDown ) (Values :  nitin, blog, spot, nrsd) Condition : if i select nrsd from desnerStatus_c dropdown want description required else remove validation. Step1: Copy or make path like Sugarcrm/custom/modules/Desner/views/view.edit.php Step2: copy…
Read more


June 26, 2013 0

SugarCRM Set the default value of the field

Write a PHP code in,   D1/custom/Extension/modules/Quotes (Module Name)/Ext/Vardefs/vardefs.php <?php   $dictionary['Quote'](Module name)['fields']['term_c'](field name)['default'] = 'Terms & Conditions:’;   ?> Then go to Admin -> Repair -> Repair Database.  


May 29, 2013 0

Hide Subpanel from Module

Want to Hide Subpanel from Module Permanently? Goto : sugarcrm/custom/Extension/modules/Leads/Ext//Layoutdefs/ see for the  layoutdefs.ext.php if not than create. ( e.g. hide champaign subpanel ) edit that file and add line: unset($layout_defs['Leads']['subpanel_setup']['campaigns']);  Than repair and rebult. Note: You need to create the folders and files if they doesn´t exist.              If you…
Read more


May 29, 2013 0