Forum

Doris Thanner
Participant
    Has successfully completed the online course Basics (100)
3 years, 3 months ago #33752
Up
2
Down
::

Dear all,

we were able to find the following solution to set the focus as needed using the event onAfterShow of the respective window.

jQuery.sap.delayedCall(500, this, function() {
var inputLieferung = this.getView().byId(“SimpleForm_Input2Lieferung”);
if(inputLieferung) {
inputLieferung.focus()
} });

 

PS: I am aware that this code can be shortened.

 

Enjoy!