Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Running macro when reload

HI All,

I have a macro in my application which should run when i triger the task which is created for that qvw document. I have given the macro in postreload trigger in document settings but the macro is not triggered when i run the task. can any one help?

1 Reply
Not applicable
Author

You can call a macro from reload script. Let's say you have this macro function:

function GetCustomValue(ValueToBeAdded)

   GetCustomValue = 1000000 + ValueToBeAdded

end function

and you call it from reload script:

LET _var1 = GetCustomValue(1);