1

i need help with the above question.

To clear a normal Textfield works very well. example code:

_resetButton: function () {
    var InputField = this.byId("idInputField");
    InputField.setValueState("None");
    InputField.setValueStateText(null);
}

but for TextArea or DatePicker field it doesn't work.

Have anybody an idea how i can set Value null

i have tried it with setValue() or setText() but without success.

Best regard

rawwar
  • 4,834
  • 9
  • 32
  • 57
  • Does this answer your question? [How to access TextArea's text and/or change it?](https://stackoverflow.com/questions/50189699/how-to-access-textareas-text-and-or-change-it) – Boghyon Hoffmann Jun 24 '20 at 15:09

1 Answers1

2

Here is an JSBIN example

setValue("")

They all inherit from sap.m.InputBase and there is a setValue()

Inizio
  • 2,226
  • 15
  • 18
D. Seah
  • 4,472
  • 1
  • 12
  • 20