<?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: List values to many rows in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/List-values-to-many-rows/m-p/2318256#M88617</link>
    <description>Use a tJavaFlex.&lt;BR /&gt;I use a tJavaFlex for this sort of thing in this tutorial (&lt;A href="https://www.rilhia.com/quicktips/quick-tip-row-multiplication" rel="nofollow noopener noreferrer"&gt;https://www.rilhia.com/quicktips/quick-tip-row-multiplication&lt;/A&gt;). Look at the For Loop I use at step 2.&lt;BR /&gt;&lt;BR /&gt;Hope it helps</description>
    <pubDate>Thu, 19 Jan 2017 20:24:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-01-19T20:24:05Z</dc:date>
    <item>
      <title>List values to many rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/List-values-to-many-rows/m-p/2318255#M88616</link>
      <description>&lt;P&gt;In a database column, there are many values that are actually an array of values.&amp;nbsp; Each item in the array needs to be written out to a separate row in the target, a database in this case.&lt;BR /&gt;Example:&lt;BR /&gt;The source looks like:&amp;nbsp; A\n-B\n-C\n-&lt;BR /&gt;Which is actually an array:&amp;nbsp; [A, B, C]&lt;BR /&gt;This needs to be written out into 3 rows&lt;BR /&gt;A&lt;BR /&gt;B&lt;BR /&gt;C&lt;BR /&gt;Getting the source into an array may be handled using a JavaRow using:&lt;BR /&gt;String temp = input_row.housing_types.trim();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; String types[] = temp.split("\n- ");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ArrayList&amp;lt;String&amp;gt; housingTypesList = new ArrayList&amp;lt;String&amp;gt;();&lt;BR /&gt;The problem I can't seem to figure out is how to get the values into separate rows.&amp;nbsp; It might be possible write the array out to a temp file and then read it back in as if it was a delimited file, but that is rather kulgy.&amp;nbsp; &lt;BR /&gt;Is there a way to write each element of the array into a separate row?&lt;BR /&gt;Many thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2017 17:50:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/List-values-to-many-rows/m-p/2318255#M88616</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-19T17:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: List values to many rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/List-values-to-many-rows/m-p/2318256#M88617</link>
      <description>Use a tJavaFlex.&lt;BR /&gt;I use a tJavaFlex for this sort of thing in this tutorial (&lt;A href="https://www.rilhia.com/quicktips/quick-tip-row-multiplication" rel="nofollow noopener noreferrer"&gt;https://www.rilhia.com/quicktips/quick-tip-row-multiplication&lt;/A&gt;). Look at the For Loop I use at step 2.&lt;BR /&gt;&lt;BR /&gt;Hope it helps</description>
      <pubDate>Thu, 19 Jan 2017 20:24:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/List-values-to-many-rows/m-p/2318256#M88617</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-19T20:24:05Z</dc:date>
    </item>
  </channel>
</rss>

