Make sure you read about the custom field configuration first.
This type of data source helps you obtain the values which will populate the custom field, using SIL scripts.
The purpose of SIL Data Source is to bring fast results on the screen for your custom fields, writing your own SIL scripts.
Data may come from actual databases (using for instance the sql routine) or from files, legacy systems, etc . The script will bring you the results you need for your custom field.
After you have selected the SIL Data Source, you have to choose the SIL Script that you want to use from the list of sil programs .
Important
The SIL script receives the query in the argv (i.e. argv[
"query"
])
and must return an array of KPOption
objects (i.e. KPOption []).
You can find out more about using this type of data source from our Examples and Option Type pages.