Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Problems with order to execute actions on a button :S

Hi everyone!


I'm quite new to the qlickview and I'm trying to program a button that sequentially executes a series of actions. The idea is to select a field, execute macro 1; select another field value, execute macro 2; and so on...


The problem is that the macros are all executed for the last selected field value and do not follow the order as I would expect. Thanks in advance. Greetings.


Ive tried several combinations, including actions like "delete all" beetween de Macros execution, but nothing works. Help Please!!!


Thanks in advance


Captura.JPG

2 Replies
olivierrobin
Specialist III
Specialist III

hello,

I think you are in this case

Re: Execution order of actions

Miguel_Angel_Baeyens

You have to add Sleep actions in your macros to make sure they work in the order you expect.

Or maybe create a variable which takes a different value triggered by the different actions on the fields.

Actions are asynchronous, there is no "wait" or "sleep" action which you can use to make sure that the order you use is respected. Even if you use macros for that, they will likely not work on the Ajax client.

If this is not your case and you are going to work with Plugin or Desktop only, you could create a macro with all the actions you want to perform instead of smaller macros. Then you can fully control what happens when.

Be aware that macros are not supported by Qlik.