59
Views
10
Comments
want to keep the default values null into time picker

i am using time picker from outsystems UI. want to keep it blank so that user can fill by him self. 

2023-04-06 11-24-23
Paulo Zacarias

Hi Prince Aadil Khan Panwar, 

By default, it starts empty, only when the user clicks the input, the time is selected.

Do you mean, you don't want to see the 12 : 00 PM when clicking the input?

Can you help us understand what is it exactly that you want to achieve?

Regards, 

PZ


2024-05-08 06-29-37
Prince Aadil Khan Panwar

Hi Paulo Zacarias , 

yes, I don't need 12:00:PM in initial. I want this to be blank and if user wants to enter then he can add time. 


Regards,

Prince


2022-05-26 14-50-47
Christian Angelo Santos

Hi, you can opt to use a local variable if you want a blank time picker.


Regards,

Chris

2022-05-26 14-50-47
Christian Angelo Santos

Have you tried setting the initial time in your timepicker? If not, kindly see attached image. Hope it helps!

Option 1:

Set InitialTime = DateTimeToTime(NullDate())


Option 2:

Set InitialTime = #00:00:01# 

Applicable for Is24Hours = True 

Default value in display would be displayed as 00:00


Regards,

Chris

nulltime.png
2024-05-08 06-29-37
Prince Aadil Khan Panwar

Hi Christian Angelo Santos,

It is working with #00:00:01#. Not working with DateTimeToTime(NullDate()) . 

Thanks
Regards

Prince


2024-05-08 06-29-37
Prince Aadil Khan Panwar


Hi Christian Angelo Santos,

i need like this. i have used on initialized client action to make local variable to assign blank value. but it is showing the text box filled as 12:00 AM

Thanks 

Regards

Prince

2024-05-08 06-29-37
Prince Aadil Khan Panwar

Hi Chris,

I appreciate your efforts.

thanks

Regards 
Prince

2022-05-26 14-50-47
Christian Angelo Santos

Love to hear that.

But in case you're accepting another options aside from OSUI timepicker, I found this forge component for you to explore.

Forge: https://www.outsystems.com/forge/component-versions/9683/version/0/platform/

Sample:


Cheers!

2021-08-31 07-27-14
Vijay Perumalsamy

Hi,

could you please try to use a local variable!

Regards,

Vijay Perumalsamy


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