<?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 write-back to database from QlikView application via Accesspoint in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/write-back-to-database-from-QlikView-application-via-Accesspoint/m-p/701251#M253134</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi -&lt;/P&gt;&lt;P&gt;We are working on the write-back to the database and beloe are the steps followed.&lt;/P&gt;&lt;P&gt;- created .QVW with Input box for users to enter values.&lt;BR /&gt;- Written a Macro. see code below&lt;/P&gt;&lt;P&gt;sub DB&lt;BR /&gt;Dim objADO&lt;BR /&gt;Dim objRs&lt;BR /&gt;Dim strSQL&lt;/P&gt;&lt;P&gt;'This is the value which need to be inserted&lt;/P&gt;&lt;P&gt;'vcomment=ActiveDocument.GetVariable("vPrice").GetContent.String&lt;/P&gt;&lt;P&gt;'this is the filter condition that filters the rows which alone need to be updated in the table&lt;/P&gt;&lt;P&gt;vfield=ActiveDocument.GetVariable("vPrice").GetContent.String&lt;/P&gt;&lt;P&gt;'create ADO object&lt;BR /&gt;set objADO=CreateObject("ADODB.Connection")&lt;/P&gt;&lt;P&gt;'establish connection&lt;BR /&gt;objADO.Open "Driver={NetezzaSQL};servername=ip used;port=5480;database=dbname;username=usr1;password=password;" &lt;/P&gt;&lt;P&gt;'set SQL&lt;/P&gt;&lt;P&gt;strSQL="update Qlikview_QC_testtable set price='''&amp;amp;vfield''' where flag=123 "&lt;/P&gt;&lt;P&gt;'begin transcation&lt;BR /&gt;objADO.BeginTrans&lt;/P&gt;&lt;P&gt;'execute transaction&lt;BR /&gt;objADO.Execute strSQL,iAffected&lt;BR /&gt;objADO.CommitTrans&lt;BR /&gt;objADO.Close&lt;BR /&gt;Msgbox("DB updated")&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;- In the module "System Access" is provided under "Requested Module security", "Allow System Access" is selected for Current local security.&lt;/P&gt;&lt;P&gt;- When i open the report,&lt;BR /&gt; 1. It does not allow me to modify the value and &lt;BR /&gt; 2. Receive below error&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Macro Parse failed. Functionality was lost&lt;/P&gt;&lt;P&gt;DB&lt;/P&gt;&lt;P&gt;Error: Safety settings on this computer prohibit accessind a data source on another domain.&lt;/P&gt;&lt;P&gt;Can you please let me know what could cause above issue. Are we missing any configuraiton from our side.&lt;/P&gt;&lt;P&gt;Also does the users need any additional privileges to the database to insert/update the data to the database.&lt;/P&gt;&lt;P&gt;Thanks for the help &lt;/P&gt;&lt;P&gt;Jag&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Sep 2014 15:58:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-15T15:58:17Z</dc:date>
    <item>
      <title>write-back to database from QlikView application via Accesspoint</title>
      <link>https://community.qlik.com/t5/QlikView/write-back-to-database-from-QlikView-application-via-Accesspoint/m-p/701251#M253134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi -&lt;/P&gt;&lt;P&gt;We are working on the write-back to the database and beloe are the steps followed.&lt;/P&gt;&lt;P&gt;- created .QVW with Input box for users to enter values.&lt;BR /&gt;- Written a Macro. see code below&lt;/P&gt;&lt;P&gt;sub DB&lt;BR /&gt;Dim objADO&lt;BR /&gt;Dim objRs&lt;BR /&gt;Dim strSQL&lt;/P&gt;&lt;P&gt;'This is the value which need to be inserted&lt;/P&gt;&lt;P&gt;'vcomment=ActiveDocument.GetVariable("vPrice").GetContent.String&lt;/P&gt;&lt;P&gt;'this is the filter condition that filters the rows which alone need to be updated in the table&lt;/P&gt;&lt;P&gt;vfield=ActiveDocument.GetVariable("vPrice").GetContent.String&lt;/P&gt;&lt;P&gt;'create ADO object&lt;BR /&gt;set objADO=CreateObject("ADODB.Connection")&lt;/P&gt;&lt;P&gt;'establish connection&lt;BR /&gt;objADO.Open "Driver={NetezzaSQL};servername=ip used;port=5480;database=dbname;username=usr1;password=password;" &lt;/P&gt;&lt;P&gt;'set SQL&lt;/P&gt;&lt;P&gt;strSQL="update Qlikview_QC_testtable set price='''&amp;amp;vfield''' where flag=123 "&lt;/P&gt;&lt;P&gt;'begin transcation&lt;BR /&gt;objADO.BeginTrans&lt;/P&gt;&lt;P&gt;'execute transaction&lt;BR /&gt;objADO.Execute strSQL,iAffected&lt;BR /&gt;objADO.CommitTrans&lt;BR /&gt;objADO.Close&lt;BR /&gt;Msgbox("DB updated")&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;- In the module "System Access" is provided under "Requested Module security", "Allow System Access" is selected for Current local security.&lt;/P&gt;&lt;P&gt;- When i open the report,&lt;BR /&gt; 1. It does not allow me to modify the value and &lt;BR /&gt; 2. Receive below error&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Macro Parse failed. Functionality was lost&lt;/P&gt;&lt;P&gt;DB&lt;/P&gt;&lt;P&gt;Error: Safety settings on this computer prohibit accessind a data source on another domain.&lt;/P&gt;&lt;P&gt;Can you please let me know what could cause above issue. Are we missing any configuraiton from our side.&lt;/P&gt;&lt;P&gt;Also does the users need any additional privileges to the database to insert/update the data to the database.&lt;/P&gt;&lt;P&gt;Thanks for the help &lt;/P&gt;&lt;P&gt;Jag&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 15:58:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/write-back-to-database-from-QlikView-application-via-Accesspoint/m-p/701251#M253134</guid>
      <dc:creator />
      <dc:date>2014-09-15T15:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: write-back to database from QlikView application via Accesspoint</title>
      <link>https://community.qlik.com/t5/QlikView/write-back-to-database-from-QlikView-application-via-Accesspoint/m-p/701252#M253135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Via access point meant that the local user and computer needs rights (through firewalls, port-blocking, group policies ...) to access the database. And with AJAX it won't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe an alternatively is &lt;A href="https://community.qlik.com/docs/DOC-5970"&gt;SQL Writeback from QlikView extension object.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 01:31:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/write-back-to-database-from-QlikView-application-via-Accesspoint/m-p/701252#M253135</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-09-16T01:31:07Z</dc:date>
    </item>
  </channel>
</rss>

