Hello,
I am trying to have the billing address shown in the Account detail view on only one line.
For how much I try with the Studio, I can't seem to be able to do it.
Is this a code modification or am I just missing some steps somewhere?
thanks,
a.
Hello,
I am trying to have the billing address shown in the Account detail view on only one line.
For how much I try with the Studio, I can't seem to be able to do it.
Is this a code modification or am I just missing some steps somewhere?
thanks,
a.
Address field is a set of 5 fields.
Address field is automatically rendered in DetailView to display in 3 lines.
In order to display it in a single line you need to:
- customize view.detail.php and override function preDisplay to render all address fields into a single one;
- customize detailviewdefs to update the type of address field from 'address' to 'varchar'.
Cheers
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.
You can customize the address-template en_us.DetailView.tpl in include\SugarFields\Fields\Address\
Harald Kuske
Pre-Sales Engineer Central Europe
SUGARCRM Deutschland GmbH
Erika-Mann-Str. 53, 80636 Munich, Germany
Email: hkuske@sugarcrm.com
Home: http://www.sugarcrm.com
You also can create a new non-db field handle by a function, and in this function you can computed the address informations to be just in one line.
Then you have to update the module detailview layout to replace the existing address field for this custom one.
Rafael Queiroz Gonçalves
Advanced OMG UML Certified Professional
Sun Certified Enterprise Architect for the Java Platform
Sun Certified Programmer for the Java 2 Platform
IBM Certified Advanced Application Developer - Lotus Notes and Domino
IBM Certified Application Developer - IBM WebSphere Portlet Factory
Computer Science Mastering / UFSC - PPGCC
@All,
thanks for your input.
Now I have been asked to leave it like it is, but convert the billing_address_street field from a single line
field to a HTML textarea field... can anyone point me to the place where that is defined?
thanks a lot,
a.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks