<?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 How to create a table and insert data from visualization? in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-table-and-insert-data-from-visualization/m-p/2009388#M17639</link>
    <description>&lt;P&gt;Is it possible to create a new table (tables) from visualization component and insert/initialize data from visualization code? If there is some example code somewhere it would be excellent help.&lt;/P&gt;
&lt;P&gt;(QuickTableViewer component was a great example how to query tables and fields and let user to choose from them. Now I would need a way to create tables and initial data according to users selection).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 26 Nov 2022 09:11:57 GMT</pubDate>
    <dc:creator>KohSamui</dc:creator>
    <dc:date>2022-11-26T09:11:57Z</dc:date>
    <item>
      <title>How to create a table and insert data from visualization?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-table-and-insert-data-from-visualization/m-p/2009388#M17639</link>
      <description>&lt;P&gt;Is it possible to create a new table (tables) from visualization component and insert/initialize data from visualization code? If there is some example code somewhere it would be excellent help.&lt;/P&gt;
&lt;P&gt;(QuickTableViewer component was a great example how to query tables and fields and let user to choose from them. Now I would need a way to create tables and initial data according to users selection).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Nov 2022 09:11:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-table-and-insert-data-from-visualization/m-p/2009388#M17639</guid>
      <dc:creator>KohSamui</dc:creator>
      <dc:date>2022-11-26T09:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table and insert data from visualization?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-table-and-insert-data-from-visualization/m-p/2009575#M17644</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/208370"&gt;@KohSamui&lt;/a&gt;&amp;nbsp;, not totally clear what are you trying to achieve. Do you want to create a new table with dimensions and measure in it from an extension object?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 08:53:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-table-and-insert-data-from-visualization/m-p/2009575#M17644</guid>
      <dc:creator>alex_colombo</dc:creator>
      <dc:date>2022-11-28T08:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table and insert data from visualization?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-table-and-insert-data-from-visualization/m-p/2009825#M17646</link>
      <description>&lt;P&gt;Hi Alex,&lt;/P&gt;
&lt;P&gt;In our case user imports initial data to Qlik normal way using data manager.&lt;/P&gt;
&lt;P&gt;But our extension uses initial data to do some automatic analyzing by searching fields from tables and then user confirms that our extension has done correct guesses according to field names. After that our extension reads data from user confirmed fields and extension creates new tables for persisting some data that is calculated inside the extension (because initial data analyze and logic takes time and should be done only once initial data is imported).&lt;/P&gt;
&lt;P&gt;So what I need is an example of API usage where extension creates new table with new fields and inserts rows into that table.&lt;/P&gt;
&lt;P&gt;Kind Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 14:49:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-table-and-insert-data-from-visualization/m-p/2009825#M17646</guid>
      <dc:creator>KohSamui</dc:creator>
      <dc:date>2022-11-28T14:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table and insert data from visualization?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-table-and-insert-data-from-visualization/m-p/2009843#M17647</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/208370"&gt;@KohSamui&lt;/a&gt;&amp;nbsp;ok, so basically which APIs method to use for create a Qlik visualizations (a table in your example) directly in a Qlik Sense app with dimensions and measures, correct?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 15:15:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-table-and-insert-data-from-visualization/m-p/2009843#M17647</guid>
      <dc:creator>alex_colombo</dc:creator>
      <dc:date>2022-11-28T15:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table and insert data from visualization?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-table-and-insert-data-from-visualization/m-p/2009974#M17652</link>
      <description>&lt;P&gt;Almost but not quite. I try to express myself more clearly:&lt;/P&gt;
