<?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 writeback user changes/field-modifications from qlikview back to QVD and SQL database in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/writeback-user-changes-field-modifications-from-qlikview-back-to/m-p/167524#M39055</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found a few aticles. thank you. If anyone else has any experience with write-backs, please let me know. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Nov 2010 01:02:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-11-02T01:02:04Z</dc:date>
    <item>
      <title>writeback user changes/field-modifications from qlikview back to QVD and SQL database</title>
      <link>https://community.qlik.com/t5/QlikView/writeback-user-changes-field-modifications-from-qlikview-back-to/m-p/167522#M39053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone had any experience using Qlikview as a tool that will allow users to modify a limited number of displayed fields (from a pick list) such as changing a vendor status from Active to Inactive or vendor classification (Meat to Starch) and having that change write back to the qvd and the source SQL table? Any suggestion or blogs would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Nov 2010 21:10:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/writeback-user-changes-field-modifications-from-qlikview-back-to/m-p/167522#M39053</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-01T21:10:35Z</dc:date>
    </item>
    <item>
      <title>writeback user changes/field-modifications from qlikview back to QVD and SQL database</title>
      <link>https://community.qlik.com/t5/QlikView/writeback-user-changes-field-modifications-from-qlikview-back-to/m-p/167523#M39054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe I've seen examples on the forum doing this with macros, but I haven't ever done it myself. So it's possible, but I'm not much help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Nov 2010 21:32:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/writeback-user-changes-field-modifications-from-qlikview-back-to/m-p/167523#M39054</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-11-01T21:32:54Z</dc:date>
    </item>
    <item>
      <title>writeback user changes/field-modifications from qlikview back to QVD and SQL database</title>
      <link>https://community.qlik.com/t5/QlikView/writeback-user-changes-field-modifications-from-qlikview-back-to/m-p/167524#M39055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found a few aticles. thank you. If anyone else has any experience with write-backs, please let me know. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Nov 2010 01:02:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/writeback-user-changes-field-modifications-from-qlikview-back-to/m-p/167524#M39055</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-02T01:02:04Z</dc:date>
    </item>
    <item>
      <title>writeback user changes/field-modifications from qlikview back to QVD and SQL database</title>
      <link>https://community.qlik.com/t5/QlikView/writeback-user-changes-field-modifications-from-qlikview-back-to/m-p/167525#M39056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, dcaldwell&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/dcaldwell" id="jive-395452335186563965255" style="font-size: 12px; color: #007fc0; font-weight: bold;"&gt;dcaldwell&lt;/A&gt;Could you please&amp;nbsp; highlight this topic by using some example or turorial/example. I will appreciate it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2011 23:23:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/writeback-user-changes-field-modifications-from-qlikview-back-to/m-p/167525#M39056</guid>
      <dc:creator />
      <dc:date>2011-06-01T23:23:27Z</dc:date>
    </item>
    <item>
      <title>writeback user changes/field-modifications from qlikview back to QVD and SQL database</title>
      <link>https://community.qlik.com/t5/QlikView/writeback-user-changes-field-modifications-from-qlikview-back-to/m-p/167526#M39057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't have know how to exacly what you want but I've done something similar (but certainly not as good as what you want).&amp;nbsp; Maybe you can take what I've done and improve it to fit your needs.&amp;nbsp; I took most of this from an example in the share qlikviews section about dice and edited some of it to make it fit my needs so I don't want to take all the credit (not that I've really done anything amazing or anything).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I've got a .qvw that loads from a single .qvd.&amp;nbsp; I want to add a field called "Checked_Flag" which you can change with the value of a variable (vFlag) using DynamicUpdateCommand in a macro.&amp;nbsp; The problem is that when you update a field the actual qvd isn't actually changed (regardless of whether or not that field exists in the qvd).&amp;nbsp; It's important to note that Checked_Flag isn't a field in the actual qvd, it is one that I want to add in there.&amp;nbsp; I would bet you could do this same type of thing for fields already in the qvd but off the top of my head I'm not sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say I want to insert a value of 1 into the Checked_Flag field.&amp;nbsp; First I select the Account Number (or multiple account numbers) that I want to change the value for, type 1 into the vFlag input box, and I click a button that runs the sub Insert macro (shown below).&amp;nbsp; Now i must hit a second button that saves the table into a text file (sub exportTable, which I guess I could add to the same button I hit earlier if I wanted) to save the changes.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, all that does is save the updated table into a text file and I'm loading the actual data from a qvd (which is still unchanged).&amp;nbsp; At the end of my script I added....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN LOAD DISTINCT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Account_Number_esiid_Key, //this is just the ID for each customer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Checked_Flag&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end of the script I could save the .qvd but I didn't actually do that so my original data source remains unchanged throughout.&amp;nbsp; This certainly doesn't solve your problem but I think it's a little similar so hopefully it gives you some direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub Insert&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vKey = ActiveDocument.GetVariable("vKey").GetContent.String&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vFlag = ActiveDocument.GetVariable("vFlag").GetContent.String&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; v = saveData(vKey,vFlag)&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function saveData(vKey,vFlag)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set vKey = ActiveDocument.Fields("Account_Number_esiid_Key").GetPossibleValues 'Account_Number_esiid_Key is just the unique ID for each customer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for i = 0 to vKey.Count - 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sql = "UPDATE NinetyPlus SET Checked_Flag = " &amp;amp; "'" &amp;amp; vFlag &amp;amp; "'" &amp;amp; " WHERE Account_Number_esiid_Key = " &amp;amp; "'" &amp;amp; vKey.Item(i).text &amp;amp; "'"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.DynamicUpdateCommand(sql)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.Clear&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.Variables("vSaveFlag").SetContent "1",true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub exportTable&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.Clear&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set tb = ActiveDocument.GetSheetObject("TB01") 'TB01 is identical to the entire qvd&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tb.Export "C:\Documents and Settings\QV\exportTable.txt",","&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.Variables("vSaveFlag").SetContent "0",true&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2011 15:39:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/writeback-user-changes-field-modifications-from-qlikview-back-to/m-p/167526#M39057</guid>
      <dc:creator />
      <dc:date>2011-06-02T15:39:45Z</dc:date>
    </item>
  </channel>
</rss>

