custom pop-up popupdefs.php for contacts
i am trying to customize a pop-up for contacts, i added the next fields (first_name', 'last_name', 'account_name','department','primary_adress_countr y','idioma_c','email','description','primary_adres s_street','primary_adress_city','phone_work','phon e_home') to basic search and it works... the problem comes when adding this fields to the list view , and don `t appears
i added to the listviewdefs in popupsdefs.php and i can ` t see the fields in view ...
other problem is that i added the field (email) , and don `t appears....
can u help me?
thanks
global $mod_strings;
//**aqui modificamos para que salga el campo contacts.department**/
$popupMeta = array('moduleMain' => 'Contact',
'varName' => 'CONTACT',
'orderBy' => 'contacts.first_name, contacts.last_name',
'whereClauses' =>
array('first_name' => 'contacts.first_name',
'last_name' => 'contacts.last_name',
'account_name' => 'accounts.name',
'account_id' => 'accounts.id'),
'searchInputs' =>
array('first_name', 'last_name', 'account_name','department','primary_adress_countr y','idioma_c','email','description','primary_adres s_street','primary_adress_city','phone_work','phon e_home'),
'create' =>
array('formBase' => 'ContactFormBase.php',
'formBaseClass' => 'ContactFormBase',
'getFormBodyParams' => array('','','ContactSave'),
'createButton' => $mod_strings['LNK_NEW_CONTACT']
),
'listviewdefs' => array(
'NAME' => array(
'width' => '20%',
'label' => 'LBL_LIST_NAME',
'link' => true,
'default' => true,
'related_fields' => array('first_name','last_name','account_name','dep artment','primary_adress_country','idioma_c','emai l_address','description','primary_adress_street',' primary_adress_city','phone_work','phone_home')),
'ACCOUNT_NAME' => array(
'width' => '25',
'label' => 'LBL_LIST_ACCOUNT_NAME',
'module' => 'Accounts',
'id' => 'ACCOUNT_ID',
'default' => true,
'sortable'=> true,
'ACLTag' => 'ACCOUNT',
'related_fields' => array('account_id')),
'TITLE' => array(
'width' => '15%',
'label' => 'LBL_LIST_TITLE',
'default' => true),
'LEAD_SOURCE' => array(
'width' => '15%',
'label' => 'LBL_LEAD_SOURCE',
'default' => true),
),
'searchdefs' => array(
'first_name',
'last_name',
'account_name',
'title',
'lead_source',
'campaign_name',
'department',
'primary_adress_country',
'idioma_c',
'email',
'description',
'primary_adress_street',
'primary_adress_city',
'phone_work',
'phone_home',
array('name' => 'assigned_user_id', 'type' => 'enum', 'label' => 'LBL_ASSIGNED_TO', 'function' => array('name' => 'get_user_array', 'params' => array(false))),
)
);
?>
Sugar Version : 5.0.0e
Sugar Edition : SugarCE
Category : Campaigns,contacts,pop-ups,etc
Operating System : (Ubuntu Server 7.10 gutsy gibbon)
PHP Version : PHP 5.2.3-1ubuntu6.3 (cli) (built: Jan 10 2008 09:38:37)
Database : MySQL Client Version 5.0.45
Web Server : Apache 2.2.4
Browser : Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.8.1.14) Gecko/20080418 Ubuntu/7.10 (gutsy) Firefox/2.0.0.14
Hardware:
1 Gb de ram
Procesador Intel pentium 4 CPU 1,70 Ghz
Testing Computer
EUVE European Virtual engineering
http://www.euve.net/es/index.asp
Vitoria-Gasteiz
Basque Country
Spain
Bookmarks