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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
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
rustyfishbones
Master II
Master II

Aji,

Add the Expression in the Script

2013-11-14_0834.png

And then clear the field Val in the button

Not applicable
Author

I made the expression simple to get the objective. The expression I am using uses many fields and variables. So I can't load this in the script. It uses mathematical functions Sin, cos atan, few fields, few variables. Based on the state of the variables / Functions/Fields I present a check box for user to choose. If they select the check box , all the fields are getting selected. When user changes one variable, it retains all selection and re-apply teh variable alone. So I I could clear the list box , it releases all the selection made by that check box,

So the objective is again to clear the list box 🙂

Thanks