Dynamic list in dropdown

Four Stars

Dynamic list in dropdown

I like this: https://help.talend.com/pages/viewpage.action?pageId=22523042
But, how to create a dynamic list for tJava coming from a PostgreSQL query instead of hardcoded list?
Martin F
Community Manager

Re: Dynamic list in dropdown

Hi Martin
Thanks for your comment, I will modify the article to add another use case that the items coming from a data source and create a dynamic list. Here I show you how to do that, use a tJavaFlex instead of tJava, we will store the items coming from a data source to a list one by one in the main part of the component, and create the list at the end part of component. For details, please see my screenshots.
Code on the end part of tJavaFlex:
String [] nameList=new String;
JFrame frame = new JFrame("Input Dialog Example");
String returnValue = (String) JOptionPane.showInputDialog(frame,
"Select the name you want to query?","Employee Information",JOptionPane.QUESTION_MESSAGE,null,nameList,nameList);

Talend | Data Agility for Modern Business