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

Run Macro From Script

Hi,

Is it possible to run a function or sub from the script when the document reloads?

We are trying to automatically load data from a web service through Publisher. The function or sub (it doesn't seem to matter which) runs without a problem in the Edit Module and creates an xml file. However, we need to trigger it from the script so that it will run overnight. Unfortunatley as its Publisher an OnPostReload trigger is not an option.

Many thanks for any help.

2 Replies
Gysbert_Wassenaar

You can call vbscript (or javascript) functions from the load script, but not subs. Here's a very simple example.


talk is cheap, supply exceeds demand
Not applicable
Author

Thanks Gysbert, thats useful to know. How can I trigger the function from the reload script? I've tried the below, as suggested elsewhere, but with no luck.

let LoadData = MyFunction();

Thanks