vtiger Forum Index vtiger
The Honest Open Source CRM
 

where modulescf record the datas?
Click here to go to the original topic

 
       vtiger Forum Index -> French Forum
Previous topic :: Next topic  
Author Message
hairpriz



Joined: 13 Feb 2008
Posts: 16

Posted: Thu Mar 13, 2008 8:57 am    Post subject: where modulescf record the datas?  

Hello
I added customized fields in the contact module but i would like to save the datas into another table than contactscf. So i need to know where is the sql lines which record and display this datas.
Someone knows this informations or another way to achieve that purpose:?:
Thanks :wink:
Back to top  
Asha



Joined: 31 Jul 2007
Posts: 300

Posted: Thu Mar 13, 2008 9:49 am    Post subject: where modulescf record the datas?<br /><a href=&quo  

Hi,

The queries to add Custom field information are in modules/Settings/AddCustomFieldToDB.php

Custom fields listing is done by modules/Settings/CustomFieldList.php

Values to a particular custom field of a module (say Contacts) is added through Save.php of that module and the tablename for the custom field values is picked from $tab_name array stored in the module.

Eg: $tab_name array of Contacts.php has the table name 'vtiger_contactscf'. So the custom field values will be inserted into this table through Save.php of modules/Contacts.
Back to top  
hairpriz



Joined: 13 Feb 2008
Posts: 16

Posted: Thu Mar 13, 2008 11:20 am    Post subject: Re: where modulescf record the datas?  

Hi Asha and thanks for your quick reply! :)
If i understand well, I just need to change vtiger_contactscf in contact.php into "my new table" if I have the same fields in this table? :)
Back to top  
Asha



Joined: 31 Jul 2007
Posts: 300

Posted: Thu Mar 13, 2008 2:42 pm    Post subject: Re: where modulescf record the datas?  

Hi,

Yes. To save the data in some other table and not in vtiger_contactscf, changing the table name in $tab_name and $tab_name_index should help you.
Back to top  
hairpriz



Joined: 13 Feb 2008
Posts: 16

Posted: Thu Mar 13, 2008 2:49 pm    Post subject: Re: where modulescf record the datas?  

When i do that i cannot see the contactdetails anymore :(

Here is the error
Code:
Fatal error: Call to a member function Move() on a non-object in C:\wamp\www\vtigercrm5\vtigerCRM\include\database\PearDatabase.php on line 441

and the sql errors
Code:
(mysql): select * from 0 where vtiger_parks=>contact_id=22
1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '0 where vtiger_parks=>contact_id=22' at line 1


         ADOConnection._Execute(select * from 0 where vtiger_parks=>contact_id=22, false) % line  861, file: adodb.inc.php
      ADOConnection.Execute(select * from 0 where vtiger_parks=>contact_id=22) % line  240, file: PearDatabase.php
   PearDatabase.query(select * from 0 where vtiger_parks=>contact_id=22) % line 1206, file: CRMEntity.php
CRMEntity.retrieve_entity_info(22, Contacts) % line   41, file: DetailView.php
include(C:\wamp\www\vtigercrm5\vtigerCRM\modules\Contacts\DetailView.php) % line  649, file: index.php
[/quote]

Do you see what's wrong?
Back to top  
 
       vtiger Forum Index -> French Forum
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.15 © 2001, 2002 phpBB Group