<?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 Dynamic Update and Dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-Update-and-Dates/m-p/212741#M503359</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortuantly Qlikview doesnt seem to support this command within the Macro, Unless im missing something?&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;Gez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Apr 2010 16:52:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-04-13T16:52:05Z</dc:date>
    <item>
      <title>Dynamic Update and Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Update-and-Dates/m-p/212739#M503357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;Hope someone can help. Each night a new set of QVD files are generated. Some applicaltions we use require live data so we have been looking at using the Dynamic update function.&lt;/P&gt;&lt;P&gt;When retrieving the field DateUpdated from the SQL Server and adding it to the DateUpdated Table within Qlikview using DynamicUpdate the dates seem to appear in a different format. Using a list box it would appear that one is 12hr and one is 24hr and therefore any calculations we do on DateUpdated appears to exclude data for the current date.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1404_sourceID:1404" /&gt;&lt;/P&gt;&lt;P&gt;The Macro i use to retive the DateUpdate is as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;Set oRS =CreateObject("ADODB.Recordset")&lt;BR /&gt;sSQL="Select ID,DateUpdated,UserID,CAST(Closed AS INT) * - 1 AS Closed,CompanyID,EmployeeID,Priority from [WORK] WHERE DateUpdated&amp;gt;dateadd(minute,-20,'" &amp;amp; WorkDate &amp;amp; "') OR DateCreated&amp;gt;dateadd(minute,-20,'" &amp;amp; WorkDate &amp;amp; "')"&lt;BR /&gt;oRS.Open sSQL, oconn,3,2&lt;BR /&gt; Values = oRS.GetRows&lt;BR /&gt; ' Opens table&lt;BR /&gt; ' Pulls all the rows back into an array called Values&lt;BR /&gt; ' Closes connection&lt;BR /&gt;&lt;BR /&gt; oRS.close&lt;BR /&gt; set sConn=nothing&lt;BR /&gt; For r = LBound(Values, 2) To UBound(Values, 2)&lt;BR /&gt;&lt;BR /&gt; SET Inputting = ActiveDocument.DynamicUpdateCommand ("DELETE FROM QVWork WHERE WorkID=" &amp;amp; Values(0, r))&lt;BR /&gt; QlikSQL = "INSERT INTO QVWork (WorkID,DateUpdated,UserID,Closed,CompanyID,EmployeeID,Priority) VALUES (" &amp;amp; Values(0, r) &amp;amp; ",'" &amp;amp; Values(1, r) &amp;amp; "'," &amp;amp; Values(2, r) &amp;amp; "," &amp;amp; Values(3, r) &amp;amp; "," &amp;amp; Values(4, r) &amp;amp; "," &amp;amp; Values(5, r) &amp;amp; "," &amp;amp; Values(6, r) &amp;amp; ")"&lt;BR /&gt; SET Inputting = ActiveDocument.DynamicUpdateCommand (QlikSQL)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;How can I make sure that the date retrieved in the Macro is formatted the same as the date in the QVD file, I'm assuming that it's the difference between Qlikview SQL connector and the Macro Interpreter?&lt;/P&gt;&lt;P&gt;Any Pointers will be greatly Received!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 15:09:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Update-and-Dates/m-p/212739#M503357</guid>
      <dc:creator />
      <dc:date>2010-04-13T15:09:13Z</dc:date>
    </item>
    <item>
      <title>Dynamic Update and Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Update-and-Dates/m-p/212740#M503358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would convert different formatted dates into number. In VBScript, you can use CDbl. Or something like this CDbl(CDate(&amp;lt;date string &amp;gt;))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 15:24:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Update-and-Dates/m-p/212740#M503358</guid>
      <dc:creator />
      <dc:date>2010-04-13T15:24:58Z</dc:date>
    </item>
    <item>
      <title>Dynamic Update and Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Update-and-Dates/m-p/212741#M503359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortuantly Qlikview doesnt seem to support this command within the Macro, Unless im missing something?&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;Gez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 16:52:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Update-and-Dates/m-p/212741#M503359</guid>
      <dc:creator />
      <dc:date>2010-04-13T16:52:05Z</dc:date>
    </item>
    <item>
      <title>Dynamic Update and Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Update-and-Dates/m-p/212742#M503360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QlikView Macro can be written on pure JavaScript or pure VBScript. You can use any VBScript functions in QlikView macro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 19:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Update-and-Dates/m-p/212742#M503360</guid>
      <dc:creator />
      <dc:date>2010-04-13T19:25:12Z</dc:date>
    </item>
  </channel>
</rss>

