Skip to main content

How to add a new column to vtiger existing table


When we add a new column to existing vtiger table, we need do more than just adding a column to selected vtiger table. If you do so, you may unable to do some DB operation like insert update and deleted. This is the way how we can do this.

1. Add a new column to selected table as normal
2. Add a new row to "vtiger_field" table as fallow


  
"insert into vtiger_field values (tabid, fieldid, columnname, tablename,
generatedtype, uitype, fieldname,
fieldlabel, readonly, presence, selected,maximumlength, sequence,
block, displaytype, typeofdata, quickcreate,quickcreatesequence, info_type)"


When you set a value to "presence" field be make sure to select 0 or 2. Otherwise your selected field not populated with vtiger field list.

Comments

  1. wow! That's I never realized it.
    But anyway, Wat about if we do creating Field
    from the User Interface.

    Well, go to Settings | Module Manager |
    Custom | Add Block. That's it!
    We add new fields from there.

    Have u ever used this to add new field as unique?

    ReplyDelete
  2. I did that, but when I create/modified a record, the change didn't save the information in the new field...what's wrong?

    ReplyDelete
  3. Hello friends!
    Can you help me please.
    I created field in vtiger_field table with uitype 51. But when i choose value in my module, it does'n save value in vtiger_mymodulename.
    What can i do else?
    I hope you will help me. Thanks

    ReplyDelete

Post a Comment

Popular posts from this blog

Ananda

Current Software Engineer at LM Jinasena and Company (PVT) LTD Past Software Engineer at Archmage (PVT) LTD Trainee software Engineer at Respere ( Sahana Company ) Education Faculty of Information technology, University of Moratuwa ( http://www.mrt.ac.lk/ )- 2005/2006 batch Dammissara National school Naththandia (2004-Maths section) Websites My Blog Facebook Ananda’s Summary I am a graduate of Faculty of Information technology University Of Moratuwa and keen on web development field and specialized on IT management. Ananda’s Specialties: Technology: Pervasive computing, mobile backend solutions, mobile solutions, GIS, neo-geography, Location based services, Web 2.0, Social web,FOSS, Disaster Management Solutions Organizational: Strategic Planning, Project Management, Business Development, New Product strategy Ananda’s Experience Software Engineer, LM Jinasena and Company (PVT) LTD L M Jinasena and Company (PVT) LTD Aug 2010 — Present Software Engineer, Archmage (PVT) LTD Archmage (...

Updating Vtiger Email module for sending Fax and SMS

Most of the time vtiger users searching modules for sending Fax and some time SMS to their customers. Actually writing a separate module for sending Fax may be a time consuming work. So that here I am going to explain how extend possibility of vtiger Email module to send Fax. If you good enough to understand this process, you can update this module to send SMS also. For sending emails we are normally using our own SMTP server. But we have to use some commercial API to send FAX and SMS. In here lets we select two commonly use APIs like "Interfax" and "clickatell" to send Fax and SMS. These APIs are providing email supported APIs to send Fax and SMS. That is why we can use vtiger Email module to send Fax and SMS. From this post I am not going to explain step by step who to hack Email module to send Fax and SMS because it is not a stride forward process. Actually I want to explain that we can use Vtiger Email module to send Fax and SMS other than sending emails aft...