<?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 Update column with Dynamic Update? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Update-column-with-Dynamic-Update/m-p/164325#M37063</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;Thank your for your answer.&lt;/P&gt;&lt;P&gt;You are true, It may be a problem of QlikView.&lt;/P&gt;&lt;P&gt;In my case, I must use '&amp;gt;' so i tried by another way. I used if(condittion, value1, value2) as it was presented on page 24 of QlikView Automation Reference&lt;/P&gt;&lt;P&gt;But it still not work&lt;/P&gt;&lt;P&gt;Oh, my God!&lt;/P&gt;&lt;P&gt;The problem seems commonly but why It didn't work???&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Aug 2009 22:16:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-08-24T22:16:37Z</dc:date>
    <item>
      <title>How to Update column with Dynamic Update?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Update-column-with-Dynamic-Update/m-p/164323#M37061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I have a problem when i try update a column with dynamic update as following:&lt;/P&gt;&lt;P&gt;I load table FunctionType:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;FunctionType:&lt;BR /&gt;Load * inline&lt;BR /&gt;[FunctionKey, A, B&lt;BR /&gt;1, 3, 3&lt;BR /&gt;2, 3, 1&lt;BR /&gt;3, 2, 1&lt;BR /&gt;4, 4, 2];&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I want to update column B with rule:&lt;/P&gt;&lt;P&gt;if A&amp;gt;vLowSkill then B=vLowSkill&lt;/P&gt;&lt;P&gt;So I wrote a VBScript:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;sub vbLowSkillUpdate&lt;BR /&gt;&lt;BR /&gt; ' Get new value&lt;BR /&gt; SET objSource = ActiveDocument.Variables("vLowSkill")&lt;BR /&gt; strValue = objSource.GetContent.String&lt;BR /&gt;&lt;BR /&gt; set docprop = ActiveDocument.GetProperties&lt;BR /&gt; docprop.EnableDynamicDataUpdate=true&lt;BR /&gt; ActiveDocument.SetProperties docprop&lt;BR /&gt;&lt;BR /&gt; ' Update&lt;BR /&gt; query="UPDATE FunctionType SET B="&amp;amp; strValue &amp;amp; " WHERE A&amp;gt;"&amp;amp;strValue&amp;amp;" "&lt;BR /&gt; set sqlerror=ActiveDocument.DynamicUpdateCommand(query)&lt;BR /&gt;&lt;BR /&gt; if (sqlerror = false) then&lt;BR /&gt; 'MsgBox sqlerror.errormessage&lt;BR /&gt; msgbox(query&amp;amp;chr(10)&amp;amp;"Update has error!")&lt;BR /&gt; exit sub&lt;BR /&gt; end if&lt;BR /&gt;&lt;BR /&gt;end sub&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;But it didn't update anything when I input new value for vLowSkill.&lt;/P&gt;&lt;P&gt;I don't know how to correct it.&lt;/P&gt;&lt;P&gt;Please help me to solve this problem!&lt;/P&gt;&lt;P&gt;Tmthai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2009 06:21:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Update-column-with-Dynamic-Update/m-p/164323#M37061</guid>
      <dc:creator />
      <dc:date>2009-08-24T06:21:44Z</dc:date>
    </item>
    <item>
      <title>How to Update column with Dynamic Update?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Update-column-with-Dynamic-Update/m-p/164324#M37062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tmthai,&lt;/P&gt;&lt;P&gt;The problem is with "&amp;gt;" in where clause, it seems that only "=" works with where clause in case of dynamic data updates. I am not sure why "&amp;gt;" is not allowed, maybe its not supported as of now. See if you can work out with "=" instead of "&amp;gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2009 14:11:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Update-column-with-Dynamic-Update/m-p/164324#M37062</guid>
      <dc:creator />
      <dc:date>2009-08-24T14:11:36Z</dc:date>
    </item>
    <item>
      <title>How to Update column with Dynamic Update?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Update-column-with-Dynamic-Update/m-p/164325#M37063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;Thank your for your answer.&lt;/P&gt;&lt;P&gt;You are true, It may be a problem of QlikView.&lt;/P&gt;&lt;P&gt;In my case, I must use '&amp;gt;' so i tried by another way. I used if(condittion, value1, value2) as it was presented on page 24 of QlikView Automation Reference&lt;/P&gt;&lt;P&gt;But it still not work&lt;/P&gt;&lt;P&gt;Oh, my God!&lt;/P&gt;&lt;P&gt;The problem seems commonly but why It didn't work???&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2009 22:16:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Update-column-with-Dynamic-Update/m-p/164325#M37063</guid>
      <dc:creator />
      <dc:date>2009-08-24T22:16:37Z</dc:date>
    </item>
    <item>
      <title>AW:Re: How to Update column with Dynamic Update?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Update-column-with-Dynamic-Update/m-p/164326#M37064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;in fact I have no solution for this one, but just to inform you that I opened a support case regarding this (and also other) issues on dynamic data update. The feature doesn't seem to be stable or ripe yet. Be sure I will report as soon as I get an answer from the QlikView-Support team.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Joachim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 01:00:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Update-column-with-Dynamic-Update/m-p/164326#M37064</guid>
      <dc:creator>biester</dc:creator>
      <dc:date>2009-08-25T01:00:44Z</dc:date>
    </item>
  </channel>
</rss>

