<?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 Oddity: peek not working &amp;quot;sometimes&amp;quot; in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Oddity-peek-not-working-quot-sometimes-quot/m-p/1340586#M29573</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I come with a &lt;EM&gt;strange&lt;/EM&gt; situation.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I have an algorithm that makes use of a respectable amount of variables to carefully load information from a data origin and/or its previously loaded data from a past reload (a qvd file).&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;In order to reuse this script for a whole set of data origins, since the content of those variables will be unique for each data origin, I thought about making use of a Table containing these values and then doing a for loop, updating the variables content inside the script using the peek function.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;In other words: having a table like this&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[VariablesContent]:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;vVar1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;vVar2&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;vVar3&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;...&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;vVarN&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1value1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1value2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1value3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1valueN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2value1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2value2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2value3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2valueN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Mvalue1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Mvalue2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Mvalue3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;MValueN&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;where N would be the number of variables and M the number of data origins.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px; text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px; text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;And then, in the script, doing a for loop like this (pseudo code)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;for i from 0 to (NoOfRows('VariablesContent') - 1) do&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vVar 1 = peek('vVar1', $(i), 'VariablesContent');&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vVar2 = peek('vVar2', $(i), 'VariablesContent');&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;next&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Now, I am coming at this little by little. I have only loaded a single row in [VariablesContent] and have started to replace the &lt;EM&gt;let&lt;/EM&gt; expression in these variables with their respective &lt;EM&gt;peek('vVarX',0,'VariablesContent')&lt;/EM&gt; statements, and &lt;STRONG&gt;this actually works... &lt;/STRONG&gt;untill the program runs into and If.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;It makes no sense (at least to me), but after entering a branch of the If statement, the peek function will return &amp;lt;NULL&amp;gt; no matter what. Even running &lt;SPAN style="text-decoration: underline;"&gt;the same statements that worked before&lt;/SPAN&gt; entering the If will now return &amp;lt;NULL&amp;gt; and it is driving me crazy since I can't figure out what's wrong.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Can I get some insight, please?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Cheers.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Apr 2017 10:59:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-04-19T10:59:02Z</dc:date>
    <item>
      <title>Oddity: peek not working "sometimes"</title>
      <link>https://community.qlik.com/t5/App-Development/Oddity-peek-not-working-quot-sometimes-quot/m-p/1340586#M29573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I come with a &lt;EM&gt;strange&lt;/EM&gt; situation.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I have an algorithm that makes use of a respectable amount of variables to carefully load information from a data origin and/or its previously loaded data from a past reload (a qvd file).&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;In order to reuse this script for a whole set of data origins, since the content of those variables will be unique for each data origin, I thought about making use of a Table containing these values and then doing a for loop, updating the variables content inside the script using the peek function.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;In other words: having a table like this&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[VariablesContent]:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;vVar1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;vVar2&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;vVar3&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;...&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;vVarN&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1value1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1value2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1value3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1valueN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2value1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2value2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2value3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2valueN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Mvalue1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Mvalue2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Mvalue3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;MValueN&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;where N would be the number of variables and M the number of data origins.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px; text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px; text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;And then, in the script, doing a for loop like this (pseudo code)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;for i from 0 to (NoOfRows('VariablesContent') - 1) do&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vVar 1 = peek('vVar1', $(i), 'VariablesContent');&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vVar2 = peek('vVar2', $(i), 'VariablesContent');&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;next&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Now, I am coming at this little by little. I have only loaded a single row in [VariablesContent] and have started to replace the &lt;EM&gt;let&lt;/EM&gt; expression in these variables with their respective &lt;EM&gt;peek('vVarX',0,'VariablesContent')&lt;/EM&gt; statements, and &lt;STRONG&gt;this actually works... &lt;/STRONG&gt;untill the program runs into and If.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;It makes no sense (at least to me), but after entering a branch of the If statement, the peek function will return &amp;lt;NULL&amp;gt; no matter what. Even running &lt;SPAN style="text-decoration: underline;"&gt;the same statements that worked before&lt;/SPAN&gt; entering the If will now return &amp;lt;NULL&amp;gt; and it is driving me crazy since I can't figure out what's wrong.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Can I get some insight, please?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Cheers.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 10:59:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Oddity-peek-not-working-quot-sometimes-quot/m-p/1340586#M29573</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-19T10:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Oddity: peek not working "sometimes"</title>
      <link>https://community.qlik.com/t5/App-Development/Oddity-peek-not-working-quot-sometimes-quot/m-p/1340587#M29574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For now, I have worked around this by executing as many of these variable initializations as possible &lt;EM&gt;before&lt;/EM&gt; running into the &lt;EM&gt;If&lt;/EM&gt; statement; and changing some of the logic where I could not do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still, we may not be as lucky as to be able to pull this through everytime, why do these &lt;EM&gt;peek&lt;/EM&gt; not work? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 14:44:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Oddity-peek-not-working-quot-sometimes-quot/m-p/1340587#M29574</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-19T14:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Oddity: peek not working "sometimes"</title>
      <link>https://community.qlik.com/t5/App-Development/Oddity-peek-not-working-quot-sometimes-quot/m-p/1340588#M29575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;It makes no sense (at least to me), but after entering a branch of the &lt;STRONG&gt;If statement&lt;/STRONG&gt;, the peek function will return &amp;lt;NULL&amp;gt; no matter what. Even running &lt;SPAN style="text-decoration: underline;"&gt;the same statements that worked before&lt;/SPAN&gt; entering the If will now return &amp;lt;NULL&amp;gt; and it is driving me crazy since I can't figure out what's wrong.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Which If statement? Are you talking about the FOR loop?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried to use the script debugger?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible, upload a small sample QVW with a sample input file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 14:58:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Oddity-peek-not-working-quot-sometimes-quot/m-p/1340588#M29575</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-04-19T14:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Oddity: peek not working "sometimes"</title>
      <link>https://community.qlik.com/t5/App-Development/Oddity-peek-not-working-quot-sometimes-quot/m-p/1340589#M29576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BTW, I don't think you need the DO in your FOR ... NEXT loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 15:00:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Oddity-peek-not-working-quot-sometimes-quot/m-p/1340589#M29576</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-04-19T15:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Oddity: peek not working "sometimes"</title>
      <link>https://community.qlik.com/t5/App-Development/Oddity-peek-not-working-quot-sometimes-quot/m-p/1340590#M29577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Thx for replying!&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;BTW, I don't think you need the DO in your FOR ... NEXT loop.&lt;/P&gt;


