<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Dynamic list in dropdown in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-list-in-dropdown/m-p/2229265#M20244</link>
    <description>Hi Martin 
&lt;BR /&gt;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. 
&lt;BR /&gt;Code on the end part of tJavaFlex: 
&lt;BR /&gt; 
&lt;PRE&gt;String [] nameList=new String;&lt;BR /&gt;nameList=list.toArray(nameList);&lt;BR /&gt;JFrame frame = new JFrame("Input Dialog Example");&lt;BR /&gt;String returnValue = (String) JOptionPane.showInputDialog(frame,&lt;BR /&gt;"Select the name you want to query?","Employee Information",JOptionPane.QUESTION_MESSAGE,null,nameList,nameList);&lt;/PRE&gt; 
&lt;BR /&gt;Shong 
&lt;BR /&gt; 
&lt;IMG src="https://community.talend.com/legacyfs/online/membersTempo/674/129155_1.png" /&gt; 
&lt;IMG src="https://community.talend.com/legacyfs/online/membersTempo/674/129155_2.png" /&gt; 
&lt;IMG src="https://community.talend.com/legacyfs/online/membersTempo/674/129155_3.png" /&gt;</description>
    <pubDate>Thu, 06 Mar 2014 02:43:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-03-06T02:43:29Z</dc:date>
    <item>
      <title>Dynamic list in dropdown</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-list-in-dropdown/m-p/2229264#M20243</link>
      <description>Hi
&lt;BR /&gt;I like this: 
&lt;A href="https://help.talend.com/pages/viewpage.action?pageId=22523042" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/pages/viewpage.action?pageId=22523042&lt;/A&gt;
&lt;BR /&gt;But, how to create a dynamic list for tJava coming from a PostgreSQL query instead of hardcoded list?
&lt;BR /&gt;Martin F</description>
      <pubDate>Wed, 05 Mar 2014 19:05:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-list-in-dropdown/m-p/2229264#M20243</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-05T19:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic list in dropdown</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-list-in-dropdown/m-p/2229265#M20244</link>
      <description>Hi Martin 
&lt;BR /&gt;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. 
&lt;BR /&gt;Code on the end part of tJavaFlex: 
&lt;BR /&gt; 
&lt;PRE&gt;String [] nameList=new String;&lt;BR /&gt;nameList=list.toArray(nameList);&lt;BR /&gt;JFrame frame = new JFrame("Input Dialog Example");&lt;BR /&gt;String returnValue = (String) JOptionPane.showInputDialog(frame,&lt;BR /&gt;"Select the name you want to query?","Employee Information",JOptionPane.QUESTION_MESSAGE,null,nameList,nameList);&lt;/PRE&gt; 
&lt;BR /&gt;Shong 
&lt;BR /&gt; 
&lt;IMG src="https://community.talend.com/legacyfs/online/membersTempo/674/129155_1.png" /&gt; 
&lt;IMG src="https://community.talend.com/legacyfs/online/membersTempo/674/129155_2.png" /&gt; 
&lt;IMG src="https://community.talend.com/legacyfs/online/membersTempo/674/129155_3.png" /&gt;</description>
      <pubDate>Thu, 06 Mar 2014 02:43:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-list-in-dropdown/m-p/2229265#M20244</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-06T02:43:29Z</dc:date>
    </item>
  </channel>
</rss>

