Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

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.

Tags (3)
2 Replies
MVP & Luminary
MVP & Luminary

Re: Run Macro From Script

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

Re: Run Macro From Script

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