<?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: Connecting to web services and writing back to database in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Connecting-to-web-services-and-writing-back-to-database/m-p/360399#M1239740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Archana&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this example &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-2784"&gt;http://community.qlik.com/docs/DOC-2784&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It uses an ASP page to process the XML submitted, but the concepts are all the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Lee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 May 2012 03:16:08 GMT</pubDate>
    <dc:creator>Lee_Matthews</dc:creator>
    <dc:date>2012-05-25T03:16:08Z</dc:date>
    <item>
      <title>Connecting to web services and writing back to database</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-to-web-services-and-writing-back-to-database/m-p/360393#M1239726</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 have requirement where users should have the option to select certain KPIs from a list box and input some field values. So everytime based on whatever changes they do to the selection and input fields, QlikView should send this as a parameter to SPSS or SAS application and the application them manipulates the values and writes back to the database. We should then be able to get the updated values from the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So while all this happens in background at the QV user end it should be seamless as the usual selection criteria submission and data refresh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I mentioned this should be dynamic and not just ones during the load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreaciate any help. Let me know if I am not clear on the question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 16:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-to-web-services-and-writing-back-to-database/m-p/360393#M1239726</guid>
      <dc:creator />
      <dc:date>2026-01-26T16:26:21Z</dc:date>
    </item>
    <item>
      <title>Connecting to web services and writing back to database</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-to-web-services-and-writing-back-to-database/m-p/360394#M1239728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Extensions are by default client side actions executed in the context of the users browser so you would need to deal with authentication in some way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyhow i would probably build an object extension so you would require some user feedback before calling your webservice. Since we do fire update events, which is good, but with our associative nature everything in your application will be considered an update in the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You clicked a list box on a totally different sheet? The underlaying data model updates which also causes your selections to update which in turn fires our update event and your extension code is executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So worst case you would be sending tons of requests against your webservice with the same data over and over again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hook up your own event handler to your object and send data on user interaction instead, just my 2 cents &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 11:34:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-to-web-services-and-writing-back-to-database/m-p/360394#M1239728</guid>
      <dc:creator>Alexander_Thor</dc:creator>
      <dc:date>2012-05-22T11:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to web services and writing back to database</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-to-web-services-and-writing-back-to-database/m-p/360395#M1239731</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;I have done something similar where QV writes back to SQL Server. I have used System Meta Data functions() in QlikView to capture the current selection states based on in-built events. And these values are stored in QV Variables and I have create abstraction layer to transform these variables. My abstraction layer contains QV Variables which generates SQL Insert Statments. And finally, I have used VB Script to open &amp;amp; close OLEDB connection which writes to SQL Server Table. I have also written constraints to validate the selection state by using QV Variables for error handling. Also implemented constraints in SQL Server for data integrity purposes.&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 this 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;Good luck.&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;A href="http://qlikshare.com/"&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;www.QlikShare.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 11:45:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-to-web-services-and-writing-back-to-database/m-p/360395#M1239731</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-05-22T11:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to web services and writing back to database</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-to-web-services-and-writing-back-to-database/m-p/360396#M1239734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This can be solved without extensions, by using a macro that is either triggered by a variable-trigger, or a button. The macro can either createa textfile that is imported into SPSS, or it could problably also write directly into SPSS (I have done something similar against an SQL database where my macro executed a stored procedure).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best Regards Robert Svebeck &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 13:09:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-to-web-services-and-writing-back-to-database/m-p/360396#M1239734</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2012-05-22T13:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to web services and writing back to database</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-to-web-services-and-writing-back-to-database/m-p/360397#M1239736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Deepak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you mind sharing the code or any support files? Appreciate your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Archana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 11:22:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-to-web-services-and-writing-back-to-database/m-p/360397#M1239736</guid>
      <dc:creator />
      <dc:date>2012-05-24T11:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to web services and writing back to database</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-to-web-services-and-writing-back-to-database/m-p/360398#M1239738</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 Archana,&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;Sorry, I can't share the entire application but I'm sharing the VB Script which writes to SQL Server by using OLEDB connection. As mentioned above this will be last step where I'm storing the values in variables and writing these variables to SQL Server.&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 this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG style="font-family: calibri,verdana,arial,sans-serif;"&gt;Sub WriteToSQLServer()&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG style="font-family: calibri,verdana,arial,sans-serif;"&gt;Dim MyServer, MyConn, MyConnOpen, MyRecordSet, MySQLString&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG style="font-family: calibri,verdana,arial,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '===========================================================================&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG style="font-family: calibri,verdana,arial,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyServer = "100.100.100.100"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG style="font-family: calibri,verdana,arial,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyConn = "Provider=SQLOLEDB.1; Initial Catalog=DB_Maintenance; Data Source=" &amp;amp; MyServer&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG style="font-family: calibri,verdana,arial,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set MyConnOpen = CreateObject("ADODB.Connection")&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG style="font-family: calibri,verdana,arial,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyConnOpen.Open MyConn, "Test", "test"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG style="font-family: calibri,verdana,arial,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set MyRecordSet =CreateObject("ADODB.Recordset")&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG style="font-family: calibri,verdana,arial,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set MyVariable =&amp;nbsp; ActiveDocument.GetVariable("vMySQLStatement")&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG style="font-family: calibri,verdana,arial,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MySQLString = MyVariable.GetContent.String&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG style="font-family: calibri,verdana,arial,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyRecordSet.Open MySQLString, MyConnOpen&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG style="font-family: calibri,verdana,arial,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox "You have updated the data for " &amp;amp; MyDateString&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG style="font-family: calibri,verdana,arial,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '===========================================================================&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG style="font-family: calibri,verdana,arial,sans-serif;"&gt;End Sub&lt;/STRONG&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;Good luck!&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;A href="http://qlikshare.com/"&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;www.QlikShare.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 15:04:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-to-web-services-and-writing-back-to-database/m-p/360398#M1239738</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-05-24T15:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to web services and writing back to database</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-to-web-services-and-writing-back-to-database/m-p/360399#M1239740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Archana&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this example &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-2784"&gt;http://community.qlik.com/docs/DOC-2784&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It uses an ASP page to process the XML submitted, but the concepts are all the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Lee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 03:16:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-to-web-services-and-writing-back-to-database/m-p/360399#M1239740</guid>
      <dc:creator>Lee_Matthews</dc:creator>
      <dc:date>2012-05-25T03:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to web services and writing back to database</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-to-web-services-and-writing-back-to-database/m-p/360400#M1239741</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 Lee,&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;Thanks for sharing. Very useful.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 08:43:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-to-web-services-and-writing-back-to-database/m-p/360400#M1239741</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-05-25T08:43:42Z</dc:date>
    </item>
  </channel>
</rss>

