<?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: For next scripting with variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/For-next-scripting-with-variables/m-p/1617050#M445497</link>
    <description>&lt;P&gt;Hans, have you tried running this via the Edit Script Debug tool?&amp;nbsp; That is likely the best option to try to gather further information on exactly where things are failing such that you can check syntax of things, as it seems you just have a mismatch of ()'s somewhere in the code.&amp;nbsp; Sorry I do not have anything better, but here is a Design Blog post on Loops as well, not sure if there will be anything there to help or not, but worth a shot...&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Loops-in-the-Script/ba-p/1473543" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Loops-in-the-Script/ba-p/1473543&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
    <pubDate>Tue, 27 Aug 2019 12:22:02 GMT</pubDate>
    <dc:creator>Brett_Bleess</dc:creator>
    <dc:date>2019-08-27T12:22:02Z</dc:date>
    <item>
      <title>For next scripting with variables</title>
      <link>https://community.qlik.com/t5/QlikView/For-next-scripting-with-variables/m-p/1610587#M445098</link>
      <description>&lt;P&gt;Dear Qlik Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this a possible script?&lt;/P&gt;&lt;P&gt;Sub Missing_dates&lt;/P&gt;&lt;P&gt;For vCategorie = 1 to 5&lt;BR /&gt;&lt;BR /&gt;Let vCat = PEEK('Cat',$(vCategorie),Categorieen);&lt;BR /&gt;&lt;BR /&gt;For vSoort = 1 to 4&lt;BR /&gt;&lt;BR /&gt;Let vSrt = PEEK('Srt',$(vSoort),Soorten);&lt;/P&gt;&lt;P&gt;Missing_dates:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;Load&lt;BR /&gt;Datum as Peildatum,&lt;BR /&gt;text($(vCat)) as Categorie,&lt;BR /&gt;text($(vSrt)) as Soort&lt;BR /&gt;Resident Calendar;&lt;/P&gt;&lt;P&gt;join(Totalen) load * Resident Missing_dates;&lt;BR /&gt;Drop table Missing_dates;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Next vSoort&lt;BR /&gt;&lt;BR /&gt;Next vCategorie&lt;/P&gt;&lt;P&gt;endsub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get funny errors like this:&lt;/P&gt;&lt;P&gt;Syntax error&lt;/P&gt;&lt;P&gt;Unexpected token: ')', expected one of: '(', 'ZTestw_z', 'OPERATOR_PLUS', 'OPERATOR_MINUS', 'not', 'bitnot', 'LITERAL_NUMBER', ...&lt;/P&gt;&lt;P&gt;Missing_dates:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;Load&lt;BR /&gt;Datum as Peildatum,&lt;BR /&gt;text(&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;)&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; as Categorie,&lt;BR /&gt;text() as Soort&lt;BR /&gt;Resident Calendar&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:47:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-next-scripting-with-variables/m-p/1610587#M445098</guid>
      <dc:creator>hansdevr</dc:creator>
      <dc:date>2024-11-16T02:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: For next scripting with variables</title>
      <link>https://community.qlik.com/t5/QlikView/For-next-scripting-with-variables/m-p/1610632#M445108</link>
      <description>&lt;P&gt;Hi Hans,&lt;/P&gt;&lt;P&gt;have you tried&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Missing_dates:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NoConcatenate&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Load&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Datum as Peildatum,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;text(&lt;STRONG&gt;'$(vCat)'&lt;/STRONG&gt;) as Categorie,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;text(&lt;STRONG&gt;'$(vSrt)'&lt;/STRONG&gt;) as Soort&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Resident Calendar;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 11:11:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-next-scripting-with-variables/m-p/1610632#M445108</guid>
      <dc:creator>mato32188</dc:creator>
      <dc:date>2019-08-08T11:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: For next scripting with variables</title>
      <link>https://community.qlik.com/t5/QlikView/For-next-scripting-with-variables/m-p/1610635#M445109</link>
      <description>&lt;P&gt;No, that did not work, unfortunately,&lt;/P&gt;&lt;P&gt;I will explain. I have two inline tables, Categorieen (filled with A, B, C, etc), and a table with Soorten, also filled with strings&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use the for-next loop to peek the records in these tables and use the result to fill a field in my Totalen table.&lt;/P&gt;&lt;P&gt;The Datum as Peildatum comes from my Master Calendar table. This way I can fill up missing dates in my Totalen table&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 11:21:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-next-scripting-with-variables/m-p/1610635#M445109</guid>
      <dc:creator>hansdevr</dc:creator>
      <dc:date>2019-08-08T11:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: For next scripting with variables</title>
      <link>https://community.qlik.com/t5/QlikView/For-next-scripting-with-variables/m-p/1617050#M445497</link>
      <description>&lt;P&gt;Hans, have you tried running this via the Edit Script Debug tool?&amp;nbsp; That is likely the best option to try to gather further information on exactly where things are failing such that you can check syntax of things, as it seems you just have a mismatch of ()'s somewhere in the code.&amp;nbsp; Sorry I do not have anything better, but here is a Design Blog post on Loops as well, not sure if there will be anything there to help or not, but worth a shot...&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Loops-in-the-Script/ba-p/1473543" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Loops-in-the-Script/ba-p/1473543&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2019 12:22:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-next-scripting-with-variables/m-p/1617050#M445497</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-08-27T12:22:02Z</dc:date>
    </item>
  </channel>
</rss>

