<?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: script in first load only in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/script-in-first-load-only/m-p/87573#M14287</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you looking for the Partial Reload feature?&lt;/P&gt;&lt;P&gt; &lt;A href="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Partial%20Reload.htm" title="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Partial%20Reload.htm"&gt;https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Partial%20Reload.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jul 2018 09:33:56 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2018-07-31T09:33:56Z</dc:date>
    <item>
      <title>script in first load only</title>
      <link>https://community.qlik.com/t5/QlikView/script-in-first-load-only/m-p/87572#M14286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i whant to optimise perfermance of my app for this i whant to load a script in first load only like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ( first load ) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; script 1 } ;&lt;/P&gt;&lt;P&gt;else &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; script 2 ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you in advance &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2018 09:22:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-in-first-load-only/m-p/87572#M14286</guid>
      <dc:creator>bbmmouha</dc:creator>
      <dc:date>2018-07-31T09:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: script in first load only</title>
      <link>https://community.qlik.com/t5/QlikView/script-in-first-load-only/m-p/87573#M14287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you looking for the Partial Reload feature?&lt;/P&gt;&lt;P&gt; &lt;A href="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Partial%20Reload.htm" title="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Partial%20Reload.htm"&gt;https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Partial%20Reload.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2018 09:33:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-in-first-load-only/m-p/87573#M14287</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-07-31T09:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: script in first load only</title>
      <link>https://community.qlik.com/t5/QlikView/script-in-first-load-only/m-p/87574#M14288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is not persistent variable or function that allows you to check for a first load. However if you create a new indicator file / flag file or whatever you want to call it each time you do a load in a special folder- you can check for the existence of that file. If the file doesn't exist then it is the first load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the beginning of your script you can have something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15330307204215987" jivemacro_uid="_15330307204215987" modifiedtitle="true"&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FirstLoad=True();&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FOR EACH f IN FileList ('LIB://FILES/!NotFirstLoad!.txt');&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; FirstLoad=False();&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;NEXT&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;IF FirstLoad THEN&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; INDICATOR_FILE: LOAD * INLINE [Dummy];&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; STORE INDICATOR_FILE INTO &lt;SPAN style="color: #3366ff;"&gt;[LIB://FILES/!NotFirstLoad!.txt]&lt;/SPAN&gt; (txt);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; DROP TABLE INDICATOR_FILE;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;END IF&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2018 09:53:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-in-first-load-only/m-p/87574#M14288</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-07-31T09:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: script in first load only</title>
      <link>https://community.qlik.com/t5/QlikView/script-in-first-load-only/m-p/87575#M14289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks petter &lt;/P&gt;&lt;P&gt;the problem is like said Gysbert i have a Partial Reload and i whant to load my data in the qvd and after that i don't load this script(1) and load the script 2 of Partial reload &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2018 11:51:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-in-first-load-only/m-p/87575#M14289</guid>
      <dc:creator>bbmmouha</dc:creator>
      <dc:date>2018-07-31T11:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: script in first load only</title>
      <link>https://community.qlik.com/t5/QlikView/script-in-first-load-only/m-p/87576#M14290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i found a solution : in the first load the QVD not exist else if the QVD exist then this is not the first load &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vListqvdexists=isnull(QvdCreateTime('[lib://qvdfolder\PDV.qvd]'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if($(vListqvdexists)&amp;lt;&amp;gt; 0) then&lt;/P&gt;&lt;P&gt;script (1) for first load &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else &lt;/P&gt;&lt;P&gt;script (2) for the next load &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much Petter and Gysbert &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2018 08:13:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-in-first-load-only/m-p/87576#M14290</guid>
      <dc:creator>bbmmouha</dc:creator>
      <dc:date>2018-08-01T08:13:12Z</dc:date>
    </item>
  </channel>
</rss>

