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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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);