<?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: Execution order of actions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/1570890#M442121</link>
    <description>&lt;P&gt;I don't believe there is any identified bug here. The effect of actions are intentionally isolated until the action block ends to avoid endless cascading.&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
    <pubDate>Thu, 18 Apr 2019 09:19:20 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2019-04-18T09:19:20Z</dc:date>
    <item>
      <title>Execution order of actions</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/247849#M94375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any way to control the order that actions are run or should I go back to macros?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2012 16:31:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/247849#M94375</guid>
      <dc:creator />
      <dc:date>2012-01-03T16:31:31Z</dc:date>
    </item>
    <item>
      <title>Execution order of actions</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/247850#M94376</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;Within the same object (say, a button), actions are run from top to down, the first in the list of actions will run first, and so on. If you have some OnOpen triggered actions, this will run prior to any other action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that what you were looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2012 16:38:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/247850#M94376</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-01-03T16:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Execution order of actions</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/247851#M94377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On this topic, I have a button that runs 3 actions:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Select in Field: Field=%PointInTime, Search string = (Daily*|MTD*|QTD|YTD)&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Run a macro (enables/disables chart expressions)&lt;/P&gt;&lt;P&gt;3.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set Variable:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Variable=vPiT_Choices_LastSet, Value = Concat(DISTINCT %PointInTime,',')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at this you would expect the variable in step 3 to set to the result of the Select in Field action (step 1) which is what I want. However, you have to click the button twice for this to work.&amp;nbsp; My tests are showing that the result of step 1 is ignored by step 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 11:00:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/247851#M94377</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-06-18T11:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Execution order of actions</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/247852#M94378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the same issue, I need to click my button twice for all 3 actions to execute. Were you able to resolve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 20:31:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/247852#M94378</guid>
      <dc:creator />
      <dc:date>2012-09-25T20:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Execution order of actions</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/247853#M94379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Afraid not.&amp;nbsp; It's a bug in QV where a string of actions doesn't respect its own field changes.&amp;nbsp; I had to split them into two places.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 11:52:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/247853#M94379</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-09-27T11:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Execution order of actions</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/247854#M94380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jason, by splitting it into 2 places, do you have 2 seperate buttons now or did you do something else. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 22:51:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/247854#M94380</guid>
      <dc:creator />
      <dc:date>2012-09-27T22:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Execution order of actions</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/247855#M94381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The doc does say that "The actions will be executed in the order in which they appear in the list.", but I've never had any luck getting them to execute serially. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 00:21:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/247855#M94381</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-09-28T00:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Execution order of actions</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/247856#M94382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think so. Something like a Save and an Update/Apply button.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 07:11:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/247856#M94382</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-09-28T07:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Execution order of actions</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/247857#M94383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There seems to be an undocumented rule like "Set before select" ... call it a bug or not ... If you have a block of actions within a button or textbox or trigger and intend to use a SET VARIABLE action &lt;SPAN style="text-decoration: underline;"&gt;after&lt;/SPAN&gt; a SELECT-action (like SELECT FIELD or CLEAR FIELD or others....) and you expect to get the result from that selection into the variable, you will NOT get it. The variable will be set before the selection change becomes effective, no matter in which sequence you put it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the status until today (QV 11.2 SR3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WORKAROUND - HELP WITH ANOTHER TRIGGER (Not for Ajax!)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If you like to get a field value into a variable&lt;SPAN style="text-decoration: underline;"&gt; after&lt;/SPAN&gt; you changed the selection&lt;SPAN style="text-decoration: underline;"&gt; in the same action&lt;/SPAN&gt;, you will need the following "ingredients":&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;a new field, not linked to any other data,&lt;/LI&gt;&lt;LI&gt;A on-select trigger on that new field&lt;/LI&gt;&lt;LI&gt;The action itself will first define, a) which variable to change and b) the expression to execute into two temp-variables and&lt;/LI&gt;&lt;LI&gt;then set the new field (the one with a trigger) to a dummy value.&lt;/LI&gt;&lt;LI&gt;The on-select field trigger, finally, sets the expression (as given in a temp variable) into the desired variable (whose name was also given in a temp variable).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The point of time, when the on-select field trigger is executed, is then indeed AFTER the selections made by the action button and will deliver the desired result. It is demonstrated on the below example, where the green action button&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;captures the current selection of FieldX into variable A&lt;/LI&gt;&lt;LI&gt;changes the FieldX selection&lt;/LI&gt;&lt;LI&gt;captions the new selection of FieldX into variable B&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See &lt;A href="https://dl.dropboxusercontent.com/u/92495732/Action%20Set%20Variable.qvw" title="https://dl.dropboxusercontent.com/u/92495732/Action%20Set%20Variable.qvw"&gt;https://dl.dropboxusercontent.com/u/92495732/Action%20Set%20Variable.qvw&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to admit, that the Ajax Client only executes one action block at a time. If one action sets a field, which has a trigger on it, Ajax client (or Web preview) does not execute the trigger. If you manually change the field (the one with the trigger) in Ajax, the trigger will be fired. So: My above example &lt;STRONG&gt;is not Ajax-ready!&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2013 08:45:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/247857#M94383</guid>
      <dc:creator>ChristofSchwarz</dc:creator>
      <dc:date>2013-09-13T08:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Execution order of actions</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/247858#M94384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same issue here.&lt;/P&gt;&lt;P&gt;Made 3 actions on a button to switch the contents of 2 variables A and B:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - set variable 'temp' to the value of 'A'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - set the variable 'A' to the value of variable 'B'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - set the variable 'B' to the value of variable 'temp'&lt;/P&gt;&lt;P&gt;But, this doesn't work.&lt;/P&gt;&lt;P&gt;I think it's a 'bug'.&lt;/P&gt;&lt;P&gt;Any other solution to switch variable value between 2 varaiables ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Nov 2013 17:34:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/247858#M94384</guid>
      <dc:creator>mark_casselman</dc:creator>
      <dc:date>2013-11-10T17:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Execution order of actions</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/247859#M94385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;No, it is not a bug. It works different. To switch variables A with B, simply assign&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Variable A = Variable B&lt;/LI&gt;&lt;LI&gt;Variable B = Variable A&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No 3rd Variable in the game. It has to do with the time when the new settings become effective. As long as the action block is being executed (has not reached the last action), none of the changes on fields and values become active. They are "prepared" in a separate state, which at the end gets applied. Therefore, the above actions will do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 13:37:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/247859#M94385</guid>
      <dc:creator>ChristofSchwarz</dc:creator>
      <dc:date>2013-11-11T13:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Execution order of actions</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/247860#M94386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Christof,&lt;/P&gt;&lt;P&gt;I tried your solution and it works ! Thanks for that.&lt;/P&gt;&lt;P&gt;I was too much confused with the promote and demote options. But now I understand that they do not apply on the execution order (it still is confusing in my humble opinion).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 22:39:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/247860#M94386</guid>
      <dc:creator>mark_casselman</dc:creator>
      <dc:date>2013-11-11T22:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Execution order of actions</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/247861#M94387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Should give him an a usefull or correct answer. And thanks Christof!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 23:20:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/247861#M94387</guid>
      <dc:creator />
      <dc:date>2013-11-11T23:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Execution order of actions</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/247862#M94388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has there been any updates (planned or otherwise) that would fix this issue?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2015 13:25:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/247862#M94388</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-02T13:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Execution order of actions</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/1570859#M442116</link>
      <description>&lt;P&gt;Is there any update related to this Bug in SR 12 - Nov 2017 release?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Suman&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 08:29:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/1570859#M442116</guid>
      <dc:creator>suman_731995</dc:creator>
      <dc:date>2019-04-18T08:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Execution order of actions</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/1570890#M442121</link>
      <description>&lt;P&gt;I don't believe there is any identified bug here. The effect of actions are intentionally isolated until the action block ends to avoid endless cascading.&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 09:19:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/1570890#M442121</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-04-18T09:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Execution order of actions</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/1794526#M1211027</link>
      <description>&lt;P&gt;Hi Rob and everyone!&lt;/P&gt;&lt;P&gt;Do you guys know if this behavior also applies to Qlik Sense?&lt;/P&gt;&lt;P&gt;I have set a few actions to be executed when clicking a button, and I'm getting unexpected results. I think it has to do with Qlik Sense not waiting until finishing an action to start the next one.&lt;/P&gt;&lt;P&gt;Is all this related to the &lt;EM&gt;multithreaded&lt;/EM&gt; nature of both QlikView and Qlik Sense?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 15:18:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-order-of-actions/m-p/1794526#M1211027</guid>
      <dc:creator>ramonarcusa36</dc:creator>
      <dc:date>2021-03-25T15:18:50Z</dc:date>
    </item>
  </channel>
</rss>

