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: 
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.

Labels (1)
1 Solution

Accepted Solutions
marcus_sommer
MVP
MVP

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
MVP
MVP

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
MVP
MVP

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