Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
marksmunich
Creator III
Creator III

prevent clear button in toolbar from clearing the selected field.

I was successful in implenting this using a button in interface. But when the clear on the top in toolbar is pressed, my selections are cleared. How can i prevent this from  happening.

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

For this case, you may get what you want by setting the "Always One Selected" property.

-Rob

View solution in original post

14 Replies
alexandros17
Partner - Champion III
Partner - Champion III

I think it is not possible ...

mdmukramali
Specialist III
Specialist III

Dear ,

means you don't want to remove the default selections ?

if it's then try to make the default selections and lock those fields.

are do you want to achieve something else?

Thanks,

Mukram.

marksmunich
Creator III
Creator III
Author

I guess its not possible too. Even if i lock a selection and then press the clear button in toolbar or in the accesspoint toolbar, all the fields are cleared. but was curious to know if there is a way to do it.

mdmukramali
Specialist III
Specialist III

Dear marks munich,

if you make any field lock then even if you clear from toolbar also the selection will be available.

Colin-Albert

A locked field should not be cleared by the Clear icon.

If you have a clear action on a button, have you selected the action as "Clear All" or "Unlock and Clear All"

There are many options for Selection Actions

select.JPG.jpg

PrashantSangle

Hi,

Yes it is not possible.

but can you tell us that you want to show only those field in object?

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
marksmunich
Creator III
Creator III
Author

For example i want to select the year field and then, it should not be cleared at anycase,might be with clear button on the toolbar or the clear button with actions in the user interface. but the same time I have implemented another button which unlocks all the field and clears all the fields in the interface.

Colin-Albert

The button/text object that sets the year field needs a second action to lock the year field. This will allow users to click clear without changing the year value.

You can add multiple actions to an object.

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

For this case, you may get what you want by setting the "Always One Selected" property.

-Rob