Monday, April 16, 2018

ADF javascript by pressing tab(At the end) need to set focus on first item

function tabOutOfLOVField(evt) {
                  keyCode = evt.getKeyCode();
                  if (keyCode == AdfKeyStroke.TAB_KEY) {
                  //alert('Enterde into JS Code');
                      var lastField = evt.getSource();
                     
                     
                      var firstField = lastField.findComponent("it2");
                     
                      firstField.focus();
                      evt.cancel();
                  }
              }

No comments:

Post a Comment