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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Disable Selection feature on fileds

Hello,

I have an InputField where users can enter values. The table containing this Field is an Inline table having 10 rows and empty values for the InputField.

The InputField is presented in a Table object.

My problem is that when i click on a value of the InputField, Qlikview filters the field and display only one line. So I want QV to prevent users from making selections in this field and only be able to input values. I have been able to do it using macros on the Select Event (clear selection when user make a selection) but I don't like it because it disrupts the use of Back and Forward buttons.

Thank You for your help....

5 Replies
Not applicable
Author

did you find a way how to disable the user selection on fields?

I find one way to disable userselction for a particular field is to use set anaylsis e.g.

disable user selection for Actual Month

=only({1}[Actual Mth])

Im interested on how you approached this using a macro to prevent user selection. Can you send me more details how i can add this or an example would be great.

Many thanks

Not applicable
Author

maybe =only({1<Company=>}[Actual Mth]) is better

Not applicable
Author

=only({$<Company=>}[Actual Mth])

Not applicable
Author

I finally ended using this piece of code to do it. It's not the most safe way to do it, but i expect people using the "Clear" option of the select lists instead of messing with the Active Selection and start to Unlock fields manually.

ActiveDocument.Fields("G1").Unlock
ActiveDocument.Fields("G1").SelectAll
ActiveDocument.Fields("G1").Lock

(G1 is the Inputfield)

The macro is currently started when opening the document, Maybe i will move it to the activation of the sheet presenting inputfields.

Thanks.



Not applicable
Author

Hi do you know if i can use this method to disregard user selection in my pivot table (see screenshot below).

Basically the only selection i want the user to use is the Month/Year list box. At the moment when a user clicks any particular field in the pivot it performs filtering (WHICH I DONT WANT).

I want the pivot to stay the same all the time but just use the Month/Year user list filter.

Any ideas?