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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
rathnam_qv
Creator
Creator

Sheets

Hi all,

i have two buttons in my Sheet, if click on one button second button should activte, the first button should disabled

can any one help me...

Thanks in advance!!!!

Smiley

9 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     There is no way a button can be made disabled, but you can try hide and show of the button.

     Meaning on click of the button other button will be visible and vice versa.

     For this you must add the expression under Layout Tab -> Conditional Show.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
rathnam_qv
Creator
Creator
Author

Hi Kaushik,

thanks for Replay

i have two buttons one belons to one chart and another one belongs to 2nd chart,

if i clik on 1st button it should display first chart, the second button should not visible

if i select 2nd botton the related chart should display 1st button should not visible

nizamsha
Specialist II
Specialist II

i dnt knw adt the button but i tried in the text object if i click one text object mean it will disply the related chart wht i linked.. other text object and chat wll disabled

first create the variable like vshow and expression as 1

then in ur textobject go to action------>setvariable------------------>variablename---->vshow -->in value give -->-1--->

then go the chart in layout tab----->check the condition and write vshow =1

for another text object follow the same thng but instead of giving value--->1 give value--->2

same as chart

nagaiank
Specialist III
Specialist III

Did you try using the two objects in a container?

rustyfishbones
Master II
Master II

Kushal_Chawda

Hi,

Please find the attached application. may be help you.

Anonymous
Not applicable

Create a variable, let's name it vButton.
For the first button, add action vButton=0, and for the 2nd button, add action vButton=1.
To enable/disable - see "Enable condition" in the button properties. For the 1st button, set enable condition vButton=1, and for the 2nd button, set enable condition vButton=0.
Now, if the vButton is 1, the 1st button is enabled and the 2nd is disabled.  Wehn you click it, vButton is set to 0, and the button gets disabled - but the 2nd button is enabled.


Certainly you can use the same variable to show charts or add any other actions to your buttons.

Regards,
Michael

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Dear what are you saying.

     "if i clik on 1st button it should display first chart, the second button should not visible

if i select 2nd botton the related chart should display 1st button should not visible"

     If your second button is not visible how will you click it.

     Some how you have to make it visible to click right.

     Think about it once.

     Many people have given a good example, understand and  utilize them.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
ngulliver
Partner - Specialist III
Partner - Specialist III

Hi, Smiley.

Steve Dark has written a blog on the different uses of buttons with some example code you can use.

Follow the link below:

http://www.quickintelligence.co.uk/qlikview-buttons/

Cheers,

Neil