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

macro for reset values

hello guys,

I have a quite simple question....

I want to build a macro that will reset the variables (which I created on the GUI) to zero.

How it can be done? I look at the API GUIDE but still didn't succeed.

Is it possiable to reset more then one variable in the same macro?

Is it possiable to determine the new value of the variable(s) via macro?

thanx guys. [:)]

1 Solution

Accepted Solutions
Not applicable
Author

Hi,

If i have understood question. following would be the answer.

set v = ActiveDocument.GetVariable("Variable1")
v.SetContent "123",true

this will help you to set the value of the variable.

- Sridhar

View solution in original post

2 Replies
Not applicable
Author

Hi,

If i have understood question. following would be the answer.

set v = ActiveDocument.GetVariable("Variable1")
v.SetContent "123",true

this will help you to set the value of the variable.

- Sridhar

Not applicable
Author

Yes, you understand it properly.

Great ,it works

THANX