<br><div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br><br> I would need help why the example at
<br><a href="http://wiki.vtiger.com/index.php/Creating_New_Fields_in_Existing_Modules">http://wiki.vtiger.com/index.php/Creating_New_Fields_in_Existing_Modules</a><br>does not work for me.<br>I have installed vTiger 5.2.0
on Linux box.<br>I put this query:<br>"insert into vtiger_field values( 4, '',<br>'event_time','vtiger_login_hist', 2, 5, 'event_time',<br>'Event', 0, 0, 0,100, 2, 5, 1, 'DT~O', 1, 0, 'BAS' );"<br>vtiger_login_hist is my prop table., event_time is one of
<br>its field.<br>Then I got some error when visiting a certain Contact:<br>"Fatal error: Call to a member function Move() on a<br>non-object in<br>/var/www/vtigercrm/include/database/PearDatabase.php "<br>This error comes from query_result function.
<br>When I switched on debugging info it was seen that result<br>parameter received here was empty.<br>Actually I don't know what I made wrong.<br>The whole purpose of my experiment would be to have a<br>proprietary field on Contacts/More information.
<br>I hope some one can help me here.<br><br>br,<br><br>Gabor</blockquote><div><br>Hi,<br><br>I don't understand what you want to do. But if you want to add a new field in a Contact you should do something like this : <br>
if you want to add a new field on Contact, assuming your field ids called 'card_number' you should insert a new line in vtiger field with thoses values : <br><br>insert into a vtiger_contact values (4, an_unused_field_id, 'card_number', 'card_number', 'vtiger_contactdetails',1,7,'card_number','card_number',1,0,0,15,0,4,1,'I~O',1,NULL,'ADV' )
<br><br>And add a the new column in vtiger_contactdetails.<br><br>(assuming your new field is called 'mobile_phone' and is used to store a phone number.)<br><br> </div><br></div>