<?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: Update/Insert to a Database Table from QlikSense via ODBC Connection in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Update-Insert-to-a-Database-Table-from-QlikSense-via-ODBC/m-p/1398414#M32450</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hans, you really helped to get my gears turning.&amp;nbsp; Oracle by default does not insert from a function, but there is a parameter we can add "PRAGMA AUTONOMOUS_TRANSACTION;" that will enable an Oracle function to perform an insert.&amp;nbsp; I would not call this a "solution", as writing data back to a database is a basic function for any enterprise application, but will get us going for the time being.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will modify the&amp;nbsp; Function listed in your link to one that works for Oracle databases:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OR REPLACE FUNCTION writeback (i_writeback_message IN VARCHAR2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RETURN INTEGER&lt;/P&gt;&lt;P&gt;IS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRAGMA AUTONOMOUS_TRANSACTION;&lt;/P&gt;&lt;P&gt;BEGIN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; INSERT INTO xtmp_writeback_table (FIELD1) VALUES (i_writeback_message);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; COMMIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RETURN SQLCODE;&lt;/P&gt;&lt;P&gt;END;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Jake&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Oct 2017 20:23:39 GMT</pubDate>
    <dc:creator>knightjc</dc:creator>
    <dc:date>2017-10-23T20:23:39Z</dc:date>
    <item>
      <title>Update/Insert to a Database Table from QlikSense via ODBC Connection</title>
      <link>https://community.qlik.com/t5/App-Development/Update-Insert-to-a-Database-Table-from-QlikSense-via-ODBC/m-p/1398412#M32448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day QlikSense community! &lt;/P&gt;&lt;P&gt;My company is a long time QlikView shop and trying to dip our toes into the QlikSense world with our first application.&amp;nbsp; One of the requirements of any BI tool we use is that it be able to log statuses back to our master scheduler environment for monitoring.&amp;nbsp; That requires a simple insert statement to be executed from the QlikSense load script.&amp;nbsp; In QlikView we simply add the "mode is write" option to an ODBC connection string and it works flawlessly.&amp;nbsp; QlikSense does not seem to have that option available.&amp;nbsp; I have a ticket open with Qlik Support now, and hopefully that will result in an answer, but I wanted to post this to the community to see what options you may know of.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My hope is that someone on this forum knows where that "hidden checkbox" might be inside of QlikSense that would make this effort simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;Jake&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 16:23:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Update-Insert-to-a-Database-Table-from-QlikSense-via-ODBC/m-p/1398412#M32448</guid>
      <dc:creator>knightjc</dc:creator>
      <dc:date>2017-10-19T16:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Update/Insert to a Database Table from QlikSense via ODBC Connection</title>
      <link>https://community.qlik.com/t5/App-Development/Update-Insert-to-a-Database-Table-from-QlikSense-via-ODBC/m-p/1398413#M32449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-19167"&gt;https://community.qlik.com/docs/DOC-19167&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2017 08:23:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Update-Insert-to-a-Database-Table-from-QlikSense-via-ODBC/m-p/1398413#M32449</guid>
      <dc:creator>hacr</dc:creator>
      <dc:date>2017-10-20T08:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Update/Insert to a Database Table from QlikSense via ODBC Connection</title>
      <link>https://community.qlik.com/t5/App-Development/Update-Insert-to-a-Database-Table-from-QlikSense-via-ODBC/m-p/1398414#M32450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hans, you really helped to get my gears turning.&amp;nbsp; Oracle by default does not insert from a function, but there is a parameter we can add "PRAGMA AUTONOMOUS_TRANSACTION;" that will enable an Oracle function to perform an insert.&amp;nbsp; I would not call this a "solution", as writing data back to a database is a basic function for any enterprise application, but will get us going for the time being.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will modify the&amp;nbsp; Function listed in your link to one that works for Oracle databases:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OR REPLACE FUNCTION writeback (i_writeback_message IN VARCHAR2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RETURN INTEGER&lt;/P&gt;&lt;P&gt;IS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRAGMA AUTONOMOUS_TRANSACTION;&lt;/P&gt;&lt;P&gt;BEGIN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; INSERT INTO xtmp_writeback_table (FIELD1) VALUES (i_writeback_message);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; COMMIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RETURN SQLCODE;&lt;/P&gt;&lt;P&gt;END;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Jake&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 20:23:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Update-Insert-to-a-Database-Table-from-QlikSense-via-ODBC/m-p/1398414#M32450</guid>
      <dc:creator>knightjc</dc:creator>
      <dc:date>2017-10-23T20:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Update/Insert to a Database Table from QlikSense via ODBC Connection</title>
      <link>https://community.qlik.com/t5/App-Development/Update-Insert-to-a-Database-Table-from-QlikSense-via-ODBC/m-p/1398415#M32451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Happy to hear it was useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 06:37:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Update-Insert-to-a-Database-Table-from-QlikSense-via-ODBC/m-p/1398415#M32451</guid>
      <dc:creator>hacr</dc:creator>
      <dc:date>2017-10-24T06:37:12Z</dc:date>
    </item>
  </channel>
</rss>

