Skip to Content
author's profile photo Former Member
Former Member

Set Range on DateTimeInput

Hello Experts,

currently im trying to implement a SAPUI5 DateTimePicker (sap.m.DateTimeInput). But unfortunately im unable to set some Properties:

This is my current implementation in my XML View:

<DateTimeInput

id="Time_Break"

type="Time"

valueFormat="HH:mm:ss"

value="00:30:00"

class="TimeFormat"

width="225px"

change="onInputChange" />

Now my Problems where i stuck on implementing:

- I want to set the Range of the Minutes to 5. For Example: 00, 05, 10, 15 etc.

- I want to make the input via keyboard possible. So that a user can enter the Time via keyboard-numbers.

Is there any way to achieve this?

Thanks for your Help!

Sascha

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Mar 05, 2015 at 12:31 PM

    As the DateTimeInput control uses the 3rd party 'mobiscroll' control, you could try and set the steps like this: Mobiscroll 2.15.0 Documentation - Datetime Scroller

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 05, 2015 at 11:50 AM

    Sascha,

    I am not familiar with your DateTimeInput control, but since you are predefining the selections, whay not use a drop down control with your values?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.