<?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: Temp Table in Macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Temp-Table-in-Macro/m-p/467266#M699369</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. Refresh means reload. Of course, what did you expect with a new reload?&lt;/P&gt;&lt;P&gt;Listen,&lt;/P&gt;&lt;P&gt;When you update your table, export it to a qvd or txt or whatever in the same macro.&lt;/P&gt;&lt;P&gt;You can export only what you want and concatenate in the next refresh (reload)&lt;/P&gt;&lt;P&gt;luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Nov 2012 08:29:55 GMT</pubDate>
    <dc:creator>christian77</dc:creator>
    <dc:date>2012-11-27T08:29:55Z</dc:date>
    <item>
      <title>Temp Table in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Temp-Table-in-Macro/m-p/467261#M699364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys can i create a temp table inside a macro .... ??? i do not want to make&amp;nbsp; it in Qlikview Data model or in some other database. Just want to store some values in a field ????? Or may be can i store the values in some field using macro &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 16:06:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Temp-Table-in-Macro/m-p/467261#M699364</guid>
      <dc:creator />
      <dc:date>2012-11-26T16:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Temp Table in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Temp-Table-in-Macro/m-p/467262#M699365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it's possible to modify QV data model tables with a macro.&lt;/P&gt;&lt;P&gt;You also can use variables from the variable panel in the macro module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rem Dynamic Data Update&lt;/P&gt;&lt;P&gt;sub Update&lt;BR /&gt;&amp;nbsp; SET Result = ActiveDocument.DynamicUpdateCommand ("UPDATE * SET Discount = if(Discount &amp;gt;= 35, 0, if (City='Stockholm', Discount + 5, Discount + 2)) WHERE Country = 'SE'")&lt;BR /&gt;&amp;nbsp; if Result = false then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox Result.ErrorMessage&lt;BR /&gt;&amp;nbsp; end if&amp;nbsp; &lt;BR /&gt;end sub&lt;/P&gt;&lt;P&gt;sub Insert&lt;BR /&gt;&amp;nbsp; SET Result = ActiveDocument.DynamicUpdateCommand ("INSERT INTO * (Country, City) VALUES (DK, Copenhagen), (NO, Oslo)")&lt;BR /&gt;&amp;nbsp; if Result = false then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox Result.ErrorMessage&lt;BR /&gt;&amp;nbsp; end if&amp;nbsp; &lt;BR /&gt;end sub&lt;/P&gt;&lt;P&gt;sub Delete&lt;BR /&gt;&amp;nbsp; SET Result = ActiveDocument.DynamicUpdateCommand ("DELETE FROM CITY WHERE IsNull (Discount)")&lt;BR /&gt;&amp;nbsp; if Result = false then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox Result.ErrorMessage&lt;BR /&gt;&amp;nbsp; end if&amp;nbsp; &lt;BR /&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need the APIGuide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="25601" alt="DataUpdate.jpg" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/25601_DataUpdate.jpg" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 17:09:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Temp-Table-in-Macro/m-p/467262#M699365</guid>
      <dc:creator>christian77</dc:creator>
      <dc:date>2012-11-26T17:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Temp Table in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Temp-Table-in-Macro/m-p/467263#M699366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;also, you can load a table from anywhere and then state the clause:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table TableName; &lt;/P&gt;&lt;P&gt;Drop field from table ...; &lt;/P&gt;&lt;P&gt;Drop fields ...; Drop Tables ...;&lt;/P&gt;&lt;P&gt;in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 17:15:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Temp-Table-in-Macro/m-p/467263#M699366</guid>
      <dc:creator>christian77</dc:creator>
      <dc:date>2012-11-26T17:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Temp Table in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Temp-Table-in-Macro/m-p/467264#M699367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christian &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply but still the field is not getting updated ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;am i missing something .. ??????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 17:39:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Temp-Table-in-Macro/m-p/467264#M699367</guid>
      <dc:creator />
      <dc:date>2012-11-26T17:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Temp Table in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Temp-Table-in-Macro/m-p/467265#M699368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Christan &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to update the field but when i am doing a refersh .. the value is getting back to the old value...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i do not want that .. is it possible???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 18:06:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Temp-Table-in-Macro/m-p/467265#M699368</guid>
      <dc:creator />
      <dc:date>2012-11-26T18:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Temp Table in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Temp-Table-in-Macro/m-p/467266#M699369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. Refresh means reload. Of course, what did you expect with a new reload?&lt;/P&gt;&lt;P&gt;Listen,&lt;/P&gt;&lt;P&gt;When you update your table, export it to a qvd or txt or whatever in the same macro.&lt;/P&gt;&lt;P&gt;You can export only what you want and concatenate in the next refresh (reload)&lt;/P&gt;&lt;P&gt;luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 08:29:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Temp-Table-in-Macro/m-p/467266#M699369</guid>
      <dc:creator>christian77</dc:creator>
      <dc:date>2012-11-27T08:29:55Z</dc:date>
    </item>
  </channel>
</rss>

