<?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: Add Progressive Number to fileOutputDelimited in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Add-Progressive-Number-to-fileOutputDelimited/m-p/2303291#M75192</link>
    <description>I think I cannot read the value of row6.message_type_id</description>
    <pubDate>Mon, 13 Aug 2018 13:32:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-08-13T13:32:17Z</dc:date>
    <item>
      <title>Add Progressive Number to fileOutputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-Progressive-Number-to-fileOutputDelimited/m-p/2303286#M75187</link>
      <description>&lt;P&gt;I have the following issue: I am taking records from several tables and then I combine them with tUnite component in order to create a .txt file. After that I sort retrieved rows based on a certain field. The output file is like this:&lt;/P&gt; 
&lt;PRE&gt;                   myField  my2ndField ... ...              
HeaderRecord       xxxxx
DetailRecord       xxxxx
DetailRecord       xxxxx
AdditionalRecord   empty   -&amp;gt; field I want to calculate for Additional Record
DetailRecord       xxxxx
DetailRecord       xxxxx
AdditionalRecord   empty   -&amp;gt; field I want to calculate for Additional Record
DetailRecord       xxxxx
AdditionalRecord   empty   -&amp;gt; field I want to calculate for Additional Record&lt;/PRE&gt; 
&lt;P&gt;This is my job:&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Example.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzsA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152344iAC4409722417EEAF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzsA.png" alt="0683p000009LzsA.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;What I want to do is to calculate "myField"&amp;nbsp;just for "AddionalRecord" (TAB3). This Field is a Progressive number which must works like showed in the screenshot below.&lt;/P&gt; 
&lt;P&gt;How can I achieve my goal after I&amp;nbsp;merge&amp;nbsp;records with tUnite?&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;                   &lt;SPAN&gt;myField&lt;/SPAN&gt;  my2ndField ... ...            
HeaderRecord       xxxxx
DetailRecord       xxxxx
DetailRecord       xxxxx
AdditionalRecord   000000004   -&amp;gt; field I want to calculate for Additional Record
DetailRecord       xxxxx
DetailRecord       xxxxx
AdditionalRecord   000000007
DetailRecord       xxxxx
AdditionalRecord   000000009&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:49:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-Progressive-Number-to-fileOutputDelimited/m-p/2303286#M75187</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T07:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Add Progressive Number to fileOutputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-Progressive-Number-to-fileOutputDelimited/m-p/2303287#M75188</link>
      <description>Have you tried this approach - 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCpvsCAC" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/rolling-or-cumulative-sum/td-p/39850&lt;/A&gt;</description>
      <pubDate>Mon, 13 Aug 2018 11:43:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-Progressive-Number-to-fileOutputDelimited/m-p/2303287#M75188</guid>
      <dc:creator>iamabhishek</dc:creator>
      <dc:date>2018-08-13T11:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Add Progressive Number to fileOutputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-Progressive-Number-to-fileOutputDelimited/m-p/2303288#M75189</link>
      <description>&lt;P&gt;No, I did not. I looked it, but I does not seem the solution to my issue. I need a progressive for additional row and I write it to file.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2018 11:57:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-Progressive-Number-to-fileOutputDelimited/m-p/2303288#M75189</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-13T11:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Add Progressive Number to fileOutputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-Progressive-Number-to-fileOutputDelimited/m-p/2303289#M75190</link>
      <description>&lt;P&gt;Ok, from what I was able to figure out something like this would match your needs.&lt;/P&gt; 
