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

Restoring Values of Inputfields

Hi,

I have a table I created with an input field column. I want to be able to restore all the input field values to their default value by pressing a button, but I can't find the correct macro code to use. I can manually do this by right clicking on one of the input field cells and then selecting Restore Values-->Restore All Values. FYI, the default numbers are based on values in another table, so I don't want to just set them all to 0....

Thanks,

Sarah

4 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See this discussion: how to reset input field values using macro


talk is cheap, supply exceeds demand
Not applicable
Author

Thanks! This did exactly what I wanted

Not applicable
Author

Thanks! This did exactly what I wanted

Not applicable
Author

So this worked, but can you explain what the below part of the answer does?

     dim x(1)

     x(0) = 0 ' element to reset