Is it possible to show the phone number of the selected account in detail view? And in the printed case too?
Is it possible to show the phone number of the selected account in detail view? And in the printed case too?
You need to do the following:
- Create an extended vardefs on Cases to add the field 'phone_office', remember to setup this field as a 'non-db' one;
- Create an extended language on Cases to add the label for this new field;
- Create a custom controller for Cases and implement the functions action_detailview and action_editview in order to properly populate this fields based on value from Account field;
- Into editviewdefs of Cases add the following attribute on account_name field definition:
Then go to Admin -> Repair -> Rebuild ExtensionsPHP Code:'displayParams' =>
array (
'field_to_name_array' => array(
'id' => 'account_id',
'name' => 'account_name',
'phone_office' => 'phone_office',
),
'additionalFields' => array(
'phone_office' => 'phone_office',
),
),
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.
Thanks!Will try to figure it out! I'm not into programming at all so it's going to be though. I lost you at extended vardefs..
That's how good my programming is. But I'll search. If I really can't find it I'll post a message here!
I looked at it. But I think this is going to be a bit to hard for me to do. As said I'm a total newbie to sugar and I have poor programming/developer skills. But I thank you for you answer. The very short answer is yes it can be done!But not for me I guess, or if you would be so kind to guide me through this.... then maybe. I do not use a language pack. For what its worth...
Last edited by lucaspr; 2010-03-12 at 03:00 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks