<?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 Reload the query only if the first script executes successfully in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reload-the-query-only-if-the-first-script-executes-successfully/m-p/153702#M30644</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like this:&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;load x ;&lt;/P&gt;&lt;P&gt;sql Select count(*) from forec where desc='Final';&lt;/P&gt;&lt;P&gt;if peek('x') = 1 then&lt;/P&gt;&lt;P&gt;table2:&lt;/P&gt;&lt;P&gt;load y;&lt;/P&gt;&lt;P&gt;sql select...&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;exit script;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;end if;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Aug 2009 14:19:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-08-11T14:19:39Z</dc:date>
    <item>
      <title>Reload the query only if the first script executes successfully</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-the-query-only-if-the-first-script-executes-successfully/m-p/153701#M30643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;Hi,&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;Is there a way to reload data only when the first query succeeds. To be clear, Select count(*) from forec where desc='Final'. If the query returns '1', I need the other query which follows to execute. If the Query returns' 0', I need the reload to fail. The other queries are no way related to the above query. How to do that?&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;--Santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 12:04:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-the-query-only-if-the-first-script-executes-successfully/m-p/153701#M30643</guid>
      <dc:creator />
      <dc:date>2009-08-11T12:04:12Z</dc:date>
    </item>
    <item>
      <title>Reload the query only if the first script executes successfully</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-the-query-only-if-the-first-script-executes-successfully/m-p/153702#M30644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like this:&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;load x ;&lt;/P&gt;&lt;P&gt;sql Select count(*) from forec where desc='Final';&lt;/P&gt;&lt;P&gt;if peek('x') = 1 then&lt;/P&gt;&lt;P&gt;table2:&lt;/P&gt;&lt;P&gt;load y;&lt;/P&gt;&lt;P&gt;sql select...&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;exit script;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;end if;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 14:19:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-the-query-only-if-the-first-script-executes-successfully/m-p/153702#M30644</guid>
      <dc:creator />
      <dc:date>2009-08-11T14:19:39Z</dc:date>
    </item>
  </channel>
</rss>

