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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
reporting_neu
Creator III
Creator III

Conditions - Selection field

Hello everyone, I have a button with a variable (vButton). When the button is pressed, the variable receives the value 2. The value 1 is preset.

Now I have a selection field next to it. The content (S_Custom.Custom) may only be displayed if the button has been pressed beforehand (vButton=2). So I wrote:

 

if(vButton=2, S_Custom.Custom, null())

 

 However, the selection field is always displayed without values. Regardless of whether the button was pressed or not. To check, I let the variable be displayed in a table. If I click the button, the value is changed from 1 to 2 and the condition should be met.

Unfortunately that doesn't work.

Have you had similar experiences? Have you possibly found another solution for this?

1 Solution

Accepted Solutions
Lauri
Specialist
Specialist

Enclose your variable in dollar-sign expansion:

if($(vButton)=2, S_Custom.Custom, null())

View solution in original post

2 Replies
Lauri
Specialist
Specialist

Enclose your variable in dollar-sign expansion:

if($(vButton)=2, S_Custom.Custom, null())
reporting_neu
Creator III
Creator III
Author

Many Thanks. I didn't even think about that anymore. The solution is that simple.