cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5: DatePicker choosen Date, disabled the Display of the Date in the InputField

former_member614481
Participant
0 Kudos

Hello,

As the Title states. The Datepicker does consist of two Elements: the Input Field and the Picking of Date(look at the Image below)

you can set the Date that you would want manually, by directly accesing the Id of the DatePicker with .setDateValue() and it will be automatically displayed in the Input Field.

Now i want to .set the Date that i want but for it to not be displayed within the Input field.

The Thing that I found was .setVisible(false) - however this just makes the whole Field disappear. What i want is simply to disable the display of the choosen Date. How can i make it happen?

Sharadha1
Active Contributor
0 Kudos

You question is not clear. where do you want to set the date if not in the input field?

-Sharadha

former_member614481
Participant
0 Kudos

I will have two step reformating process, i will set firstly the inputfield to a Date, than i will change this Date to another which i want for it to be displayed.

If the InputField is empty, .setMonth(), .setDate(); doesn't work.

This is why i need a placeholder date for 1 sec that will be reformated with a different Date.

It all happens by a button. It does work, but there is this split second in which a non right date is being displayed before the right one.

With a .display(false) and display(true) i can avoid this inconvenience.

Accepted Solutions (0)

Answers (0)