<?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 drop tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/drop-tables/m-p/206707#M62730</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to create a qlikview application wich can do the following things :&lt;/P&gt;&lt;P&gt;1/ load a script&lt;/P&gt;&lt;P&gt;2/ execute a macro when script loading is complete (document properties -&amp;gt; ....)&lt;/P&gt;&lt;P&gt;3/ drop all tables (wich are loades in the script)&lt;/P&gt;&lt;P&gt;I did step (1) et (2) successfully,&lt;/P&gt;&lt;P&gt;could you please help me do the (3) plzzz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Nov 2010 15:20:29 GMT</pubDate>
    <dc:creator>yacine_b</dc:creator>
    <dc:date>2010-11-30T15:20:29Z</dc:date>
    <item>
      <title>drop tables</title>
      <link>https://community.qlik.com/t5/QlikView/drop-tables/m-p/206707#M62730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to create a qlikview application wich can do the following things :&lt;/P&gt;&lt;P&gt;1/ load a script&lt;/P&gt;&lt;P&gt;2/ execute a macro when script loading is complete (document properties -&amp;gt; ....)&lt;/P&gt;&lt;P&gt;3/ drop all tables (wich are loades in the script)&lt;/P&gt;&lt;P&gt;I did step (1) et (2) successfully,&lt;/P&gt;&lt;P&gt;could you please help me do the (3) plzzz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 15:20:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/drop-tables/m-p/206707#M62730</guid>
      <dc:creator>yacine_b</dc:creator>
      <dc:date>2010-11-30T15:20:29Z</dc:date>
    </item>
    <item>
      <title>drop tables</title>
      <link>https://community.qlik.com/t5/QlikView/drop-tables/m-p/206708#M62731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;You can use the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;FOR i = 0 TO NoOfTables() - 1 LET vTableDropped = TableName(0); DROP TABLES $(vTableDropped);NEXT&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Whis will leave the document empty (no tables and no records), I'm not sure if that's what you want, though. Take care if you are using this code with section access, you will lock yourself out.&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 15:46:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/drop-tables/m-p/206708#M62731</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-11-30T15:46:32Z</dc:date>
    </item>
    <item>
      <title>drop tables</title>
      <link>https://community.qlik.com/t5/QlikView/drop-tables/m-p/206709#M62732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you Miguel but that's not exactly what I want. I think that I should drop tables using macro, not in script. what do you think about it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 15:54:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/drop-tables/m-p/206709#M62732</guid>
      <dc:creator>yacine_b</dc:creator>
      <dc:date>2010-11-30T15:54:54Z</dc:date>
    </item>
    <item>
      <title>drop tables</title>
      <link>https://community.qlik.com/t5/QlikView/drop-tables/m-p/206710#M62733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I don't think it's possible at least in version 9. You can remove all data (records) existing in the document with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;ActiveDocument.RemoveAllData&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;but I don't think macros can delete tables (structure).&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 16:17:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/drop-tables/m-p/206710#M62733</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-11-30T16:17:12Z</dc:date>
    </item>
    <item>
      <title>drop tables</title>
      <link>https://community.qlik.com/t5/QlikView/drop-tables/m-p/206711#M62734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you for your answer, it helps me ^^&lt;/P&gt;&lt;P&gt;I used the "ActiveDocument.RemoveAllData" in the macro, but when I reload the application (by qv.exe /r), I get a save file dialog. I dont like get this dialog :s&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 16:52:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/drop-tables/m-p/206711#M62734</guid>
      <dc:creator>yacine_b</dc:creator>
      <dc:date>2010-11-30T16:52:49Z</dc:date>
    </item>
    <item>
      <title>drop tables</title>
      <link>https://community.qlik.com/t5/QlikView/drop-tables/m-p/206712#M62735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do you still get the save dialog if you use&lt;/P&gt;&lt;P&gt;ActiveDocument.GetApplication.Quit&lt;/P&gt;&lt;P&gt;in the macro?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 16:59:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/drop-tables/m-p/206712#M62735</guid>
      <dc:creator />
      <dc:date>2010-11-30T16:59:31Z</dc:date>
    </item>
    <item>
      <title>drop tables</title>
      <link>https://community.qlik.com/t5/QlikView/drop-tables/m-p/206713#M62736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found a better solution.&lt;/P&gt;&lt;P&gt;you can create a macro like this:&lt;/P&gt;&lt;DIV&gt;ActiveDocument.Variables("IsItAMacroLunch").SetContent "YES",true&lt;BR /&gt;ActiveDocument.Reload&lt;BR /&gt;ActiveDocument.Variables("IsItAMacroLunch").SetContent "NO",true&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Dont forget to add the variable "IsItAMacroLunch" and give it "NO" as value.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;then, add in the script the following instructions:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;IF '$(IsItAMacroLunch)'='YES' THEN&lt;BR /&gt;//nothing here&lt;BR /&gt;ELSE&lt;BR /&gt;// Your old script.&lt;BR /&gt;ENDIF&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 15:15:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/drop-tables/m-p/206713#M62736</guid>
      <dc:creator>yacine_b</dc:creator>
      <dc:date>2010-12-08T15:15:02Z</dc:date>
    </item>
  </channel>
</rss>

