Hi,
I have a field on a form that triggers a method when focus is gained, called onFocusGained(). I also have a method on the form that is triggered when the form is loaded, called onLoad().
Inside the onLoad() method I am calling controller.focusField(myfield,false) because I would like my field to get the focus immediately on startup. However, the field does not appear to be getting the focus and the onFocusGained() method is not getting called. I do know that onLoad() is executing because I put info dialogs at the start and end of the method.
Any ideas why focusField isn't working? I'm on Servoy 5.1.
Thanks,
Rick