How to import dropdown values

I have created a new module with some drop down fields.

Each of those dropdowns will have around 100 values. So I don't want to manually enter the values and also up-coming changes of dropdown values.

Is there a way to simply import the values via studio?

I have found the following links, which are helpful if you have access to file-system. I am currently working on a Sugar On-Demand project, so I got no direct access.

Allow import of a list of data for a drop down list 

How do I import a list of categories to make into different "industry" fields? 

Editing of dropdown values via code 

Parents Reply Children
  • Thanks for the reply. The hint with the installer is the right direction.

    Is there some tutorial for bloody beginners?

  • Finally I made it.

    Steps to take:

    1) Get a manifest.php file. Existing one or click “Export customization” in studio and remove not needed files/folders.A manifest.php is included.

    2) Edit language file e.g.: “de_DE.drp_preisliste_list.php” >> add all dropdown values.
    $app_list_strings['drp_preisliste_list'][0] = 'Springer VK-Brutto';
    $app_list_strings['drp_preisliste_list'][1] = 'VK-Brutto A/D/L';
    $app_list_strings['drp_preisliste_list'][22] = 'Basispreisliste NL / B in EURO';

    3) Save it to folder “/custom/Extension/application/Ext/Language”.

    4) Set correct file paths in manifest.php >> $installdefs >> language

    'language' =>

      array (

        0 =>

        array (

          'from' => '<basepath>/custom/Extension/application/Ext/Language/de_DE.drp_preisliste_list.php',

          'to_module' => 'application',

          'language' => 'de_DE',

        ),

      )

    5) Zip the files. Not the root folder!

    6) Upload .zip file with Module Loader into SugarCRM On-Demand.

    7) Done

    ------------------------------------------------------------------------------------------

    I have changed the "package" several times and re-uploaded the zip with Module Loader.

    It worked and didn't overwrite content on the target system.

    Hint: Never uninstall a package!

    Please add any comments to this steps if you got additional helpful information.