Results 1 to 3 of 3

Thread: Where are Custom fields defined/stored?

  1. #1
    tj@estreet.com is offline Sugar Community Member
    Join Date
    Feb 2006
    Posts
    163

    Default Where are Custom fields defined/stored?

    Upon creating a set of custom fields for a given module (say “Accounts” for example) where are the fields defined/stored?

    I find $mod_strings['Bla_Bla_Bla_c'] = ' Bla_Bla_Bla'; etc. listed under \custom\modules\Accounts\language\en_us.lang.php --- but can find no reference to the fields elsewhere.

    Surely that's not the end of it?

    I copied the entire crm folder (many updates and custom modules) from my desktop to my tablet, wiped clean the config.php file and installed the crm anew. At that, I was delighted to find that all custom modules installed in one fell swoop with installation of the crm and appear to be functioning normally , but I’m completetly befuddled at the fact that the custom tables and fields created for Accounts and Contacts did NOT install, despite the presence of relevant Accounts and Contacts folders/files in the custom\modules folder. Please, what have I missed?

  2. #2
    sacramentojoe is offline Sugar Community Member
    Join Date
    Nov 2005
    Posts
    447

    Default Re: Where are Custom fields defined/stored?

    accounts_cstm is the database table that has the new fields. There code is smart and can figure pretty much everything out from the /custom/modules/Accounts/language/en_us.lang.php and this table.

  3. #3
    tj@estreet.com is offline Sugar Community Member
    Join Date
    Feb 2006
    Posts
    163

    Default Re: Where are Custom fields defined/stored?

    accounts_cstm is the database table that has the new fields. There code is smart and can figure pretty much everything out from the /custom/modules/Accounts/language/en_us.lang.php and this table.
    Fair enough, but why then, with /custom/modules/Accounts/language/en_us.lang.php in-tact, and in-place, isn't the table accounts_custom (or for that matter contacts_custom) being created upon install as described above?
    Thanks.

Thread Information

Users Browsing this Thread

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

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
  •