Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
mschatt
Contributor
Contributor

Button for next value from the ListBox

Hello, Is it possible to make a "Next" button to time time field? In example: I have listbox and there is: 8:00 9:00 10:00 11:00 I have selected 8:00, and when I click "Next" button it will change to 9:00. Thanks for all hints.

1 Solution

Accepted Solutions
marcus_sommer

You could try it with a select-action and a search-value of:

time(maketime(getfieldselections(YourTimeField) + 1))

maybe with some addtional checks like if(getselectedcount(YourTimeField), ...) or if a day-switch could be possible or some adjustments to the format and should your YourTimeField not be a real time you need to add this within the script or do some more advanced converting within this expression.

- Marcus

View solution in original post

2 Replies
rubenmarin

Hi Michal, you can try with an action that selects the value:

=Time(HourField+(1/24))

1 Day = 1 --> 1 Hour = 1/24

marcus_sommer

You could try it with a select-action and a search-value of:

time(maketime(getfieldselections(YourTimeField) + 1))

maybe with some addtional checks like if(getselectedcount(YourTimeField), ...) or if a day-switch could be possible or some adjustments to the format and should your YourTimeField not be a real time you need to add this within the script or do some more advanced converting within this expression.

- Marcus