Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Three actions in a single button don't work

Dear Community,

I try to add three actions in one button but it doesn't work.

I explain :

The actions are (to be actived in sequence) :

1st Button : select possible values : [Part Number]

2nd Button : selectM in field : [Comp Part Number] ='('&GetFieldSelections(Part Number,'|','max(count(GetFieldSelections(Part Number))')&')'

3rd Button : delete a field : [Part Number]

If I set the three actions in three different single buttons, it works very well :

If i add every action in a single button, i have wrong result.

I kindly ask you to suggest me a solution.

Thanks in advance.

Alessandro

1 Solution

Accepted Solutions
Andrea-Danielato
Employee
Employee

Hi Alessandro,

check if the attached solution works fro you.

Select some values in the Alpha field and then click on the button.

Andrea

View solution in original post

6 Replies
hic
Former Employee
Former Employee

QlikView has a multi-threaded, asynchronous execution model. This means that the user interface is ready for user actions before the back-end is ready with the calculation of the previous selection. For a user, this means that he can click in a list box and thereby make a selection that interrupts the previous calculation.

In your case, it however means that the second action will not wait for the first action to finish. Instead it will interrupt the selection made in the first step. Or to summarize: Multiple actions in one button works fine - but they will not wait for previous actions to finish before they start.

HIC

Not applicable
Author

Thank you for your response. how can I fix it?

hic
Former Employee
Former Employee

You can't.

Or rather - you can probably solve this requirement by making your data model in a different way. But you cannot solve it by having three actions in one button.

Further, I don't understand what your Button2 and Button3 do...

HIC

sudeepkm
Specialist III
Specialist III

You should not keep selection of a field value and clear of the same field values as actions in a single button.

If you do that then you can only see the last action being executed as the other actions will be running in the background.

if you have such requirement then you need to keep two buttons separate one button for selection and another button for clear of selections.

Andrea-Danielato
Employee
Employee

Hi Alessandro,

check if the attached solution works fro you.

Select some values in the Alpha field and then click on the button.

Andrea

Not applicable
Author

Hi Andrea,

The solution works very well!

Grazie!

A.