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: 
mato32188
Specialist
Specialist

Reset inputfield macro issue

Hello Qlik'ans,

I am facing some macro issue. What I need to do is to reset inputfield values after Run Macro action using button object.

Inputfield [field] is set in script before field is loaded.

Inputsum([field]) as expression is set in chart object.

Macro is created:

SUB ResetInput

       set x = ActiveDocument.Fields("field")

       x.ResetInputFieldValues 0

END SUB

I use QV desktop version.

Problem is, if I set this macro as External action in button and click on it, nothing happens.

If I go to Module console and manually run this macro (test), everything is ok and result is as expected = input values are reset.

What should I do to make it possible also on button action?

Best regards,

Martin

ECG line chart is the most important visualization in your life.
1 Solution

Accepted Solutions
mato32188
Specialist
Specialist
Author

Good point Tamil, thank you for advise!

ECG line chart is the most important visualization in your life.

View solution in original post

3 Replies
Chanty4u
MVP
MVP

tamilarasu
Champion
Champion

Hi Martin,

Instead of macros, you can try bookmark option. Check the below link.

Reset Inputfield values

mato32188
Specialist
Specialist
Author

Good point Tamil, thank you for advise!

ECG line chart is the most important visualization in your life.