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

Button press triggers script to load first when macro is first action

Hi,

I currently have a button on one of my Qlikview that has 2 actions: 1) run macro (just a msgbox to say that the load takes 8 minutes) then 2) reload the data.

Each time I click the button the script loads before I can see msgbox, which only displays after the 8 minute load is complete. is there a way to prevent the load until after the msg box "OK" button has been clicked?

thank you

1 Solution

Accepted Solutions
settu_periasamy
Master III
Master III

try to add the sleep time in the macro. And instead of reload action (assume 2nd action), you can add the same into macro itself. If you click 'Ok' then reload, else exit.

View solution in original post

6 Replies
settu_periasamy
Master III
Master III

try to add the sleep time in the macro. And instead of reload action (assume 2nd action), you can add the same into macro itself. If you click 'Ok' then reload, else exit.

Not applicable
Author

I've tried sleep times in the past but couldnt get them to work. could you please provide the syntax. perhaps I was doing something wrong.

this is what I have:

sub  Wait

    ActiveDocument.getapplication.WaitForIdle

    ActiveDocument.getapplication.Sleep (1000)

End sub

settu_periasamy
Master III
Master III

Your code is seems to be fine. Have you tried reload into the macro instead of 2nd action?

settu_periasamy
Master III
Master III

Refer the below link for Message code.

Is there a way to may the Popup on a macro so that it is always on top?

if click ok, then write a code,

ActiveDocument.Reload

Not applicable
Author

this works. thank you. for partial reloads, is there a way to hide the loader screen when reloading?

settu_periasamy
Master III
Master III

Hi Erik,

May be check this link Hide Script Execution Progress Window

i didn't test. so i'm not sure about it.