&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="font-size: 13.3333px;"&gt;I know, that was not QlikSense DataLoadEditor code, just some code to express the idea I had&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Which If statement? Are you talking about the FOR loop?&lt;/SPAN&gt;&lt;/P&gt;


&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="font-size: 13.3333px;"&gt;Inside the algorithm there's a point where the program execution branches depending on a condition, that's what I meant.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Have you tried to use the script debugger?&lt;/SPAN&gt;&lt;/P&gt;


&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="font-size: 13.3333px;"&gt;I either have little knowledge on how to interpret the output pane or it didn't help much.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If possible, upload a small sample QVW with a sample input file.&lt;/SPAN&gt;&lt;/P&gt;


&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="font-size: 13.3333px;"&gt;Surely, I uploaded the whole thing (.qvf + data sources).&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[I'm afraid that the code documentation is written in spanish, I can translate it for you if you need to]&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Also, remember to edit the DataConnections so they point to your local directions]&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks a lot for the help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;For anything you may need, please feel free to ask.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 15:23:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Oddity-peek-not-working-quot-sometimes-quot/m-p/1340590#M29577</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-19T15:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Oddity: peek not working "sometimes"</title>
      <link>https://community.qlik.com/t5/App-Development/Oddity-peek-not-working-quot-sometimes-quot/m-p/1340591#M29578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, I forgot to mention, the initializating is currently done previous to the If, but you can still find them where they were originally executed (commented though, of course).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 15:26:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Oddity-peek-not-working-quot-sometimes-quot/m-p/1340591#M29578</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-19T15:26:20Z</dc:date>
    </item>
  </channel>
</rss>