&lt;P&gt;I need to create data table (into data model) with several columns and add some thousands of data rows - and I need to do that from javascript code in visualization extension. (my code creates the data - it is not imported by user using data manager and csv or db connection).&lt;/P&gt;
&lt;P&gt;I know how to read data with qHyperCube but I do not know how to modify and store new data (and how to create empty data table into data model).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 20:24:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-table-and-insert-data-from-visualization/m-p/2009974#M17652</guid>
      <dc:creator>KohSamui</dc:creator>
      <dc:date>2022-11-28T20:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table and insert data from visualization?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-table-and-insert-data-from-visualization/m-p/2010299#M17655</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/208370"&gt;@KohSamui&lt;/a&gt;&amp;nbsp;that's clear. Basically you are allowing end users to modify reload script, insert new data and then reload data? It's a little bit scary from my point of view. What are you trying to achieve?&lt;/P&gt;&lt;P&gt;Anyway, for doing what you are asking you have to use Engine APIs:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Use &lt;A href="https://help.qlik.com/en-US/sense-developer/May2022/Subsystems/EngineJSONAPI/Content/service-doc-setscript.htm" target="_self"&gt;setScript&lt;/A&gt;&amp;nbsp;and &lt;A href="https://help.qlik.com/en-US/sense-developer/May2022/Subsystems/EngineJSONAPI/Content/service-doc-dosave.htm" target="_self"&gt;doSave&lt;/A&gt; method for changing&amp;nbsp; and saving the reload script where you can insert your new empty tables or new tables with rows (you have to read rows somewhere, for a DB from a CSV or you can hardcode data)&lt;/LI&gt;&lt;LI&gt;Use &lt;A href="https://help.qlik.com/en-US/sense-developer/May2022/Subsystems/EngineJSONAPI/Content/service-doc-doreload.htm" target="_self"&gt;doReload&lt;/A&gt; method for reloading your app&lt;/LI&gt;&lt;LI&gt;Then your new data are in the datamodel and you can use them in your extension&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 29 Nov 2022 10:54:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-table-and-insert-data-from-visualization/m-p/2010299#M17655</guid>
      <dc:creator>alex_colombo</dc:creator>
      <dc:date>2022-11-29T10:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table and insert data from visualization?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-table-and-insert-data-from-visualization/m-p/2010425#M17662</link>
      <description>&lt;P&gt;Thank you Alex, this seems a bit complex to me. Sorry, I am new in BI tools and terms and concepts are new to me.&lt;/P&gt;
&lt;P&gt;Is this the only way to modify data and datamodel from visualization extension?&lt;/P&gt;
&lt;P&gt;Currently our workflow goes like this:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;User imports a huge log file into system using normal Qlik data manager tools in UI (using csv or cloud source)&lt;/LI&gt;
&lt;LI&gt;Some other admin person checks the imported log file and uses external ETL and python scripts to create bunch of new csv files and and then uploads those to Qlik and manually make associations etc.&amp;nbsp; &lt;STRONG&gt;This is the phase that we would like to automate so that visualization extension does this from javascript code somehow.&lt;/STRONG&gt; (reads available tables and fields, asks user to confirm which fields are used, creates new tables and columns and calculates initial data into new tables).&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp; Visualization component asks user to select dimensions and measures, which is error prone. &lt;STRONG&gt;This phase we would like to be automatic also so that user doesn't have to manually select anything&lt;/STRONG&gt;, because we can trust that our code in phase 2 has created predefined dimension names etc.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;We are currently evaluating our options for implementing this somehow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 14:24:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-table-and-insert-data-from-visualization/m-p/2010425#M17662</guid>
      <dc:creator>KohSamui</dc:creator>
      <dc:date>2022-11-29T14:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table and insert data from visualization?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-table-and-insert-data-from-visualization/m-p/2011939#M17691</link>
      <description>&lt;P&gt;Is it so that hyper cube and qlik data model can not be used as a data base?  (From visual extension javascript code) &lt;/P&gt;
&lt;P&gt;Hyper cube and qlik data model are only for querying data from visualization? Not for writing and modifying?&lt;/P&gt;
&lt;P&gt;setScript, doSave and doReload methods seem like a hack for this purpose.&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 08:43:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-table-and-insert-data-from-visualization/m-p/2011939#M17691</guid>
      <dc:creator>KohSamui</dc:creator>
      <dc:date>2022-12-02T08:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table and insert data from visualization?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-table-and-insert-data-from-visualization/m-p/2011945#M17692</link>
      <description>&lt;P&gt;Qlik data model is the "database" of an app, where visualizations get data. Hypercube is an object where you can find data from data model, based on dimension and measures declared in the hypercube itself.&lt;/P&gt;&lt;P&gt;For writing and modifying "database" of an app you have to change or reload the reload script of an app. You can do it manually from Data Load Editor or via API, as mentioned above with setScript, doSave and deReload.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 08:50:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-table-and-insert-data-from-visualization/m-p/2011945#M17692</guid>
      <dc:creator>alex_colombo</dc:creator>
      <dc:date>2022-12-02T08:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table and insert data from visualization?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-table-and-insert-data-from-visualization/m-p/2014519#M17724</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;Is there some example code of this kind of database modification?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 18:05:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-table-and-insert-data-from-visualization/m-p/2014519#M17724</guid>
      <dc:creator>KohSamui</dc:creator>
      <dc:date>2022-12-08T18:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table and insert data from visualization?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-table-and-insert-data-from-visualization/m-p/2015330#M17739</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/208370"&gt;@KohSamui&lt;/a&gt; which kind of documentation are you looking for? About the APIs or about how to insert data in an app with the reload script?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 10:34:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-table-and-insert-data-from-visualization/m-p/2015330#M17739</guid>
      <dc:creator>alex_colombo</dc:creator>
      <dc:date>2022-12-12T10:34:34Z</dc:date>
    </item>
  </channel>
</rss>

