Creating a dynamic drop-down list
In the first scenario, you have hard-coded the list in a tJava
component. However, the items of the list might come from a data source. For example, the
items can be stored in a database table and their number can be unknown.
This Job uses the following components:
- a tMysqlInput component to query the people information from the employee table,
- a tJavaFlex component to prepare the dynamic drop-down list and store the value selected by the user at runtime, in the context variable,
- a second tMysqlInput component to generate the information processed by tJavaFlex,
- a tLogRow component to print the result in the console.