Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
pepe2209
Creator
Creator

Trigger second macro while first macro is running

Hello,

I have a print&mail macro which has a long runtime. I would like to be able to trigger a second macro (upon selection in a field) while the print&mail macro is running.

is this possible?

currently both macro's are running fine when you run them seperatly. But the second macro should be triggered when the print&mail macro is making selections in a field while buidling the report. This does not happen... the print&mail macro keeps running and the second macro does not seem to be activated.

also when i build the report by printing manually, then the trigger on selection in field does work.

Your help would be much appreciated.

regards,

Peter

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

I don't think so. Several macro's running at the same time are a nightmare with regards to making sure the application behaves predictable and that the macro's cannot interfere with each other. Object triggers have been removed from Qlikview for similar reasons.


talk is cheap, supply exceeds demand
marcus_sommer

I agree with Gysbert Wassenaar but couldn't you call your second macro within the first one? I work often with sub-routines and it worked well. If the runtime from macro (too) slow you should rather look to optimize the macro (removing from redundant actions and code) and/or optimize the qvw itself (datamodel, selections, calculations).

- Marcus