Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A similar example can be found here:

Widget Connector
urlhttps://www.youtube.com/watch?v=NifKQWWjN9g&feature=youtu.be

 

In the second example (the one from YouTube), we have taken the options for the Continent custom field from the database as well. The script used in this example are:

Code Block
titleContinent data source
string[] continents = sql("myDB", "select distinct continent from countries");
return continents;
Code Block
titleCountry data source
string continent = argv["customfield_10109"];	//the dependent field
string[] countries = sql("myDB", "select country from countries where continent = '" + continent + "'");
return countries;

...

For the moment, dependent fields can only be used by the two custom fields with autocomplete, and can only be referred in SIL data sources.

...