Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to hide and show the tables based on two buttons.

Hi All,

Could you anyone tell me the way to hide the charts based on two buttons...

Thanks in advance...

1 Solution

Accepted Solutions
Not applicable
Author

In this case you have to write Macro (Ctrl + M)

Something like this:

Sub ToggleVariable

  Set var_vVisibility= ActiveDocument.Variables("vVisibility")
  If var_vVisibility.GetContent.String = "1" Then
    ActiveDocument.Variables("vVisibility").SetContent "0", false
  Else
    ActiveDocument.Variables("vVisibility").SetContent "1", false
  End If
End Sub

Then your chart should be shown... Let us know if it doesn't work.

Regards,Miha

View solution in original post

5 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

   Create a variable called  vVisibility.

   Assign value 1.   (Say 1 for show and 0 for hide)

   Go to properties of the chart. -> Caption -> Click on conditional

   Type

   vVisibility = 1

   Create a Button.

   Add action as External -> Set variable -> type Variable name i.e vVisibility

   in value tyep

   if(vVisibility =1,0,1)

   click ok.

Regards,

Kaushik Solanki

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

Sorry I use QV 8.5 version so i dnt have this

  Add action as External -> Set variable -> type Variable name i.e vVisibility.

What can  be done for this......

Not applicable
Author

Can any one help me on this issues...

Not applicable
Author

Can any one help me on this issues...

Not applicable
Author

In this case you have to write Macro (Ctrl + M)

Something like this:

Sub ToggleVariable

  Set var_vVisibility= ActiveDocument.Variables("vVisibility")
  If var_vVisibility.GetContent.String = "1" Then
    ActiveDocument.Variables("vVisibility").SetContent "0", false
  Else
    ActiveDocument.Variables("vVisibility").SetContent "1", false
  End If
End Sub

Then your chart should be shown... Let us know if it doesn't work.

Regards,Miha