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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

button action

Hi,

I'ld like to update slider selection in button action. Please let me know how i can do it?

Thanks

7 Replies
matt_crowther
Specialist
Specialist

Assuming the Slider is linked to a variable you can add a button with an Action to change the variable (Actions>External>Set Variable).

Hope that helps,

Matt - Visual Analytics Ltd

Not applicable
Author

I need to change multiple values for slider i.e range ex: jan - may

matt_crowther
Specialist
Specialist

Could you post an example file?

It should be possible.

All the best,

Matt - Visual Analytics Ltd

Not applicable
Author

In below image, slider selection has to be changed according to the buttons clicks...

matt_crowther
Specialist
Specialist

This may need a little further adjustment but I can get the principal working:

Associate your Month dimension with it's numeric - ie Jan = 1, Feb = 2 etc (I've caleld it 'ID'). Set your button to launch the following macro (in the case of Jun-Sep):

Sub JunSep
ActiveDocument.Fields("ID").Select ">=6<=9"
End Sub

That will make the appropriate selections for you - the challenge would be to get that to display in the Slider object - but I guess that's an aesthetic issue rather that a practical one.

Hope that helps,

Matt - Visual Analytics Ltd



Miguel_Angel_Baeyens

Hi,

Check the attached example. Both variables and fields will work with button actions without need of macro.

Hope that helps.

matt_crowther
Specialist
Specialist

Alternate soultion to the above that allows for multiple selections in the Month field based on a macro so whilst it's a Macro it should afford you more flexibility than '<' or '>'.

Either of the methods should work so I guess its which suits your needs the most.

All the best,

Matt - Visual Analytics Ltd