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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Clearing a List box with click of a button

Experts,

I have been trying to achieve this for few months.

Here is the scenario

I have a button called "Reset" what it supposed to do is ,clear a list box with object id LB14.

Please note that the List box is based on a complex expression (NOT field based)

The challenge is to refer it by the object ID as there is no underlying field.

I tried action ClearField and give the object ID and doesn't work

Thanks in advance,

AP

11 Replies
Clever_Anjos
Employee
Employee

Which expression is this? Could you post it?

rustyfishbones
Master II
Master II

Why not add a clear button in the caption of the listbox

2013-11-13_2243.png

2013-11-13_2243_001.png

Clever_Anjos
Employee
Employee

Brilliant

Not applicable
Author

Thanks but that won't work for me. The button will be in a different sheet.

And eventually I need to create a trigger that will automatically clear that field based on some variable value change.

Not applicable
Author

Please see the attached QV. I made the expression very simple so that we could verify it.

Thanks for your help!

Clever_Anjos
Employee
Employee

Clear VAL field

Not applicable
Author

Thanks for your reply!

But as I mentioned earlier , the objective is to clear an expression based list box. The listbox expression utilizes many variables and fields. so what I really need is, if there any change in any of those values I need to cleat that list box.

Clever_Anjos
Employee
Employee

When you clear VAL field, your expression based textbox is clearing here

Not applicable
Author

Hi Aji,

    You can use Alternate state for clear listbox. It wont clear other listbox. I little bit update your file.

check this and let me know.

Regards,

Ashutosh