I am trying to programmatically tab through a tab panel that has 8 tabs. On focus lost, I am changing the tabIndex to the proper index and then requesting focus of a field on that tab panel. I am getting some curious results, the panels will jump to the wrong tab index, or bounce around the form. Even if I select the tab panel manually, it will jump to the wrong panel. I am on a mac running 10.4.11, and I am using Servoy version 3.5.3.
For example on tabindex1, the last field in the normal tab sequence, a normal text field, has a method attached to activate on focus lost. This method calls the next tab index by number and requests focus on the first field on that tab panel. But the form seems to become possessed and bounces from tab panel to tab panel, and not just when I am in the field with the method attached. It happen when I am navigating through the form. Is there another way I could achieve the same thing?
Is there another way I could achieve the same thing?
Do you want to give up so easy?
There is either a bug or you do something wrong, but in either case it is interesting to know why this happens?
Could it be that, while switching tabs, another record is selected, whereby fields focus receive from whatever method and, as such, triggering this event.
Would it happen when you use the debugger?
When I run the debugger, it seems to call the different methods to change the tab index and focus sporadically and for no reason I can find. Even if I click into an empty area, it has run the method without any other method being called to initiate it, and no field being selected to “lose focus”. It’s possessed. Plus, its not consistent, which makes it even more frustrating.