<?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: tJavaRow: can't break a string into substrings and load them all in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-can-t-break-a-string-into-substrings-and-load-them-all/m-p/2332138#M101050</link>
    <description>Hi&lt;BR /&gt;Here is a workaround.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
    <pubDate>Mon, 20 Feb 2012 03:14:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-02-20T03:14:04Z</dc:date>
    <item>
      <title>tJavaRow: can't break a string into substrings and load them all</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-can-t-break-a-string-into-substrings-and-load-them-all/m-p/2332137#M101049</link>
      <description>I'm actually working on a talend job. I need to load from an excel file to an oracle 11g database.&lt;BR /&gt;I can't figure out how to break a field of my excel entry file within talend and load the broken string into the database.&lt;BR /&gt;For example I've got a field like this:&lt;BR /&gt;toto:12;tata:1;titi:15&lt;BR /&gt;And I need to load into a table, for example grade:&lt;BR /&gt;| name | grade |&lt;BR /&gt;|--------|--------|&lt;BR /&gt;| toto    |12      |&lt;BR /&gt;| titi      |15      |&lt;BR /&gt;| tata    |1        |&lt;BR /&gt;|-----------------|&lt;BR /&gt;Actually I used a tJavaRow:&lt;BR /&gt;for(String pair : input_row.details.split(";")) {&lt;BR /&gt;    String[] kv = pair.split(":");&lt;BR /&gt;    &lt;BR /&gt;    String line= kv;&lt;BR /&gt;    String allele = kv;&lt;BR /&gt;    &lt;BR /&gt;   &lt;BR /&gt;    System.out.println(input_row.classe);&lt;BR /&gt;    System.out.println(name);&lt;BR /&gt;    System.out.println(note);	&lt;BR /&gt;	&lt;BR /&gt;    output_row.classe = input_row.classe;&lt;BR /&gt;    output_row.name = name;&lt;BR /&gt;    output_row.note = note;&lt;BR /&gt;}&lt;BR /&gt;If I only print it in console it work fine (break all the string and display all the substrings)&lt;BR /&gt;But if I use output_row.variable, it work only for the fisrt substring.</description>
      <pubDate>Sat, 16 Nov 2024 12:21:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-can-t-break-a-string-into-substrings-and-load-them-all/m-p/2332137#M101049</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: tJavaRow: can't break a string into substrings and load them all</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-can-t-break-a-string-into-substrings-and-load-them-all/m-p/2332138#M101050</link>
      <description>Hi&lt;BR /&gt;Here is a workaround.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Mon, 20 Feb 2012 03:14:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-can-t-break-a-string-into-substrings-and-load-them-all/m-p/2332138#M101050</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-20T03:14:04Z</dc:date>
    </item>
  </channel>
</rss>

