<?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 Using EDX with variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-EDX-with-variables/m-p/260335#M496320</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 a solution where we use EDX for manually update. &lt;/P&gt;&lt;P&gt;This works allmost as planned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that I have 3 varaiables that needs to be updated on each load.&lt;/P&gt;&lt;P&gt;vBatchStartTime, vBatchStopTime, vTag&lt;/P&gt;&lt;P&gt;Examle:&lt;/P&gt;&lt;P&gt;'11-11-2011 10:00:00', &lt;/P&gt;&lt;P&gt;''11-11-2011 11:00:00', &lt;/P&gt;&lt;P&gt;'3201L50H007.PV','3201L50H008.PV'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is then put into yet another variable:&lt;/P&gt;&lt;P&gt;LET vSQL = 'EXEC master.dbo.xp_AnalogWideHistory ' &amp;amp; vBatchStartTime &amp;amp; ', ' &amp;amp; vBatchStopTime &amp;amp; ', ' &amp;amp; 100000 &amp;amp; ', ' &amp;amp; vTag;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL $(vSQL);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I hit the button I can see, in some textboxes, that the different variables changes.&lt;/P&gt;&lt;P&gt;The result is shown in a trend line. &lt;/P&gt;&lt;P&gt;The problem is that this does not happend att all.&lt;/P&gt;&lt;P&gt;If I add the code below it works.(I can also remove the edx totaly, but then the button will not work from client)&lt;/P&gt;&lt;P&gt;ActiveDocument.Reload&lt;/P&gt;&lt;P&gt;ActiveDocument.Reload (Not sure why I need it twice, but I do)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get EDX to parse variables as well.&lt;/P&gt;&lt;P&gt;I found one example, but it seems to only handle one variable, and a predefined variable&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://community.qlik.com/message/160822#160822"&gt;http://community.qlik.com/message/160822#160822&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody got any comments or ideas on how to solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Nov 2011 14:14:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-11-28T14:14:37Z</dc:date>
    <item>
      <title>Using EDX with variables</title>
      <link>https://community.qlik.com/t5/QlikView/Using-EDX-with-variables/m-p/260335#M496320</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 a solution where we use EDX for manually update. &lt;/P&gt;&lt;P&gt;This works allmost as planned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that I have 3 varaiables that needs to be updated on each load.&lt;/P&gt;&lt;P&gt;vBatchStartTime, vBatchStopTime, vTag&lt;/P&gt;&lt;P&gt;Examle:&lt;/P&gt;&lt;P&gt;'11-11-2011 10:00:00', &lt;/P&gt;&lt;P&gt;''11-11-2011 11:00:00', &lt;/P&gt;&lt;P&gt;'3201L50H007.PV','3201L50H008.PV'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is then put into yet another variable:&lt;/P&gt;&lt;P&gt;LET vSQL = 'EXEC master.dbo.xp_AnalogWideHistory ' &amp;amp; vBatchStartTime &amp;amp; ', ' &amp;amp; vBatchStopTime &amp;amp; ', ' &amp;amp; 100000 &amp;amp; ', ' &amp;amp; vTag;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL $(vSQL);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I hit the button I can see, in some textboxes, that the different variables changes.&lt;/P&gt;&lt;P&gt;The result is shown in a trend line. &lt;/P&gt;&lt;P&gt;The problem is that this does not happend att all.&lt;/P&gt;&lt;P&gt;If I add the code below it works.(I can also remove the edx totaly, but then the button will not work from client)&lt;/P&gt;&lt;P&gt;ActiveDocument.Reload&lt;/P&gt;&lt;P&gt;ActiveDocument.Reload (Not sure why I need it twice, but I do)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get EDX to parse variables as well.&lt;/P&gt;&lt;P&gt;I found one example, but it seems to only handle one variable, and a predefined variable&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://community.qlik.com/message/160822#160822"&gt;http://community.qlik.com/message/160822#160822&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody got any comments or ideas on how to solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 14:14:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-EDX-with-variables/m-p/260335#M496320</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-28T14:14:37Z</dc:date>
    </item>
  </channel>
</rss>

