I have a form where I need to change the tab sequence of fields that I have rearranged using
elements.prdIcon.setLocation(1,1)
elements.fld_ordstart.setLocation(1,2)
elements.fld_ordpopid.setLocation(1,4) … etc in my form method
Now I need to make the tab sequence match the new sequence. I gather this can be doen via solution model, but cannot find the way to do this.
Can some please help with some sample code.
Many thanks
Mark
pbakker:
controller.setTabSequence() will do the trick.
Paul
Hi Paul
Controller.setTabSequence () is not working properly for me.
I am trying to update tab sequence of three fields in a form from [elem1, elem2, elem3] to [elem1, elem3, elem2].
I have attached following code to the on action event of a button.
But, on clicking tab the control switches only between elem1 and elem3. It never goes to elem2. I am testing it with servoy 6.1.3.
Am I missing something?
I faced this kind of problem few days back. I had four elements(three text field and a button) in a form and I had used
elements.<element-name>.setLocation(x,y)
to change the position of the elements and applying the tab sequence to those element accordingly on clicking of a button. I missed a one element from the tab sequence array in controller.setTabSequence([elementArray]) and got the same unexpected behavior as mention above by Lopamudra.
We need to pass all the element on the forms to the element-array to apply the tab sequence properly.