Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All
I need to run a sub function at load script. i got to know that a sub function can't be called within the load script but a function.but i found following code from somewhere in a blog.
could some one please help me on how to call a sub function at load script.
if someone can send a qvw would be much help full.
Thanking in advance.
Madushan
FUNCTION MyFunction()
MySub
END FUNCTION
SUB MySub
Msgbox(“Hello world”)
END SUB
I suspect the first piece you may have been trying to find is here:
Here is an Article with some further reference points too:
https://support.qlik.com/articles/000003384
I believe there is a piece that needs to be changed in Distribution Service config to allow the function to be called as well, but I cannot find that at the moment, so if you need that, let me know, and I can try to track it down and respond with that info later, hopefully this may help get you on track.
Not sure what do you mean by a function but if what you are trying is create and execute a subroutine you can use the Call statement.
Take a look at: https://help.qlik.com/en-US/sense/February2019/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptCont...