Results 1 to 5 of 5

Thread: Where are the values for custom dropdown list stored?

  1. #1
    juanwang is offline Sugar Community Member
    Join Date
    Jun 2006
    Posts
    20

    Default Where are the values for custom dropdown list stored?

    Hi All,

    Thank you for providing such a great product. I'm very impressed!

    I'm currently reviewing SugarCRM to replace the existing proprietary product that we're using. I've opened up the bonet and dive straight in, so hopefully I can help others in the future.

    My question at the moment is :

    How do I import list data from a csv file into a custom dropdown list that I have created? I have explored the database and was unable to find a table where this information was being stored. Has anyone done this before?

    Cheers,

    JuanWang

  2. #2
    billsandusky is offline Member
    Join Date
    Apr 2006
    Posts
    5

    Default Re: Where are the values for custom dropdown list stored?

    Juan,
    The values are stored in the php file for your default language (mine is English as the example below)

    %SUGAR-INSTALL%/custom/include/language/en_us.lang.php



    The structure is easy to see, it is just building a php list

    IE

    $app_list_strings['YOUR-DROP-DOWN-NAME-HERE'] = array ( '' => '',
    '' => '',
    'LABEL' =>'VALUE',
    'LABEL' =>'VALUE',
    'LABEL' =>'VALUE',
    'LABEL' =>'VALUE',
    'LABEL' =>'VALUE',
    );


    Best of luck to you

    Bill

  3. #3
    juanwang is offline Sugar Community Member
    Join Date
    Jun 2006
    Posts
    20

    Default Re: Where are the values for custom dropdown list stored?

    Thanks Bill. Perfect!

  4. #4
    agnoses is offline Junior Member
    Join Date
    Sep 2010
    Posts
    1

    Exclamation Re: Where are the values for custom dropdown list stored?

    Hello,

    I have a lot of custom drop downs and customs fields created in a new install.
    I am having a problem with the leads being displayed.

    Can I copy the %SUGAR-INSTALL%/custom/include/language/en_us.lang.php file
    and backup the custom fields related tables for use to restore the custom drop downs and custom fileds into a new instance of SugarCRM CE ?

    Or am I missing files / DBs ?

    Lisa

  5. #5
    labanjohnson is offline Sugar Community Member
    Join Date
    Jul 2007
    Location
    Houston, TX
    Posts
    139

    Default Re: Where are the values for custom dropdown list stored?

    I found several custom drop down lists there, but one dropdown list in particular is not there, but must be someplace else because the drop down appears in the layouts. This custom drop down list is one that I created in Module Builder and is shared between several modules, custom modules and original modules. Any ideas where the list is hiding out?


    Quote Originally Posted by billsandusky View Post
    Juan,
    The values are stored in the php file for your default language (mine is English as the example below)

    %SUGAR-INSTALL%/custom/include/language/en_us.lang.php



    The structure is easy to see, it is just building a php list

    IE

    $app_list_strings['YOUR-DROP-DOWN-NAME-HERE'] = array ( '' => '',
    '' => '',
    'LABEL' =>'VALUE',
    'LABEL' =>'VALUE',
    'LABEL' =>'VALUE',
    'LABEL' =>'VALUE',
    'LABEL' =>'VALUE',
    );


    Best of luck to you

    Bill
    Laban Johnson
    SugarCE User, Idealist
    Open Source and Social Media Enthusiast, Social Entrepreneur
    Twitter: http://www.twitter.com/labanjohnson
    Facebook LinkedIn
    Home page: http://www.LabanJohnson.com

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
  •