&lt;P&gt;Before outputting the final output to your file make it pass through tMap and work on the below logic -&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="tMap-Seq4.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzdG.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129725i8851AF9B0EFC3AE8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzdG.jpg" alt="0683p000009LzdG.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;So, you would be generating a sequence but displaying it only when the field value is null ( or empty or in whatever form you are getting the data).&lt;/P&gt; 
&lt;PRE&gt;Relational.ISNULL(row1.myField) ? String.valueOf(Var.var1) : row1.myField &lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2018 12:45:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-Progressive-Number-to-fileOutputDelimited/m-p/2303289#M75190</guid>
      <dc:creator>iamabhishek</dc:creator>
      <dc:date>2018-08-13T12:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Add Progressive Number to fileOutputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-Progressive-Number-to-fileOutputDelimited/m-p/2303290#M75191</link>
      <description>&lt;P&gt;I&amp;nbsp;tryied to do something like that, but with a table as output and it worked. The problem was that if I have more than one table with additional record it does not work anymore.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, as you suggest it almost worked.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Record is added&amp;nbsp;to all fields and on the contrary I want to add it only for those one where&amp;nbsp;row6.message_type_id!="0100" .&amp;nbsp;I link tMap to fileOutputDelimited by using the following condition in myField:&lt;/P&gt;
&lt;PRE&gt;row6.message_type_id!="0100"?String.format("%08d",Numeric.sequence("s3",2,1)):"        "&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2018 13:22:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-Progressive-Number-to-fileOutputDelimited/m-p/2303290#M75191</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-13T13:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Add Progressive Number to fileOutputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-Progressive-Number-to-fileOutputDelimited/m-p/2303291#M75192</link>
      <description>I think I cannot read the value of row6.message_type_id</description>
      <pubDate>Mon, 13 Aug 2018 13:32:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-Progressive-Number-to-fileOutputDelimited/m-p/2303291#M75192</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-13T13:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Add Progressive Number to fileOutputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-Progressive-Number-to-fileOutputDelimited/m-p/2303292#M75193</link>
      <description>&lt;P&gt;Could you help me with some sample data so that I would be able to understand the situation a bit more.&lt;/P&gt;
&lt;P&gt;Try adding the sequence to tMap variable and then refer it to your&amp;nbsp;&lt;SPAN&gt;row6.message_type_id based on the condition that you have defined.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also, when you connect your tMap to tFileOutputDelimited I believe it would not be&amp;nbsp;row6 as this is the input to tMap but not the output from tMap. It definitely&amp;nbsp;is something else that you have created as part of your output table inside tMap.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2018 13:53:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-Progressive-Number-to-fileOutputDelimited/m-p/2303292#M75193</guid>
      <dc:creator>iamabhishek</dc:creator>
      <dc:date>2018-08-13T13:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Add Progressive Number to fileOutputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-Progressive-Number-to-fileOutputDelimited/m-p/2303293#M75194</link>
      <description>&lt;P&gt;I attached my tMap below:&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="Pic1.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lzup.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134301iC77B5C72C1758229/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lzup.png" alt="0683p000009Lzup.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;This the actual result of my .txt:&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Actual Result: tFileOutputDelimited" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lzuu.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148530i5856C713862ED037/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lzuu.png" alt="0683p000009Lzuu.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Actual Result: tFileOutputDelimited&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2018 14:25:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-Progressive-Number-to-fileOutputDelimited/m-p/2303293#M75194</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-13T14:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Add Progressive Number to fileOutputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-Progressive-Number-to-fileOutputDelimited/m-p/2303294#M75195</link>
      <description>Why don't you replace the Numeric.Sequence that you have used in your condition as part of your field to update with the tMap variable that you have created.
&lt;BR /&gt;You should be referring the Var.var1 into your field to update condition.</description>
      <pubDate>Mon, 13 Aug 2018 17:01:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-Progressive-Number-to-fileOutputDelimited/m-p/2303294#M75195</guid>
      <dc:creator>iamabhishek</dc:creator>
      <dc:date>2018-08-13T17:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Add Progressive Number to fileOutputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-Progressive-Number-to-fileOutputDelimited/m-p/2303295#M75196</link>
      <description>I did it. But I have got the same result. Nothing changed</description>
      <pubDate>Tue, 14 Aug 2018 08:52:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-Progressive-Number-to-fileOutputDelimited/m-p/2303295#M75196</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-14T08:52:09Z</dc:date>
    </item>
  </channel>
</rss>

