I creat a dropdown field in account and want to see this on contact info...
the contact must inherits the account dropdown status
Any help?
I creat a dropdown field in account and want to see this on contact info...
the contact must inherits the account dropdown status
Any help?
You'll need to create a custom field in the Contacts module, that retrieves the value (of the drop down list) from its parent account.
Ryuhei Uchida
CEO, OpensourceCRM, Inc
SugarCRM Gold Reseller Partner
Help Forum Moderator
Calendar 2.0
http://blogs.itmedia.co.jp/ruchida/
I have create a custom field.. using the same dropdown
but details view is not updated with account status
You need to update the displayParams attribute for account_name into custom/modules/Contacts/metadata/editviewdefs.php this way:
CheersPHP Code:'displayParams' =>
array (
'field_to_name_array' => array(
'id' => 'account_id',
'name' => 'account_name',
'status' => 'status_c',
),
'additionalFields' => array(
'status' => 'status_c',
),
'billingKey' => 'billing',
'shippingKey' => 'shipping',
),
André Lopes
DevToolKit / Project of the Month - June 2009
Lampada Global Services- Open Source Solutions
Avenida Ipiranga, 318
Bloco B - CJ 1602
São Paulo, SP 01046-010
Brazil
Office: +55 11 3237-3110
Mobile: +55 11 7636-5859
e-mail: andre@lampadaglobal.com
Lampada Global delivers offshore software development and support services to customers around the world.
Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.
I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.
Hello,
I am very interested in this modification as I would like to display to Account custom fields in the Contact details.
The two fields from accounts would be 'Sector' (originally industry) and 'Membership Type', both fields are MultiSelect fields linked with drop-down lists.
If I'm not mistaken, I have to create custom fields in the contact module and add some lines into the custom/modules/Contacts/metadata/editviewdefs.php
I gave a try with the 'Sector' field, I went to the 'displayParams' attribute for account_name and made the modifications as follows:
For the 2 following lines, I couldn't find them in my original file and I was wondering whether it was part of the modification or if it was supposed to be in the original file (before modification)...PHP Code:'displayParams' =>
array (
'key' => 'billing',
'copy' => 'primary',
'billingKey' => 'primary',
'Sector ' => 'sector_c',
'additionalFields' =>
'Sector ' => 'sector_c',
array (
'phone_office' => 'phone_work',
),
I decided to modify the code anyway by trying to keep the same logic.PHP Code:'field_to_name_array' => array(
'id' => 'account_id',
Unfortunately, it doesn't work properly
The Sector field is shown in Studio and I added it to the DetailsView layout but when I check in the Contact module, the field appears but the content is empty.
I assume my modification is wrong but as I am not a real developer, I don't know exactly what to do
Could someone please help me on this?
And also, I would like to be able to make a Contact search with those two custom fields (sector and membership), is there a similar modification that I could make for the Advanced Search layout in the contact module?
Thanks a lot to who can help me![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks