Skip to Content
-1

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

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?

datepicker.png (2.3 kB)
Add a comment
10|10000 characters needed characters exceeded

  • 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.

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

    -Sharadha

Related questions

0 Answers

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.