• Document Up to Date

Configured List of Pairs Data Source

Source Control Configured List of Pairs

Configuration

Source Control Configured List of Pairs Configuration
Title
Data source title to show on the form.
Name / Variable Name
Name of variable to store the final result in.
Description/Purpose
Data source that loads pairs from external xml file.
Properties


- Data Type: Key Value pairs type (String, Integer, Float, Date, HTML).
- List Name: Name of the xml file with the pairs to be used by the data source.
- Sort: Sort pairs when displaying on form.

Creating an XML file for the data source

The Configured List of Pairs Data Source uses xml files to get the list of pairs that are going to be used. You can create your own list and save it into the repository at “/cstudio/config/sites/{SITE_NAME}/form-control-config/configured-lists”

<list>
     <values>
         <item>
             <key>blue</key>
             <value>Blue</value>
         </item>
         <item>
             <key>red</key>
             <value>Red</value>
         </item>
     </values>
 </list>

colors.xml