Can’t get focus on a field when showing a form in dialog.
I’ve tried an on show and an on load method element.user_last.requestFocus,
tried controller.focus(user_last) and nothing works. The field is a global.user_last and the element name is also user_last
What’s the trick?
kurtbleicken:
Can’t get focus on a field when showing a form in dialog.
I’ve tried an on show and an on load method element.user_last.requestFocus,
tried controller.focus(user_last) and nothing works. The field is a global.user_last and the element name is also user_last
What’s the trick?
What Servoy version are you using? Are you on Linux ?
Thanks for the quick response. I’m on Windows 7, Servoy 5.2.3
Is this a bug? Or am I doing something wrong?
kurtbleicken:
Is this a bug? Or am I doing something wrong?
That works well for me if I try a small example (in latest code). In onShow of the form in dialog I call requestFocus . I guess this is for Smart Client, right ? Do you have a small sample that doesn’t work?
Made a small solution and it worked perfectly. Went back to my problem FID, deleted the global, restarted, and added it back to the form and suddenly everything worked perfectly. So, false alarm. Thanks for your help. K