<?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: Read data from data input flow in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Read-data-from-data-input-flow/m-p/2315903#M86507</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for you reply.&lt;/P&gt;&lt;P&gt;I tried tFileInputFullRow. But then the column only has one element. When I want to print it, it still prints 'null'.&lt;/P&gt;&lt;P&gt;When I use tLogRow it works fine.&lt;/P&gt;&lt;P&gt;Do you have any idea what my component does wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Nov 2017 10:11:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-11-06T10:11:04Z</dc:date>
    <item>
      <title>Read data from data input flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-data-from-data-input-flow/m-p/2315901#M86505</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am writing a custom component and want to use some input data. I use tFileInputDelimited and connect it with tMap to my component.&lt;/P&gt;&lt;P&gt;I now want to read every line of input and log it to the console. (Later I want to convert it and use it within my component, that is why tLogRow is not the right solution).&lt;/P&gt;&lt;P&gt;How can I do that?&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;IMetadataTable preMetadata = null;&lt;BR /&gt; if ((node.getIncomingConnections()!=null)&amp;amp;&amp;amp;(node.getIncomingConnections().size()&amp;gt;0))&lt;BR /&gt; preMetadata = node.getIncomingConnections().get(0).getMetadataTable();&lt;BR /&gt; String inRowName = node.getIncomingConnections().get(0).getName(); &lt;BR /&gt; List&amp;lt;IMetadataColumn&amp;gt; columns = preMetadata.getListColumns();%&amp;gt;&lt;BR /&gt; for (int i = 0; i &amp;lt; columns.size(); i++){&lt;BR /&gt; IMetadataColumn column = columns.get(i);%&amp;gt; &lt;BR /&gt; System.out.println(String.valueOf(&amp;lt;%=inRowName%&amp;gt;.&amp;lt;%=column.getLabel() %&amp;gt;));&lt;BR /&gt; &amp;lt;% &lt;BR /&gt; } &lt;/PRE&gt;&lt;P&gt;but it keeps&amp;nbsp;printing&amp;nbsp;'null'..&lt;/P&gt;&lt;P&gt;When I run the same job but with tLogRow at the end (tFileInputDelimited - tMap - tLogRow), it logs every&amp;nbsp;value on the console so I assume there is now problem with loading the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Nov 2017 11:58:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-data-from-data-input-flow/m-p/2315901#M86505</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-04T11:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from data input flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-data-from-data-input-flow/m-p/2315902#M86506</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;There is a component tfileinputfullrow in talend which can read&lt;SPAN class="shortdesc"&gt; a file row by row and send complete rows of data as defined in the schema to the next component via a Row link.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="shortdesc"&gt;Have you tried to use this input component before your custom component to see if it works?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="shortdesc"&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="shortdesc"&gt;Sabrina&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 04:00:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-data-from-data-input-flow/m-p/2315902#M86506</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-06T04:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from data input flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-data-from-data-input-flow/m-p/2315903#M86507</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for you reply.&lt;/P&gt;&lt;P&gt;I tried tFileInputFullRow. But then the column only has one element. When I want to print it, it still prints 'null'.&lt;/P&gt;&lt;P&gt;When I use tLogRow it works fine.&lt;/P&gt;&lt;P&gt;Do you have any idea what my component does wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 10:11:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-data-from-data-input-flow/m-p/2315903#M86507</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-06T10:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from data input flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-data-from-data-input-flow/m-p/2315904#M86508</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;What does your custom component look like? Have you already shared your custom component on talend exchange portal?&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 03:50:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-data-from-data-input-flow/m-p/2315904#M86508</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-07T03:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from data input flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-data-from-data-input-flow/m-p/2315905#M86509</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have not published the component as it doesn't work for the moment. In attachment you can find the .xml and begin files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LrNJ"&gt;tLearnInput_java.xml&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LrNw"&gt;tLearnInput.zip&lt;/A&gt;</description>
      <pubDate>Tue, 07 Nov 2017 09:16:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-data-from-data-input-flow/m-p/2315905#M86509</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-07T09:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from data input flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-data-from-data-input-flow/m-p/2315906#M86510</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Somehow now it works. I had a look at the tFileOutputPDF component and changed some lines. I don't know what the mistake was but ich works &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; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But I still have a question:&lt;/P&gt; 
&lt;P&gt;If I put all the code to the begin.javajet file again I just get 'null'.&lt;/P&gt; 
&lt;P&gt;Why do I have to read for input in the main file?&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LrLO"&gt;tLearnInput.zip&lt;/A&gt;</description>
      <pubDate>Tue, 07 Nov 2017 09:54:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-data-from-data-input-flow/m-p/2315906#M86510</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-07T09:54:27Z</dc:date>
    </item>
  </channel>
</rss>

