hello
I have a drop down in accounts module showing the clinic names if i select a clinic
i have to show the clinic information below.
ex:clinic Address:
Clinic Phone Number:
please guide me your help is appreciated
thanks in advance
hello
I have a drop down in accounts module showing the clinic names if i select a clinic
i have to show the clinic information below.
ex:clinic Address:
Clinic Phone Number:
please guide me your help is appreciated
thanks in advance
You need to create a ajax based javascript to get the clinic information onchange the dropdown.
Another suggestion is to use a default relate field for clinic and this attribute like that into the field defs:
CheersPHP Code:'displayParams' =>
array (
'additionalFields' => array(
'website' => 'website',
'phone_office' => 'phone_office',
'phone_fax' => 'phone_fax',
'phone_alternate' => 'phone_alternate',
'employees' => 'employees',
'annual_revenue' => 'annual_revenue',
'industry' => 'industry',
'account_type' => 'account_type',
),
),
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,
thanks for quick replay,
as u said i created the separate php file by using ajax based javascript
this is my custom code:
$query = "select id,name_of_company,first_name from a234_clinics where id='$id'";
$res = $db -> query($query);
$row = $db -> fetchByAssoc($res);
and i am getting following error:
Fatal error: Call to a member function query() on a non-object in /opt/lampp/htdocs/sugar51/modules/Contacts/.................... on line 298
please help me to resolve this issue,
thanks in advance.
Add global $db; to the code.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks