<?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: How to update prev row after comparing with current and prev row? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-update-prev-row-after-comparing-with-current-and-prev-row/m-p/2229812#M20640</link>
    <description>&lt;P&gt;The method you are looking for (to search the whole result rows) with a tMap is essentially what I was describing in my first suggestion. I am not sure how your new method will work if I am honest. Have you tried using the tHash components?&lt;/P&gt;</description>
    <pubDate>Wed, 04 Mar 2020 23:03:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-03-04T23:03:16Z</dc:date>
    <item>
      <title>How to update prev row after comparing with current and prev row?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-update-prev-row-after-comparing-with-current-and-prev-row/m-p/2229809#M20637</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am new to TOS for data processing. My previous approach was with tUniqRow but changed it using tMemorizeRow and tJavaFlex.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;I am using tMemorizeRows and tJavaFlex for my duplicate row check.&lt;/P&gt; 
&lt;P&gt;Using&amp;nbsp;tMemorizeRows&amp;nbsp; with 2 row count, I am checking 2 row at a time. Based on my one condition, I need to update one column in the prev row.&lt;/P&gt; 
&lt;P&gt;So, in tJavaFlex based on my memorizerow data, I am able to compare and update a column for my current row in context. But to update a column value for my previous row (matched row by condition using memorizerow), how can I do that? How can I get previous row to update any column with new value.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I tried with tJavaFlex_2/tJavaRow after my tJavaFlex_1 but it executes one row at a time. So, I am not able to get previous row. Is there anyway, I can search the whole result row object(tJavaFlex_1) and set value?&amp;nbsp; Can I use tMap to solve the problem? Thanks in advance.&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="Capture.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9wG.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133037i82D45E71CDFC7374/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9wG.jpg" alt="0683p000009M9wG.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:05:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-update-prev-row-after-comparing-with-current-and-prev-row/m-p/2229809#M20637</guid>
      <dc:creator>dattasud</dc:creator>
      <dc:date>2024-11-16T03:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to update prev row after comparing with current and prev row?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-update-prev-row-after-comparing-with-current-and-prev-row/m-p/2229810#M20638</link>
      <description>&lt;P&gt;It's probably best that use the tHashInput and tHashOutput components for this.&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://help.talend.com/reader/8_lXEInq2ehdXds6XE9PsA/OxFrHZZyW9fvSE5SUBJOKQ" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/8_lXEInq2ehdXds6XE9PsA/OxFrHZZyW9fvSE5SUBJOKQ&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://help.talend.com/reader/8_lXEInq2ehdXds6XE9PsA/kQWU35YXytKECckZ5EqvGg" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/8_lXEInq2ehdXds6XE9PsA/kQWU35YXytKECckZ5EqvGg&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Read the data into a tHashOutput for each row (uniques/non-uniques), then use the tHashInput components to read that data in again and join using a tMap.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 19:56:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-update-prev-row-after-comparing-with-current-and-prev-row/m-p/2229810#M20638</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-04T19:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to update prev row after comparing with current and prev row?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-update-prev-row-after-comparing-with-current-and-prev-row/m-p/2229811#M20639</link>
      <description>&lt;P&gt;Thanks for your input &lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU"&gt;@rhall&lt;/A&gt;&amp;nbsp;.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I changed my approach for the problem. I am using tMemorizeRows and tJavaFlex for my duplicate row check.&lt;/P&gt; 
&lt;P&gt;Using&amp;nbsp;tMemorizeRows&amp;nbsp; with 2 row count, I am checking 2 row at a time. Based on my condition, I need to update one column in the row.&lt;/P&gt; 
&lt;P&gt;So, in tJavaFlex based on my memorizerow data, I am able to update a column for my current row in context. But to update a column value for my previous row (matched row by condition using memorizerow), how can I get previous row to update any column with new value.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I tried with tJavaFlex_2/tJavaRow after my tJavaFlex_1 but it executes one row at a time. So, I am not able to get previous row. Is there anyway, I can search the whole result row object(tJavaFlex_1) and set value?&amp;nbsp; Can I use tMap to solve the problem? Thanks in advance.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9qY.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136305i2D4B3A5BFABBA94E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9qY.jpg" alt="0683p000009M9qY.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 22:46:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-update-prev-row-after-comparing-with-current-and-prev-row/m-p/2229811#M20639</guid>
      <dc:creator>dattasud</dc:creator>
      <dc:date>2020-03-04T22:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to update prev row after comparing with current and prev row?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-update-prev-row-after-comparing-with-current-and-prev-row/m-p/2229812#M20640</link>
      <description>&lt;P&gt;The method you are looking for (to search the whole result rows) with a tMap is essentially what I was describing in my first suggestion. I am not sure how your new method will work if I am honest. Have you tried using the tHash components?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 23:03:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-update-prev-row-after-comparing-with-current-and-prev-row/m-p/2229812#M20640</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-04T23:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to update prev row after comparing with current and prev row?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-update-prev-row-after-comparing-with-current-and-prev-row/m-p/2229813#M20641</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU"&gt;@rhall&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Yes, I checked the tHashOutput and tHashInput components and used it like below flow.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am getting runtime exception with tHashInput_2 that its not initialized. The&amp;nbsp; tHashInput_2 is linked to tHashOutput_2 which is having the duplicate rows.&lt;/P&gt; 
&lt;P&gt;I wrote condition in tMap for my duplicate row checks and updating the value in rows.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;[statistics] connecting to socket on port 3722&lt;BR /&gt;[statistics] connected&lt;BR /&gt;Exception in component tHashInput_2 (Copy_of_AccountStatusChange)&lt;BR /&gt;java.lang.RuntimeException: The hash is not initialized : The hash must exist before you read from it&lt;BR /&gt;at stateofbusiness.copy_of_accountstatuschange_0_1.Copy_of_AccountStatusChange.tHashInput_2Process(Copy_of_AccountStatusChange.java:2601)&lt;BR /&gt;at stateofbusiness.copy_of_accountstatuschange_0_1.Copy_of_AccountStatusChange.tHashInput_1Process(Copy_of_AccountStatusChange.java:1511)&lt;BR /&gt;at stateofbusiness.copy_of_accountstatuschange_0_1.Copy_of_AccountStatusChange.runJobInTOS(Copy_of_AccountStatusChange.java:5655)&lt;BR /&gt;at stateofbusiness.copy_of_accountstatuschange_0_1.Copy_of_AccountStatusChange.main(Copy_of_AccountStatusChange.java:5504)&lt;BR /&gt;[statistics] disconnected&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The tHashInput_2 is getting initiated from&amp;nbsp;tHashInput_1. And also the this right side block is getting complied first then the actual main left side job. Is there any way to correct the flow. The flow should go from left to right.&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="Capture.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9xn.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146501i41E090BAFD359577/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9xn.jpg" alt="0683p000009M9xn.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 15:03:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-update-prev-row-after-comparing-with-current-and-prev-row/m-p/2229813#M20641</guid>
      <dc:creator>dattasud</dc:creator>
      <dc:date>2020-03-05T15:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to update prev row after comparing with current and prev row?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-update-prev-row-after-comparing-with-current-and-prev-row/m-p/2229814#M20642</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LQtcAAG"&gt;@dattasud&lt;/A&gt;&amp;nbsp;, Yeah with the currrent design, the hashinput subjob is executed at the same time as the salesforce connection. You have to connect the HashInput subjob on 'On subjob ok' trigger from tSalesforceInput&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 17:34:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-update-prev-row-after-comparing-with-current-and-prev-row/m-p/2229814#M20642</guid>
      <dc:creator>nivedhitha</dc:creator>
      <dc:date>2020-03-05T17:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to update prev row after comparing with current and prev row?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-update-prev-row-after-comparing-with-current-and-prev-row/m-p/2229815#M20643</link>
      <description>&lt;A href="https://community.qlik.com/s/profile/00539000003YkRbAAK"&gt;@nivedhitha&lt;/A&gt; Thanks for your input. The error is resolved. 
&lt;BR /&gt;Thanks 
&lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU"&gt;@rhall&lt;/A&gt; for your help and time.</description>
      <pubDate>Thu, 05 Mar 2020 17:47:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-update-prev-row-after-comparing-with-current-and-prev-row/m-p/2229815#M20643</guid>
      <dc:creator>dattasud</dc:creator>
      <dc:date>2020-03-05T17:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to update prev row after comparing with current and prev row?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-update-prev-row-after-comparing-with-current-and-prev-row/m-p/2229816#M20644</link>
      <description>&lt;P&gt;Glad you got it sorted, and thanks to&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/00539000003YkRbAAK"&gt;@nivedhitha&lt;/A&gt;&amp;nbsp;for helping to resolve the usage problem&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 17:40:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-update-prev-row-after-comparing-with-current-and-prev-row/m-p/2229816#M20644</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-06T17:40:52Z</dc:date>
    </item>
  </channel>
</rss>

