Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories
by rochard » Fri Sep 17, 2004 10:21 pm
How does one access/go to a specific tabpanel on a form. I have a form with 6 tabpanels on it all of which display related records and all those relationships allow for the creation of related records. Buttons on the controller will create a new record but I need to end up in the tabpanel where the new record is being/has been created.
TIA
Michael Rochard
-
rochard
-
- Posts: 142
- Joined: Thu Jan 29, 2004 12:11 am
by ROCLASI » Sat Sep 18, 2004 12:23 am
In a method you set the tabIndex of the tabpanel. It's 1 based so tab 1 is index 1, tab 2 is index 2, etc.
like:
- Code: Select all
elements.myTabPanel.tabIndex = 1
Hope this helps
-
ROCLASI
- Servoy Expert
-
- Posts: 5438
- Joined: Thu Oct 02, 2003 9:49 am
- Location: Netherlands/Belgium
-
by rochard » Sat Sep 18, 2004 1:04 am
Thank you very much. I was on the right track but not quite there.
Michael Rochard
-
rochard
-
- Posts: 142
- Joined: Thu Jan 29, 2004 12:11 am
Return to Programming with Servoy
Who is online
Users browsing this forum: No registered users and 34 guests