<?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 DynamicUpdateCommand - deleteAll in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/DynamicUpdateCommand-deleteAll/m-p/230001#M81872</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;How is it possible to delete all records of a table in the DynamicUpdateCommand..&lt;/P&gt;&lt;P&gt;Is there also a possibility to use placeholders like %&lt;/P&gt;&lt;P&gt;set result = ActiveDocument.DynamicUpdateCommand("DELETE FROM Test WHERE col like 'abc%' ")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 May 2010 10:31:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-03T10:31:10Z</dc:date>
    <item>
      <title>DynamicUpdateCommand - deleteAll</title>
      <link>https://community.qlik.com/t5/QlikView/DynamicUpdateCommand-deleteAll/m-p/230001#M81872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;How is it possible to delete all records of a table in the DynamicUpdateCommand..&lt;/P&gt;&lt;P&gt;Is there also a possibility to use placeholders like %&lt;/P&gt;&lt;P&gt;set result = ActiveDocument.DynamicUpdateCommand("DELETE FROM Test WHERE col like 'abc%' ")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 May 2010 10:31:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DynamicUpdateCommand-deleteAll/m-p/230001#M81872</guid>
      <dc:creator />
      <dc:date>2010-05-03T10:31:10Z</dc:date>
    </item>
    <item>
      <title>DynamicUpdateCommand - deleteAll</title>
      <link>https://community.qlik.com/t5/QlikView/DynamicUpdateCommand-deleteAll/m-p/230002#M81873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no complete documentation about DynamicUpdateCommand so we just have to test to find out what works.&lt;BR /&gt;&lt;BR /&gt;I have succeeded to delete all records by adding a dummy TRUE condition into a WHERE clause:&lt;BR /&gt;&lt;BR /&gt;sub deletetest&lt;BR /&gt; SET Result = ActiveDocument.DynamicUpdateCommand("DELETE FROM Test WHERE -1")&lt;BR /&gt; if Result = false then&lt;BR /&gt; MsgBox Result.ErrorMessage&lt;BR /&gt; end if&lt;BR /&gt;end sub&lt;BR /&gt;&lt;BR /&gt;Or if that makes more sense: "DELETE FROM Test WHERE 1=1"&lt;BR /&gt;&lt;IMG alt="Wink" src="http://community.qlik.com/emoticons/emotion-5.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 14:09:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DynamicUpdateCommand-deleteAll/m-p/230002#M81873</guid>
      <dc:creator>tanelry</dc:creator>
      <dc:date>2010-05-04T14:09:47Z</dc:date>
    </item>
  </channel>
</rss>

