Qlik Community

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
QLIKWORLD LIVE! MAY 16 - 19TH, EARLY BIRD DISCOUNTS! REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
marcarreras
Specialist
Specialist

Clear up all variables

Hi,

I was wondering if there is any way to clear (let vSales = Null()) all variables in one shot or loop.

Any idea? thanks in advace.

Marc.

1 Solution

Accepted Solutions
marcarreras
Specialist
Specialist
Author

So, my conclusion is that there is no way to do it in script.

Marc.

I select correct just to close thread.

View solution in original post

6 Replies
yduval75
Partner
Partner

In the application directly.
Settings / Variable Overview. You select the first variable and press SHIFT to the last variable. Then select Remove

ali_hijazi
Partner
Partner

in the script if you put let vSales = null() before your first reload it won't appear in the variable overview window

but once it is there (maybe you reloaded the document before you put the setting of the variable to null)

you need to manually remove the variable from the variable overview

I can walk on water when it freezes
marcarreras
Specialist
Specialist
Author

Sorry Yoann, I meant in script. Just wondering if possible...

Marc.

marcarreras
Specialist
Specialist
Author

So, my conclusion is that there is no way to do it in script.

Marc.

I select correct just to close thread.

ValeriyaBartosh
Partner
Partner

Thank you!

cristiand
Contributor III
Contributor III

Hi,

Not possible from the script far as I know, but you can do it from the app with help of an external script.

"WithDave" has created a chrome bookmark (bookmarklet) that allow us to delete all the variables from QS apps.

I tried it with QS Nov-21 and it is working fine.
You just need to add the bookmarklet to your chrome bookmarks tab and when you are at the QS app, open the variables editor and hit the bookmark.

Explanation:
https://withdave.com/2019/11/remove-destroy-all-variables-in-a-qlik-sense-application/
Bookmark to add:
https://withdave.github.io/qsvd/

Best regards,

Cristian

Cristian Dorbesi