201
Views
3
Comments
Solved
Display #00:00:00# as 12:00 AM in Input type of Time
Application Type
Mobile

Hi,

I have Input widget of type time. And would like to display time #00:00:00# which we retrieve from Database as 12:00 AM

Is it possible? Without changing the the Input Widget to type of text. 

Currently, it will be displayed as Blank instead of 12:00 AM

2022-01-05 09-37-24
Faiz Khan
Solution

Hi @Yudi Gemi Sutanto Tjong,

Give Your input widget this attribute property.

show-default-value = True

And on after fetch Assign your value to input Widget.

Best regards,

Faiz Khan

Attributes.png
UserImage.jpg
Yudi Gemi Sutanto Tjong

Hi Faiz,


Thank you for the reply. It works as expected.

2020-06-23 15-22-16
Miguel Sousa

Hi @Yudi Gemi Sutanto Tjong!

In Reactive and Mobile Applications, when you are working on the Client-Side, it assumes the time format of the client (and not of the Server). In this case, it is directly related to your browser.

If you have a time saved in the DB and want to display it in an expression you can use the FormatDateTime:

FormatDateTime(DateTime,"hh:mm tt")

Hope this helps!

Best regards,

Miguel Sousa

2022-01-05 09-37-24
Faiz Khan
Solution

Hi @Yudi Gemi Sutanto Tjong,

Give Your input widget this attribute property.

show-default-value = True

And on after fetch Assign your value to input Widget.

Best regards,

Faiz Khan

Attributes.png
UserImage.jpg
Yudi Gemi Sutanto Tjong

Hi Faiz,


Thank you for the reply. It works as expected.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.