<?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: Create temporary table after selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-temporary-table-after-selection/m-p/336135#M703432</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;QlikView is designed for Read-Only purposes. Although, we have two options &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;1. Edit Script &amp;gt; Settings &amp;gt; Check open databases in read &amp;amp; write mode&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;2. VB Script&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;we can use VB Script within QlikView API model. You can write VB Script(Macro) and call it on On-Click action. QlikView provides in-built triggers and you can use these triggers to call the Macro code. I'm attaching the API reference documentation for your understanding.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;I wanted to understand why do you want to give the power to users to create a new table on button click? I'm assuming that you understand the implication of this request...this will be very &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;DANGEROUS &lt;/STRONG&gt;&lt;/SPAN&gt;where users end up creating 100's of table (If not crashing the DB) and there is potential risk on the data integrity or your DBA might not appreciate this approach.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;If you really wanted to write to a table then I'd recommend you to store the data in the flat file/CSV format and run the batch process without giving direct access to the users. This way you don't have to provide "Write Permissions" to every user, rather you have one login which does the job. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;I hope it makes sense!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;DV&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;A href="http://QlikShare.com"&gt;www.QlikShare.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Aug 2012 07:02:06 GMT</pubDate>
    <dc:creator>IAMDV</dc:creator>
    <dc:date>2012-08-03T07:02:06Z</dc:date>
    <item>
      <title>Create temporary table after selection</title>
      <link>https://community.qlik.com/t5/QlikView/Create-temporary-table-after-selection/m-p/336134#M703431</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;when I clik on a button, I'd like to create a temporary table in the database of my Qlikview document . I don't know how to do that and I don't find documentation on this subject. VB script ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make it clear,I'd like the user do his selection (counrty, product...etc)&lt;/P&gt;&lt;P&gt;then he click on a button &lt;/P&gt;&lt;P&gt;and with his selection we create a new table in the database. This table can't be create before the selection is done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if this kind of program are possible in Qlikview !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2012 05:33:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-temporary-table-after-selection/m-p/336134#M703431</guid>
      <dc:creator />
      <dc:date>2012-08-03T05:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create temporary table after selection</title>
      <link>https://community.qlik.com/t5/QlikView/Create-temporary-table-after-selection/m-p/336135#M703432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;QlikView is designed for Read-Only purposes. Although, we have two options &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;1. Edit Script &amp;gt; Settings &amp;gt; Check open databases in read &amp;amp; write mode&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;2. VB Script&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;we can use VB Script within QlikView API model. You can write VB Script(Macro) and call it on On-Click action. QlikView provides in-built triggers and you can use these triggers to call the Macro code. I'm attaching the API reference documentation for your understanding.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;I wanted to understand why do you want to give the power to users to create a new table on button click? I'm assuming that you understand the implication of this request...this will be very &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;DANGEROUS &lt;/STRONG&gt;&lt;/SPAN&gt;where users end up creating 100's of table (If not crashing the DB) and there is potential risk on the data integrity or your DBA might not appreciate this approach.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;If you really wanted to write to a table then I'd recommend you to store the data in the flat file/CSV format and run the batch process without giving direct access to the users. This way you don't have to provide "Write Permissions" to every user, rather you have one login which does the job. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;I hope it makes sense!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;DV&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;A href="http://QlikShare.com"&gt;www.QlikShare.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2012 07:02:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-temporary-table-after-selection/m-p/336135#M703432</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-08-03T07:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Create temporary table after selection</title>
      <link>https://community.qlik.com/t5/QlikView/Create-temporary-table-after-selection/m-p/336136#M703433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your answer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to be more precise!&lt;/P&gt;&lt;P&gt;Today I have this result&lt;/P&gt;&lt;P&gt;&lt;IMG class="jiveImage" src="https://community.qlik.com/message/244946/" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="19382" alt="exemple.jpg" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/19382_exemple.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want, it's to "concatenate" these three tables in one. The link is the year/quarter dimension. &lt;/P&gt;&lt;P&gt;The expression are not based on the same selection. The user make selection on 20 dimensions&lt;/P&gt;&lt;P&gt;First Table : SUM(PDTTOT) to calculate this expression the user click on a button which make the link between 5 dimensions&lt;/P&gt;&lt;P&gt;Second table : SUM( {$&amp;lt;DTFB= &amp;gt;} NART) 19 dimensions (except DTFB)&lt;/P&gt;&lt;P&gt;Third table : Cumulative SUM (depends dimension age(0 to 10))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I wanted to do it's to create a table like that : &lt;/P&gt;&lt;P&gt;PER&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AGE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUE&lt;/P&gt;&lt;P&gt;2002/1&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;2002/1&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;2002/1&amp;nbsp;&amp;nbsp; -1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 68&lt;/P&gt;&lt;P&gt;2002/1&amp;nbsp;&amp;nbsp; -2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 409592&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've no idea on how to do that and if it is possible.&lt;/P&gt;&lt;P&gt;I hope I'm more clear on my demand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2012 08:08:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-temporary-table-after-selection/m-p/336136#M703433</guid>
      <dc:creator />
      <dc:date>2012-08-03T08:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create temporary table after selection</title>
      <link>https://community.qlik.com/t5/QlikView/Create-temporary-table-after-selection/m-p/336137#M703434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I take the solution to export an excel file in C:/temp and to do a reload &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 06:05:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-temporary-table-after-selection/m-p/336137#M703434</guid>
      <dc:creator />
      <dc:date>2012-08-14T06:05:42Z</dc:date>
    </item>
  </channel>
</rss>

