<?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: Verify size and name ans save de value in a context variable in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Verify-size-and-name-ans-save-de-value-in-a-context-variable/m-p/2269651#M47820</link>
    <description>try this on tJavaRow:&lt;BR /&gt;context.last=input_row.baseName;&lt;BR /&gt;if(input_row.size==0){&lt;BR /&gt;break;&lt;BR /&gt;}</description>
    <pubDate>Fri, 27 Mar 2020 18:33:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-03-27T18:33:25Z</dc:date>
    <item>
      <title>Verify size and name ans save de value in a context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Verify-size-and-name-ans-save-de-value-in-a-context-variable/m-p/2269650#M47819</link>
      <description>&lt;P&gt;Hello I have a problem.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have a job that lists the .csv files in a directory, then using tFileproperties I output the information from each file and display it in a tLogRow. I create a context variable (context.last) and I assign it the name of the last file in the directory in a tJava.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="job.PNG" style="width: 751px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9Yd.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136273i39D5720AE6FB6BA6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9Yd.png" alt="0683p000009M9Yd.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I would like this when :I iterate in the directory;&lt;BR /&gt;if the size of a file = 0 then it stops the iteration and assigns the name of this file to the context variable (contest.last)&lt;BR /&gt;Otherwise context.last = the name of the last file.&lt;/P&gt; 
&lt;P&gt;please help here join the job&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 11:06:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Verify-size-and-name-ans-save-de-value-in-a-context-variable/m-p/2269650#M47819</guid>
      <dc:creator>Ven6</dc:creator>
      <dc:date>2020-03-26T11:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Verify size and name ans save de value in a context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Verify-size-and-name-ans-save-de-value-in-a-context-variable/m-p/2269651#M47820</link>
      <description>try this on tJavaRow:&lt;BR /&gt;context.last=input_row.baseName;&lt;BR /&gt;if(input_row.size==0){&lt;BR /&gt;break;&lt;BR /&gt;}</description>
      <pubDate>Fri, 27 Mar 2020 18:33:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Verify-size-and-name-ans-save-de-value-in-a-context-variable/m-p/2269651#M47820</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-27T18:33:25Z</dc:date>
    </item>
  </channel>
</rss>

