<?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 Get Attribute Values from Custom Class in Talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Get-Attribute-Values-from-Custom-Class-in-Talend/m-p/2309514#M80720</link>
    <description>&lt;P&gt;Hello Everyone!&lt;/P&gt;
&lt;P&gt;I have new to Talend, and Everyone was going fine until I ran into basic issue. I have a function that returns more than one value, so I created a class to hold these values and my function returns a type of that class. Now, in a TMap how can call this function once, and use the same object on different columns?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Sun, 29 Oct 2017 12:49:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-10-29T12:49:06Z</dc:date>
    <item>
      <title>Get Attribute Values from Custom Class in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Attribute-Values-from-Custom-Class-in-Talend/m-p/2309514#M80720</link>
      <description>&lt;P&gt;Hello Everyone!&lt;/P&gt;
&lt;P&gt;I have new to Talend, and Everyone was going fine until I ran into basic issue. I have a function that returns more than one value, so I created a class to hold these values and my function returns a type of that class. Now, in a TMap how can call this function once, and use the same object on different columns?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 29 Oct 2017 12:49:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Attribute-Values-from-Custom-Class-in-Talend/m-p/2309514#M80720</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-29T12:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Get Attribute Values from Custom Class in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Attribute-Values-from-Custom-Class-in-Talend/m-p/2309515#M80721</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'd suggest calling&amp;nbsp;your function in a tJavaRow, and&amp;nbsp;then setting the output row&amp;nbsp;columns based on the properties of the returned class. You could&amp;nbsp;add any necessary new flow fields in the output schema as required.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Depending how often you're likely to use this, you may even find it easier to simply&amp;nbsp;drop the function code into your tJavaFlow component, where it can directly set the output flow&amp;nbsp;columns, meaning you'd not need to create the return Class/object in the first place.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Sun, 29 Oct 2017 14:00:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Attribute-Values-from-Custom-Class-in-Talend/m-p/2309515#M80721</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-29T14:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Get Attribute Values from Custom Class in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Attribute-Values-from-Custom-Class-in-Talend/m-p/2309516#M80722</link>
      <description>Thanks for your reply. Do you have an example that I can use to fully understand. Thanks again!</description>
      <pubDate>Sun, 29 Oct 2017 14:11:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Attribute-Values-from-Custom-Class-in-Talend/m-p/2309516#M80722</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-29T14:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Get Attribute Values from Custom Class in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Attribute-Values-from-Custom-Class-in-Talend/m-p/2309517#M80723</link>
      <description>&lt;P&gt;Here's a very basic example to illustrate this:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tJavaRow.png" style="width: 832px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrQy.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145750i696CF25AC3C22581/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrQy.png" alt="0683p000009LrQy.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In this case,&amp;nbsp;the tFixedFlowInput generates rows which&amp;nbsp;have&amp;nbsp;two columns, and I've added two new&amp;nbsp;columns&amp;nbsp;to the output schema of the tJavaRow which are then populated in the code.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tJavaRowSchema.png" style="width: 986px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrdV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152892iA7475E6EAF0EE150/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrdV.png" alt="0683p000009LrdV.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;When setting this up in your own job, you'll likely want to click "Generate Code" once you have&amp;nbsp;the input and output&amp;nbsp;connected to the tJavaFlow, added/removed fields from the output schema, and before you begin adding your own code etc., as this will generate the basic code to pass data from all of the input to the output&amp;nbsp;fields.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Chris&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Oct 2017 14:27:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Attribute-Values-from-Custom-Class-in-Talend/m-p/2309517#M80723</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-29T14:27:44Z</dc:date>
    </item>
  </channel>
</rss>

