<?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: Looping Script using Date &amp; Hour as Parameter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Looping-Script-using-Date-Hour-as-Parameter/m-p/1261383#M397820</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't share the application, but the script has the following model:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CUSTOM CONNECT TO "Provider=QvRestConnector.exe;url=URL&amp;amp;&lt;STRONG&gt;&lt;EM&gt;$(vInitialDate)&lt;/EM&gt;&lt;/STRONG&gt;|&lt;STRONG&gt;&lt;EM&gt;$(vFinalDate)&lt;/EM&gt;&lt;/STRONG&gt;";&lt;/P&gt;&lt;P&gt;RestConnectorMasterTable:&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp; "success",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "__KEY_root",&lt;/P&gt;&lt;P&gt;&amp;nbsp; (SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp; "id",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "date",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "__FK_data"&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM "data" FK "__FK_data") &lt;/P&gt;&lt;P&gt;FROM JSON (wrap on) "root" PK "__KEY_root";&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; [id],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [date],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [__FK_data] AS [__KEY_root]&lt;/P&gt;&lt;P&gt;RESIDENT RestConnectorMasterTable&lt;/P&gt;&lt;P&gt;WHERE NOT IsNull([__FK_data]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remembering that the variable vFinalDate is Date(Now(),'YYYY-MM-DD hh:mm:ss'). And the vInitialDate is always the last record from the field "date" (&lt;SPAN style="font-size: 13.3333px;"&gt;YYYY-MM-DD hh:mm:ss&lt;/SPAN&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Feb 2017 11:45:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-02-13T11:45:20Z</dc:date>
    <item>
      <title>Looping Script using Date &amp; Hour as Parameter</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-Script-using-Date-Hour-as-Parameter/m-p/1261381#M397818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to create a loop script which has as parameter for the next load the last date &amp;amp; hour (YYYY-MM-DD hh:mm:ss) of the field 'date'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This parameter I've already have using "LET vInitialDate=Peek('date',-1)" in the end of the script. But how can I stop the looping, considering Now() as the final date? I'm stuck with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 11:33:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-Script-using-Date-Hour-as-Parameter/m-p/1261381#M397818</guid>
      <dc:creator />
      <dc:date>2017-02-13T11:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Looping Script using Date &amp; Hour as Parameter</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-Script-using-Date-Hour-as-Parameter/m-p/1261382#M397819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marcelo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please share the application with sample data? This will help us to identify the issue and provide fix for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 11:40:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-Script-using-Date-Hour-as-Parameter/m-p/1261382#M397819</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-02-13T11:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Looping Script using Date &amp; Hour as Parameter</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-Script-using-Date-Hour-as-Parameter/m-p/1261383#M397820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't share the application, but the script has the following model:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CUSTOM CONNECT TO "Provider=QvRestConnector.exe;url=URL&amp;amp;&lt;STRONG&gt;&lt;EM&gt;$(vInitialDate)&lt;/EM&gt;&lt;/STRONG&gt;|&lt;STRONG&gt;&lt;EM&gt;$(vFinalDate)&lt;/EM&gt;&lt;/STRONG&gt;";&lt;/P&gt;&lt;P&gt;RestConnectorMasterTable:&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp; "success",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "__KEY_root",&lt;/P&gt;&lt;P&gt;&amp;nbsp; (SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp; "id",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "date",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "__FK_data"&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM "data" FK "__FK_data") &lt;/P&gt;&lt;P&gt;FROM JSON (wrap on) "root" PK "__KEY_root";&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; [id],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [date],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [__FK_data] AS [__KEY_root]&lt;/P&gt;&lt;P&gt;RESIDENT RestConnectorMasterTable&lt;/P&gt;&lt;P&gt;WHERE NOT IsNull([__FK_data]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remembering that the variable vFinalDate is Date(Now(),'YYYY-MM-DD hh:mm:ss'). And the vInitialDate is always the last record from the field "date" (&lt;SPAN style="font-size: 13.3333px;"&gt;YYYY-MM-DD hh:mm:ss&lt;/SPAN&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 11:45:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-Script-using-Date-Hour-as-Parameter/m-p/1261383#M397820</guid>
      <dc:creator />
      <dc:date>2017-02-13T11:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Looping Script using Date &amp; Hour as Parameter</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-Script-using-Date-Hour-as-Parameter/m-p/1261384#M397821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nobody else?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 17:38:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-Script-using-Date-Hour-as-Parameter/m-p/1261384#M397821</guid>
      <dc:creator />
      <dc:date>2017-02-13T17:38:28Z</dc:date>
    </item>
  </channel>
</rss>

