If I attach this method the the function: onShow or onLoad or etc.. of the form, this is not working! The cursor dont’t showup in the field: bedrijfsnaam.
If I select the method from the methods-menu it is working fine!
What am I doing wrong?
If I attach this method the the function: onShow or onLoad or etc.. of the form, this is not working! The cursor dont’t showup in the field: bedrijfsnaam.
If I select the method from the methods-menu it is working fine!
What am I doing wrong?
Added to this question is if the field you want to gain focus is within the controller area, Should you put a method associated to the controller form and then create a method for the form being shown that runs an onShow that calls the controller’s method for the proper field to gain access?
And secondly, if the requestFocus() requires the onGainFocus method what needs to be in that property for the function to work correctly?
HJK:
Hi Matt, I learned a lot from you in the past! (filemaker magazine, Scriptology) Never thought I could learn you some things!
if you do:
elements.fieldname.requestFocus()
it is performed on the form where it is called.
if you place the form name in front like:
forms.form1.elements.fieldname.requestFocus()
it does’nt mather where you call it, it is allways performed on the form: form1
Well, we’ll have to teach the world together about this very cool application. I think it is going to fit a niche space where FileMaker just won’t be able to go. I’m excited about using both but the event model we have with Servoy is absolutely awesome! Thanks for the reply.