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: 
didierodayo
Partner - Creator III
Partner - Creator III

Do not show default selection in current selection Box

Hello,

I have a select in field action trigger applied to a Qlikview document. It is working fine when the document is opened.

question: is it possible not to show that selection in the CUrrent Selection Box? how can I achieve this?

thanks

Didier

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

You can suppress a field from appearing in the Current Selections box by marking it as a hidden field in the script. You can do this one of two ways:

SET HidePrefix='_';

That will hide any fieldname that begins with _ ("eg _Currency")

or

TAG FIELD myField with '$hidden';

That will make "myField" a hidden field.

-Rob

http://masterssummit.com

http://qlikviewcookbook.com

View solution in original post

4 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

You can suppress a field from appearing in the Current Selections box by marking it as a hidden field in the script. You can do this one of two ways:

SET HidePrefix='_';

That will hide any fieldname that begins with _ ("eg _Currency")

or

TAG FIELD myField with '$hidden';

That will make "myField" a hidden field.

-Rob

http://masterssummit.com

http://qlikviewcookbook.com

didierodayo
Partner - Creator III
Partner - Creator III
Author

HI Rob,

the challenge with this is that I have the field as a list box which is available to users. when they select from the filter (list box) I want it to show in the current selection box BUT when the document first loads my default selection is not show (of course it will be highlighted in the list box).

it that possible or would I load the field twice 1 hidden and 1 available?

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

I was afraid that's what you were going to come back with

I think your idea of loading the field twice and selecting the hidden field in your trigger would be a good solution. Unfortunately, the non-hidden field will not show as green in the listbox. But it will show as white, and the other values gray. Hope that's acceptable.

-Rob

http://masterssummit.com

http://qlikviewcookbook.com

didierodayo
Partner - Creator III
Partner - Creator III
Author

Thanks Rob