Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Highlighted
mschatt
New 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
MVP & Luminary
MVP & Luminary

Re: Button for next value from the ListBox

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

Re: Button for next value from the ListBox

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

=Time(HourField+(1/24))

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

MVP & Luminary
MVP & Luminary

Re: Button for next value from the ListBox

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