<?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 Using tMsgBox on RunIf in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Using-tMsgBox-on-RunIf/m-p/2352128#M118566</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I've a very simple question:&lt;/P&gt;&lt;P&gt;I got a tDbInput that read a count(*) from a query and i want to use the TMsgBox when count(*) &amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the job wuold be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TDbInput --if --&amp;gt; TmsBox&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where the query on Input component is just a "select count(*) from my_table where my_condition".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is a pretty simple task, but I can't figure out how to retrieve the information in the if window.&lt;/P&gt;&lt;P&gt;can anyone help?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 21:37:07 GMT</pubDate>
    <dc:creator>Serphentelm</dc:creator>
    <dc:date>2024-11-15T21:37:07Z</dc:date>
    <item>
      <title>Using tMsgBox on RunIf</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tMsgBox-on-RunIf/m-p/2352128#M118566</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I've a very simple question:&lt;/P&gt;&lt;P&gt;I got a tDbInput that read a count(*) from a query and i want to use the TMsgBox when count(*) &amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the job wuold be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TDbInput --if --&amp;gt; TmsBox&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where the query on Input component is just a "select count(*) from my_table where my_condition".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is a pretty simple task, but I can't figure out how to retrieve the information in the if window.&lt;/P&gt;&lt;P&gt;can anyone help?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:37:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tMsgBox-on-RunIf/m-p/2352128#M118566</guid>
      <dc:creator>Serphentelm</dc:creator>
      <dc:date>2024-11-15T21:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using tMsgBox on RunIf</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tMsgBox-on-RunIf/m-p/2352129#M118567</link>
      <description>&lt;P&gt;HI @matteo marchesi​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suggest you use a tFlowToIterate in between those components to create a global variable storing the count value produced on tDBInput.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The job will become something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tDBInput --row1--&amp;gt; tFlowToIterate --If--&amp;gt; tMsgBox&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Considering the schema on tDBInput has a column called "count", tFlowToIterate will automatically create a global variable called "row1.count" and you can use it on your If trigger like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;((Integer)globalMap.get("row1.count")) &amp;gt; 0&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 13:39:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tMsgBox-on-RunIf/m-p/2352129#M118567</guid>
      <dc:creator>anselmopeixoto</dc:creator>
      <dc:date>2023-07-06T13:39:04Z</dc:date>
    </item>
  </channel>
</rss>

