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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
NavinReddy
Creator II
Creator II

Button

Hi All,

Some one help me,

I have two buttons

if i click one button second should be hide

if i click second button first button should be hide

i tried show and hide

but not working for me

Thanks in Advance

Rohit

Labels (1)
9 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See attached example


talk is cheap, supply exceeds demand
Not applicable

set a variable v1 to 0 (Ctrl+Alt+V)

for the first button 1 ,

right click go to properties --> Actions tab -->add action Type --> External --> Set Variable --> Variable =v1 and Value =1.

Then go to Layout tab and add condition under show : v1<>2

similarly for button 2,

right click go to properties --> Actions tab -->add action Type --> External --> Set Variable --> Variable =v1 and Value =2.

Then go to Layout tab and add condition under show : v1<>1

also create a third button called ' show both buttons' and

right click go to properties --> Actions tab -->add action Type --> External --> Set Variable --> Variable =v1 and Value =0.

NavinReddy
Creator II
Creator II
Author

Hi Gysbert ,

Thanks for your reply,

sorry my explanation should be worng

i dont want three buttons

if i click one buttton second button should be appiear

if i click second button first button should be appiear

Thanks,

rohith

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

if i click one button second should be hide

if i click second button first button should be hide

if i click one buttton second button should be appiear

if i click second button first button should be appiear

Can you please make up your mind? It's simply not possible for a button the be hidden and visible at the same time.


talk is cheap, supply exceeds demand
NavinReddy
Creator II
Creator II
Author

Hi Gysbert,

This is my requirement ,

if i click one buttton second button should be appiear

if i click second button first button should be appiear

Thanks,

rohith

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See attached examples.


talk is cheap, supply exceeds demand
Not applicable

but dont you need a third button to get the second button back

NavinReddy
Creator II
Creator II
Author

no it should happen vice versa

ngulliver
Partner - Specialist III
Partner - Specialist III

Hi, Rohith.

If I understand you correctly, I think show/hide functionality would meet your requirements. If you follow the link below, Steve Dark has some useful code in a blog for developing buttons.

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

Cheers,

Neil