Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
udaya_kumar
Specialist
Specialist

can we have always some values selected in slider object?

Hi,

i have a scenario like,

i have listbox with month,quarter,half year, and a year in that as values.

slider will have 72months data. lilke jan 2006, feb 2006 ...... dec 2011

if i select month, then slider should point to some month by default.

if i select quarter, then slider should show 3months range by default and the range should be fixed, user should not be able to change the range to 4months or something like that.

if i select half year, then slider should show 6months range by default.

if i select year, then slider should show 1year range by default.

Is it possible to do this in slider?

2 Replies
Miguel_Angel_Baeyens

Hi,

Yes, I'd do that using actions in text objects or buttons and variables, so when you click on Month the current month is selected, or when you click on Week, the current week is selected. What is happening behind the curtain is that the button has an action that modifies a value in a variable that is in turn displayed in the slider, and plays with the min and max values in the slider.

You can have several slider objects and make them visible / hide, depending on the values selected by the user.

Miguel

udaya_kumar
Specialist
Specialist
Author

Hi Miguel,

thanks for the reply

so you mean to say that, give value to variable and specify those variables in the min and max in the slider.

but what values does those variables contain?

i have month's values like jan 2006, feb 2006, something like this.

so do i need to give for ex.

variable v1=jan 2006 and v2=mar 2006 for quarter.

do i need to give like this or how?