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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
niceqlik
Partner - Contributor III
Partner - Contributor III

onclear event exist?

hi all,

i need to trigger a macro when i clear all selections. in document properties -> triggers - > document event triggers , there is no onClear trigger defined.

i know there is an option that i can create a button that function both for clearing the fields and running my macro respectively. but i do not want to use it this way. i have specifically a need for onclear event?

how can it be possible?

thanks.

qv developer version : 9.0

4 Replies
kji
Employee
Employee

Clear is counted as a selection, so the OnAnySelect will be triggered.

Not applicable

This doesn't work. Clear does not trigger the document OnAnySelect Trigger. Is there any other options?

Anonymous
Not applicable

It is possible by using a separate field (logical island) which is always selected except when you use Clear. The change in this field will be your "onclear event".

Not applicable

I tried that and here is what i found, There are issues using a % or "user defined system field" and there are issues using fields that have spaces. I renamed the field to daterangefix from %Date Range and I created an onchange trigger on a key that noone will select.