<?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: Conversion in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Conversion/m-p/2225450#M17746</link>
    <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;This is still giving me an error! It is showing ' level1 can not be resolved or is not a field'.&lt;/P&gt;&lt;P&gt;Please advice on changes that can be made to make it work. The input and output rows were changed and adjusted according to my project, so that should not be the reason.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 31 Oct 2019 10:27:14 GMT</pubDate>
    <dc:creator>Y2J</dc:creator>
    <dc:date>2019-10-31T10:27:14Z</dc:date>
    <item>
      <title>Conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Conversion/m-p/2225448#M17744</link>
      <description>&lt;P&gt;I have been trying to solve this given problem&amp;nbsp; of 2 columns, code and items, by transposing the items column but in a hierarchical manner (picture attached). I have tried using denormalize and the pivot to column delimiters but nothing seems to work. Is there any method of solving this without the use of java components? If not, how would you approach solving it using the java components?&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Required_Output.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7b0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146247iE58940B2D628F7D3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7b0.png" alt="0683p000009M7b0.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:14:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Conversion/m-p/2225448#M17744</guid>
      <dc:creator>Y2J</dc:creator>
      <dc:date>2024-11-16T04:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Conversion/m-p/2225449#M17745</link>
      <description>&lt;P&gt;Connect a tJavaRow with the following code after your tFileInputExcel:&lt;/P&gt;
&lt;PRE&gt;// Remove trailing 0s from inpout code&lt;BR /&gt;String code = input_row.code.replaceAll("0*$", "");&lt;BR /&gt;// Length code gives the level
int level = code.length();
if(level == 0) level++;&lt;BR /&gt;// Store item value into the global variable assigned for the current level
globalMap.put("l" + level, input_row.item);
&lt;BR /&gt;// Global variables from level to 10 are emptied
for(int i = ++level;  i &amp;lt;= 10; i++)
	globalMap.put("l" + i, "");&lt;BR /&gt;&lt;BR /&gt;// Fill output fields
output_row.code = input_row.code; 
output_row.level1 = (String)globalMap.get("l1");
output_row.level2 = (String)globalMap.get("l2");
output_row.level3 = (String)globalMap.get("l3");
output_row.level4 = (String)globalMap.get("l4");
output_row.level5 = (String)globalMap.get("l5");
output_row.level6 = (String)globalMap.get("l6");
output_row.level7 = (String)globalMap.get("l7");
output_row.level8 = (String)globalMap.get("l8");
output_row.level9 = (String)globalMap.get("l9");
output_row.level10 = (String)globalMap.get("l10");&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 Oct 2019 09:09:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Conversion/m-p/2225449#M17745</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-10-31T09:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Conversion/m-p/2225450#M17746</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;This is still giving me an error! It is showing ' level1 can not be resolved or is not a field'.&lt;/P&gt;&lt;P&gt;Please advice on changes that can be made to make it work. The input and output rows were changed and adjusted according to my project, so that should not be the reason.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 10:27:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Conversion/m-p/2225450#M17746</guid>
      <dc:creator>Y2J</dc:creator>
      <dc:date>2019-10-31T10:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Conversion/m-p/2225451#M17747</link>
      <description>&lt;P&gt;You need to defined the tJavaRow schema like this:&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="schema.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M81Y.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132325iFA18381C6E9F7225/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M81Y.png" alt="0683p000009M81Y.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 10:59:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Conversion/m-p/2225451#M17747</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-10-31T10:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Conversion/m-p/2225452#M17748</link>
      <description>&lt;P&gt;Thanks a lot ,it's working now. &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 11:29:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Conversion/m-p/2225452#M17748</guid>
      <dc:creator>Y2J</dc:creator>
      <dc:date>2019-10-31T11:29:55Z</dc:date>
    </item>
  </channel>
</rss>

