Skip to main content
Mitratech Success Center

Client Support Center

Need help? Click a product group below to select your application and get access to knowledge articles, webinars, training content, and release notes or to contact our support team.

Authorized users - log in to create a ticket, view tickets status and check your success plan details.

 

CSV Lookup Table

A guide to creating and using CSV files to populate fields values.

Introduction

CSV lookup tables work in a similar way to the OU structure. The CSV tables align to a number of single select fields, and the selection of a value in the first single select triggers set values to appear in the second single select, and so on.

This is particularly useful for long lists with many options and sub-options.

Creating a .CSV Lookup Table

To use this type of field setup, you must first create an Excel spreadsheet. In the first column are the values for the first single selection box – in the second column, the second single select box and so on. Each column should be given a heading.

I have created some example data below.

clipboard_e920588e39744d38b808d3a7f2a1d49e5.png

Some important notes:

  • Data must not contain any ampersands (&) or commas (,).
  • Ensure no Whitespace is added to the start of end of words in the file

Each value in the second column must have a corresponding value in the first column. In the example below, Buzz Lightyear is not assigned a “Movie” and therefore will not show when “Toy Story” is selected.

In the example below, you can see there is no value in the first column next to Buzz Lightyear. This mean that once the file is loaded and Toy Story is selected in the first field, the only options to present in the second field will be Woody and, Rex. Buzz Lightyear will not be a selectable option as its not been identified as being related to Toy Story.

clipboard_e2a66e2a8a659f5fea5d7b66ee7749937.png

The screenshot below shows how the data should be entered in order for Buzz Lightyear to be a selectable value when the first field is set to Toy Story.

clipboard_e085f70ae39d40f59d428e0601c52e3c9.png

Once data file has been created ensure its saved as a CSV UAT – 8 (comma delimited) file as shown in the screenshot below.

clipboard_ed9ab3ad4e85f10f43a174070d4452aea.png

Importing the CSV File

  • Main System Navigation > Smart Form Builder (New) > Lookup Tables

clipboard_e1f1ad159dd4169b8aefb8c0613d73fed.png

  • Create a New Table using the button in the header.

clipboard_ebe70fd6418600d74188c7cd11f10741a.png

  • This will open a new tab.

clipboard_e13578dcf7fdbe364fbd23a2817eec60b.png

  • Table Name and, Description fields - set these to be the same name as the .csv file name. For example: If the CSV file has been saved as Disney Movie Character CSV –
    this is what is entered in the Table Name and, Description fields as shown in the screenshot above
  • Click the Add Column button – the following screen will appear:

clipboard_e550feab2cc230867831465d9ce55120d.png

  • Column 1: Column Name = the column heading in the CSV file (eg. Movie) and, ‘Keyword’ to Yes > Click Ok

clipboard_ec0ff614ae857c5f02129ce50489226a5.png

  • Click the Add Column button again and add the name of Column B in your CSV file into the Column Name field and Click OK (note – the Keyword is only set to Yes for Column 1).
  • Repeat this step for all remaining columns in the CSV file
  • Once the setup is complete, the screen will look similar to that shown below:

clipboard_eca373adf03338fa21c6298bfb86eef72.png

  • Click Save
  • The Lookup will now appear in the list of Lookup tables (you may need to click the blue refresh arrows in the top bar underneath “New Table” in order to see it)

clipboard_e6362078db1baa99b57be1b759df66009.png

  • Click the Table Name in the list > the table will open and you will see the following button bar – click the Import button

clipboard_e1328746080c85756adad8e27f8210b62.png

  • Locate your saved CSV file post which you will see the following message.

clipboard_e3008761bd126aed824834f6afa28c3e7.png

  • After about 15 minutes you will receive an email confirming success import. You can also confirm the successful import by opening the Lookup Tables screen and clicking on your Table Name. If the import has been successful you will see the Import message in the Import log.

clipboard_e6251d8b69a5e5d489193fe0984cca635.png

Configuring Lookup Table Fields

The next step is to create the fields that will be referencing the data in the CSV file.

  • From within Smart Form Builder (New), > Field library > New field.
    • Field type = Single Select
    • Option Type = Imported Lookup Tables

clipboard_e449dd8b3ecff8f31365cfab453148542.png

  • Click on the selection list in the Look up Table field and select your CSV file from the list

clipboard_ed3d3d0d798669fc0639ab754b80dcef3.png

  • Within the Look up Table Column field, select the column heading that corresponds to your first column in your CSV File

clipboard_e06eb59b3191b9e6600efed3ed65a2bd8.png

  • Configure the rest of the field settings as usual > Save

The remaining fields are now created. Note - you will need to create as many fields as there are columns in your Excel spreadsheet. So if there are 5 columns in your spreadsheet you need to create 5 fields, etc.

  • Create the second as follows:
    • Field Type = Single Select
    • Option Type = Imported Lookup Tables
    • Parent Lookup Table = the name of the first column in the field (this tells the system which field its to reference in order to determine the values to display in this second field.  In this example we select Movie.

clipboard_e2d5cbb8da912e3005ab50ea0fde651b6.png

In doing so the system will know that if The Little Mermaid is selected in the first field then it is to display Princess Ariel, Daniel Barnes, Ursula, Sebatian and, Flounder as the selectable values in the second field:

clipboard_e2edd5140f05f7c8315a713c9eeb4f8cd.png

  • Look up Table Column = the name of the second column in the CSV file

clipboard_e30d10373d8b9ce344a84b811510dceaa.png

  • Complete the rest of the field settings as usual > Save

If required, setup the third and remaining fields – the two fields that are key to the use of the CSV file are the Parent Lookup Table field and, the Lookup Column field.

  • Parent Lookup = the name of the preceding field in the CSV file
  • Parent Lookup Table = the name of the column in the CSV file from which this field will draw its values.

Troubleshooting

If your fields aren’t functioning as expected:

  • Ensure your file import was successful. If it was not, check the below.
    • Ensure that the file imported was a .csv file, NOT a .xlsx file

 

  • Ensure all columns in your spreadsheet are populated.
    • All values in Column 2 MUST have a value in Column 1;
    • All values in Column 3 MUST have a value in Columns 1 and 2 etc
    • Ensure there are no whitespaces after the values in the file

 

  • Check for special characters - in particular commas and ampersands – these do impact the lookup tables and must not be used.  If, when clicking on the lookup table in the instance, it is completely blank, it is possible the data contains these characters.

 

IMS CSV Lookup fields V1.0.pdf

  • Was this article helpful?