Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
Not applicable

I would like a button to set a variable

I would like a button to set a variable.

See attached example that I can not get to work.

Please help.

1 Solution

Accepted Solutions
MVP
MVP

Re: I would like a button to set a variable

Try using this as expression to set the value:

=if(Variable1=1,2,1)

and this as Text for your button in general tab:

=if(Variable1=1,'Off','On')

5 Replies

Re: I would like a button to set a variable

See attached.

MVP
MVP

Re: I would like a button to set a variable

Seems all ok to me, you just need to define the value you want to assign in the action property dialog.

Not applicable

Re: I would like a button to set a variable

When I switch the button on, I would like it to display 1 in the text box and when I switch it off to display 2

Thanks

MVP
MVP

Re: I would like a button to set a variable

Try using this as expression to set the value:

=if(Variable1=1,2,1)

and this as Text for your button in general tab:

=if(Variable1=1,'Off','On')

Employee
Employee

Re: I would like a button to set a variable

Hi,

have a look at:

http://www.qlikblog.at/1851/onoffswitch-qlikview-extension/

Maybe this helps!

Regards

Stefan

Community Browser