Hi Best Developers!
I Want to add a new field to Contacts Module by changing source code (I ONLY want to change source code) but i dont know how.
Please Help me.
Thanks
Hi Best Developers!
I Want to add a new field to Contacts Module by changing source code (I ONLY want to change source code) but i dont know how.
Please Help me.
Thanks
Hi,
In sugarcrm you have two option to add a field by source code or by sutdio. If you want to add a field through code then you have to open a directory of sugarcrm/custom/contacts/ext/vardefs/vardefs.php, i this php you have to write a variable defination and use sugarcrm/custom/contacts/language/lan_us.eng.php for label define and lastly use sugarcrm/custom/contacts/metadata/editviewdefs.php for show field in edit view of contact.
I think this may help you or click here for more. Send me the appreciation reply if i solve your problem
Best regards,
SARFARAZ AHMED KHAN
Karachi, Pakistan
skype: genius_crystal
genius_crystal@hotmail.com
92-314-2595624
Hi ptctaji
Why dont you just use the Studio to create the field? All changes will be upgrade safe and you can easily edit them in the future.
Daniel de Carvalho Passarini
"Fascinating" - Dr. Spock
If you want to add a field through code then you have to open a directory of
sugarcrm/custom/contacts/ext/vardefs/vardefs.php
PHP Code:'some_field' =>
array (
'name' => 'some_field',
'vname' => 'LBL_SOME_FIELD',
'type' => 'varchar',
'len' => '255',
),
use sugarcrm/custom/contacts/language/lan_us.eng.php for label define
sugarcrm/custom/contacts/metadata/editviewdefs.php for show field in edit view of contactPHP Code:'LBL_SOME_FIELD' => 'some field label',
sugarcrm/custom/contacts/metadata/detailviewdefs.php for show field in detail view of contactPHP Code:array (
'some_field',
),
sugarcrm/custom/contacts/metadata/listviewdefs.php for show field in list view of contactPHP Code:array (
'some_field',
),
Best regards,PHP Code:'SOME_FIELD' => array(
'width' => '15%',
'label' => 'LBL_SOME_FIELD',
'default' => true
),
Hi.
Thank you all.
I do your solutions but no change has been affected.
Did I Probably forget to do some details?
Can you help me with more details.
Thanks
Hi,
I think you forget to
Quick Repair and Rebuild from the admin Panel.
Hope it will help you
Thanks
Best Regards
---------------------------------------
Jaydeepsinh Sagar - iNET PROCESS
jaydeepsinh.sagar@inetprocess.com
http://www.inetprocess.co.in
Projects :
iNETDocs -Project of the month(Dec-2008)
iNETGoogleMap
Hi
I do "Quick Repair and Rebuild" after all solutions but there is not any change.
Please Help Me.
Thanks.
Hi Best Developers!.
Thank you all to help me.
I finally add new field in this module (Contacts Module).
Thanks a lot.
I congratulate you on the progress.![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks