<?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: Help with Tdie and tFilterRow in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Help-with-Tdie-and-tFilterRow/m-p/2471994#M141013</link>
    <description>&lt;P&gt;Hi JayZ1,&lt;/P&gt;
&lt;P&gt;Here is how I would do :&lt;/P&gt;
&lt;P&gt;Setup a tDBInput component that get the value you need to check if your DB has been updated&lt;/P&gt;
&lt;P&gt;In my case I used a query that give me the value "62" (only one row)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="quentinvigne_0-1721636512290.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/169696iB701CC237EEF934B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="quentinvigne_0-1721636512290.png" alt="quentinvigne_0-1721636512290.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;then setup a tJavaRow that assign your query value to a context variable (in this example : "test")&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="quentinvigne_1-1721636555940.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/169697i98681BC280C08F79/image-size/medium?v=v2&amp;amp;px=400" role="button" title="quentinvigne_1-1721636555940.png" alt="quentinvigne_1-1721636555940.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Don't forget to create the context variable "test" (or whatever you want to call it) in the Context window.&lt;/P&gt;
&lt;P&gt;Then setup the "Run If" trigger between the tJavaRow and the tDie component using the equals() function on your context variable :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="quentinvigne_2-1721636626814.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/169698iF2DB28DB36E5DC54/image-size/medium?v=v2&amp;amp;px=400" role="button" title="quentinvigne_2-1721636626814.png" alt="quentinvigne_2-1721636626814.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my example, if the query return 62, the tDie kills the job, when it returns something else the job doesn't get killed.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jul 2024 08:24:24 GMT</pubDate>
    <dc:creator>quentin-vigne</dc:creator>
    <dc:date>2024-07-22T08:24:24Z</dc:date>
    <item>
      <title>Help with Tdie and tFilterRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Help-with-Tdie-and-tFilterRow/m-p/2471589#M141008</link>
      <description>&lt;P&gt;I have a main job and a sub job, I wanted to add some more filtering to ensure that the data I am using is accurate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So i enhanced my job to do a db check before we execute the subjob, for example I connect to the database and execute a query, one column in db would essentially have the value '-1' if data has been fully published to this table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am having some issues and it isn't working the way I am expecting, so would like some input.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case after connecting to the db an outputing the values I go to a tfilter, ensuring that the value is -1, my query will return the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-1&lt;/P&gt;
&lt;P&gt;nothing&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have switched the rejected/filtered output to see if it would make it work. Ideally if the value does not exist i want to use T-die to kill the whole script, making sure the subjob which i call later doesn't get invoked.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JayZ1_1-1721336815534.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/169585iBD20AF1AAF7CBB92/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JayZ1_1-1721336815534.png" alt="JayZ1_1-1721336815534.png" /&gt;&lt;/span&gt;&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="JayZ1_0-1721336723240.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/169584iDCB7C87CB53ED3E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JayZ1_0-1721336723240.png" alt="JayZ1_0-1721336723240.png" /&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;How could I go about implementing this correctly?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 21:08:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Help-with-Tdie-and-tFilterRow/m-p/2471589#M141008</guid>
      <dc:creator>JayZ1</dc:creator>
      <dc:date>2024-07-18T21:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Tdie and tFilterRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Help-with-Tdie-and-tFilterRow/m-p/2471994#M141013</link>
      <description>&lt;P&gt;Hi JayZ1,&lt;/P&gt;
&lt;P&gt;Here is how I would do :&lt;/P&gt;
&lt;P&gt;Setup a tDBInput component that get the value you need to check if your DB has been updated&lt;/P&gt;
&lt;P&gt;In my case I used a query that give me the value "62" (only one row)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="quentinvigne_0-1721636512290.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/169696iB701CC237EEF934B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="quentinvigne_0-1721636512290.png" alt="quentinvigne_0-1721636512290.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;then setup a tJavaRow that assign your query value to a context variable (in this example : "test")&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="quentinvigne_1-1721636555940.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/169697i98681BC280C08F79/image-size/medium?v=v2&amp;amp;px=400" role="button" title="quentinvigne_1-1721636555940.png" alt="quentinvigne_1-1721636555940.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Don't forget to create the context variable "test" (or whatever you want to call it) in the Context window.&lt;/P&gt;
&lt;P&gt;Then setup the "Run If" trigger between the tJavaRow and the tDie component using the equals() function on your context variable :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="quentinvigne_2-1721636626814.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/169698iF2DB28DB36E5DC54/image-size/medium?v=v2&amp;amp;px=400" role="button" title="quentinvigne_2-1721636626814.png" alt="quentinvigne_2-1721636626814.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my example, if the query return 62, the tDie kills the job, when it returns something else the job doesn't get killed.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 08:24:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Help-with-Tdie-and-tFilterRow/m-p/2471994#M141013</guid>
      <dc:creator>quentin-vigne</dc:creator>
      <dc:date>2024-07-22T08:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Tdie and tFilterRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Help-with-Tdie-and-tFilterRow/m-p/2472195#M141022</link>
      <description>&lt;P&gt;Hi Thank you this seems like a good possible solution. For some reason for me the IF trigger is executing as false still. Let me provide some screenshots:&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="JayZ1_0-1721678791106.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/169751i7A47EA0EFE5D29D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JayZ1_0-1721678791106.png" alt="JayZ1_0-1721678791106.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JayZ1_1-1721678808762.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/169752iD31B20351E314D6A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JayZ1_1-1721678808762.png" alt="JayZ1_1-1721678808762.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JayZ1_2-1721678867197.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/169754i0A939D0435A84EA4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JayZ1_2-1721678867197.png" alt="JayZ1_2-1721678867197.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;originally I just had this empty, I tried changing it to equal 0 so it would get re-assigned either way it wasn't working&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JayZ1_3-1721678911087.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/169756iDD22BADE109D1BEB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JayZ1_3-1721678911087.png" alt="JayZ1_3-1721678911087.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the tlog output I was validating USR_ID = -1&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JayZ1_4-1721678944142.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/169757i8A789C68D493D563/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JayZ1_4-1721678944142.png" alt="JayZ1_4-1721678944142.png" /&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;Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 20:09:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Help-with-Tdie-and-tFilterRow/m-p/2472195#M141022</guid>
      <dc:creator>JayZ1</dc:creator>
      <dc:date>2024-07-22T20:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Tdie and tFilterRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Help-with-Tdie-and-tFilterRow/m-p/2472199#M141023</link>
      <description>&lt;P&gt;You need to put your context.DatabaseCheck as String/Varchar and the value you get from your database as String/Varchar also&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure everything is set as varchar for this to work.&lt;BR /&gt;Right now you're trying to compare -1 (int) and "-1" varchar which doesn't work in java&lt;/P&gt;
&lt;P&gt;Keep me updated if this still doesn't work&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 20:32:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Help-with-Tdie-and-tFilterRow/m-p/2472199#M141023</guid>
      <dc:creator>quentin-vigne</dc:creator>
      <dc:date>2024-07-22T20:32:57Z</dc:date>
    </item>
  </channel>
</rss>

