Results 1 to 4 of 4

Thread: How to take out _c when creating a custom field

  1. #1
    leowolff is offline Sugar Community Member
    Join Date
    Apr 2009
    Posts
    126

    Default How to take out _c when creating a custom field

    Hello, I need to create a new field on a custom module that can not have _c at its end. The reason is that I will carry over the data from another module into this one and the name of the fields must be the same.

    1. Can I create it in studio and change it on vardefs later?
    2. Should I create it first on vardefs and repair it to appear on the studio?
    3. In any case do I have to change the name direct on the database?

    Thanks in advance
    Regards,

    SugarCRM CE v.5.2.0c
    Windows platform
    MySQL v.5.0.37
    phpMyAdmin - 2.11.2.2
    Apache Server v.2.0

  2. #2
    leowolff is offline Sugar Community Member
    Join Date
    Apr 2009
    Posts
    126

    Default Re: How to take out _c when creating a custom field

    What I did that worked was:
    1. Create the field on Studio
    2. Go to the database and change the name of it on 2 tables: fields_meta_data and customtable_cstm

    Terrible aproach but it work and I had to do it fast.
    Regards,

    SugarCRM CE v.5.2.0c
    Windows platform
    MySQL v.5.0.37
    phpMyAdmin - 2.11.2.2
    Apache Server v.2.0

  3. #3
    Secret_Agent_99's Avatar
    Secret_Agent_99 is offline Senior Member
    Join Date
    Jan 2010
    Location
    Island of Unknown Orgin
    Posts
    27

    Cool Re: How to take out _c when creating a custom field

    HI

    Creating custom variables help when trying to implement logic hooks and do mutliple calcuations in the customized folder for that module. I find _c helped in that case or distinguishes variables

    Agent 99
    Secret Service

  4. #4
    datasponge is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    San Jose, CA, USA
    Posts
    553

    Default Re: How to take out _c when creating a custom field

    You can also create it in the main table (instead of _cstm) using a vardefs Extension. This does not add the _c and since it is in the main table, the naming is consistent.

    I used this approach to create a datetime field, since you can't get the time portion through studio.

    Phil

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Creating custom field
    By vcetinick in forum Help
    Replies: 1
    Last Post: 2007-11-16, 09:22 AM
  2. Custom field: Creating Select button
    By gladiorlic in forum Help
    Replies: 2
    Last Post: 2007-08-24, 03:01 PM
  3. Creating autoincrement custom field
    By joshmark in forum Help
    Replies: 4
    Last Post: 2006-12-28, 11:18 AM
  4. Creating sorted list by custom field...
    By johnhardin in forum Help
    Replies: 2
    Last Post: 2006-03-27, 08:54 PM
  5. Creating Custom Field - Checkbox
    By ethanb in forum Help
    Replies: 2
    Last Post: 2005-07-11, 08:55 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •