Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Can I also clear the selection from one object?

I like to do an action on a button or a trigger, that will clear the selection of 1 object (listbox).

I see "Clear All" and "Clear Other Fields", but not clear one specific field.

Thanks in advance.

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Try a select in field action with the field you want to clear and an empty search string.

View solution in original post

4 Replies
swuehl
MVP
MVP

Try a select in field action with the field you want to clear and an empty search string.

Not applicable
Author

Thanks a lot.

It works.

Anonymous
Not applicable
Author

Awakening nearly a year old topic...

I can get this working with an ordinary field.

But not with a field that I have in a list box where I have activated the "Always One Selected Value" option on "General tab" in the "List box proporties". I want to use this list box as a radio button function, but only on one sheet. Therefore I activated the trigged when deactivating the sheet that I wanted a field cleared.

Is it possible for a work-around on this?

Thanks for your replys.

Best,

Filip

swuehl
MVP
MVP

Filip,

"Always One Selected Value" option will prevent you from clearing the selection in that field.

You can probably disable / enable this option by Macro when leaving / entering the sheet (probably also restoring the selected value).

An easier approach is IMHO using a so called Alternate State for your sheet where you need the Always one selected Value option (this is a new feature in QV11, check the "What's new in QV11" app if needed).

I suggest that you open a new thread, so you will get more attention to your issue from the community.

Regards,

Stefan