Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

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

Activate/Disactivate Buttons...

Hi!

I’m working on this dashboard and I want these three buttons (Define Company Perimeter, Define Class Weight, Class Critical Value) are activated only if I enter information in the three filters (Insert your company sector, Insert the specification family of your interest, Insert your company dimension) , otherwise, for example, if i insert only two they remain locked. How can I obtain this result, and what kind of string should I use?

1.JPG.jpg

Tags (1)
8 Replies
Not applicable

Re: Activate/Disactivate Buttons...

you can create a conditional show / hide transparent text box on top of each button and also write a conditional color expression on the button to change it to gray

your condition would be like : getselectedcount(field1)=1 and getselectedcount(field2)=1 and getselectedcount(field3)=1

mov
Esteemed Contributor III

Re: Activate/Disactivate Buttons...

There is no need for text box and color - button object has "enable" condition

bruno_montenegr
Contributor III

Re: Activate/Disactivate Buttons...

Hello!

If you are using real buttons, not text objects, put the condition My QV said in the box "Enable Condition" in the General tab of the button properties.

Regards.

Not applicable

Re: Activate/Disactivate Buttons...

you are right ... i always use text obj to mimic buttons and imagined the same ..my bad. also that screenshot looks like text objects.

mov
Esteemed Contributor III

Re: Activate/Disactivate Buttons...

Same here, but sometimes the real buttons are better, as in this case.

Not applicable

Re: Activate/Disactivate Buttons...

i'm using real button and i found the enable condition box in the property!!... but now what kind of expression should i use??

pradeepreddy
Valued Contributor II

Re: Activate/Disactivate Buttons...

If you use the bellow expression for enable condion in

1) General Tab: The object appears always, and object enables only if the condition passes.

2) Layout Tab :  The Objects won't appear if the condion fails.

Expression:

GetSelectedCount(Field1)>0 and GetSelectedCount(Field2)>0 and  GetSelectedCount(Field3)>0


do the same for all 3 buttons.

Regards,

Pradeep

mov
Esteemed Contributor III

Re: Activate/Disactivate Buttons...

The same that My QV suggested, if you want to enable if exactly one value is selected in each filter.

Community Browser