Forum

Doris Thanner
      Has successfully completed the online course Basics (100)
    2 years 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!