<?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 Pass parameters from tmysql to tjava in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Pass-parameters-from-tmysql-to-tjava/m-p/2370591#M133618</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to read set of columns from a mysql table and pass their values to a function in java written inside tjava.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jun 2018 09:47:38 GMT</pubDate>
    <dc:creator>Moe1</dc:creator>
    <dc:date>2018-06-07T09:47:38Z</dc:date>
    <item>
      <title>Pass parameters from tmysql to tjava</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pass-parameters-from-tmysql-to-tjava/m-p/2370591#M133618</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to read set of columns from a mysql table and pass their values to a function in java written inside tjava.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 09:47:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pass-parameters-from-tmysql-to-tjava/m-p/2370591#M133618</guid>
      <dc:creator>Moe1</dc:creator>
      <dc:date>2018-06-07T09:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Pass parameters from tmysql to tjava</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pass-parameters-from-tmysql-to-tjava/m-p/2370592#M133619</link>
      <description>&lt;P&gt;Ok, do it!&lt;BR /&gt;what are your problems&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 09:54:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pass-parameters-from-tmysql-to-tjava/m-p/2370592#M133619</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2018-06-07T09:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Pass parameters from tmysql to tjava</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pass-parameters-from-tmysql-to-tjava/m-p/2370593#M133620</link>
      <description>&lt;P&gt;Use a tMySQLInput to retrieve your data. Connect this to a tFlowToIterate component. If you have 3 columns in your select called "name", "age", and "date_of_birth", and your row coming from your DB component is called "row1", you will get the following globalMap variables created (these are the keys)....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"row1.name"&lt;/P&gt;&lt;P&gt;"row1.age"&lt;/P&gt;&lt;P&gt;"row1.date_of_birth"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Connect your tJava to the tFlowToIterate using an iterate link. Then you can access the values from the keys shown above like below (assuming that "name" is a String, "age" is an Integer and "date_of_birth" is a Date)....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;String nameVal = ((String)globalMap.get("row1.name"));
Integer ageVal = ((Integer)globalMap.get("row1.age"));
Date dobVal = ((Date)globalMap.get("row1.date_of_birth"));&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 09:56:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pass-parameters-from-tmysql-to-tjava/m-p/2370593#M133620</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-07T09:56:54Z</dc:date>
    </item>
  </channel>
</rss>

