cancel
Showing results for 
Search instead for 
Did you mean: 

TimePicker in sapui5

Former Member
0 Kudos

Hi All,

         

          In my application, i am developing a timepicker with date picker in sap.ui. But timepicker is not avaiable in sap.ui.

How to Achieve that? i tried to use jquery ui in sapui5. but i failed. Please help me to solve this. how to implement time picker in sapui5.

Regards,

     Mj.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Florian,

          Thanks for the confirmation. i have already tried exactly(with jQuery plugin) what you  were mentioned in your reply.
          Thanks both of you(Florian, Ashvin)for the clarification.

Regards,

     Mj.

pfefferf
Active Contributor
0 Kudos

Hi Muni,

the sap.m library offers a DateTimePicker Control (https://sapui5.hana.ondemand.com/sdk/#docs/api/symbols/sap.m.DateTimeInput.html). This control can be used as TimePicker by setting the "type" property to sap.m.DateTimeInputType.Time.

Regards,

Florian

Former Member
0 Kudos

Hi Florian,

          thanks for the reply. I have already used sap.m library. but am looking for sap.ui.commons library.

Regards

     Mj.

pfefferf
Active Contributor
0 Kudos

Hi,

sorry, didn't saw that you have used sap.m already. Unfortunately in the sap.ui library no TimePicker exists.

Either you write your own TimePicker (by extending the DatePicker Control or the base Control object) or intregate one of the existing jquery plugins.

One powerful is http://trentrichardson.com/examples/timepicker/.

With the examples it should be possible to integrate it, but of course the CSS settings have to be adjusted to match your desired theme.

Regards,

Florian

Former Member
0 Kudos

Hi Muni,

Time picker doesn't exist in  sap.ui.commons

Regards,

Ashvin