E.g. tab_number = 1 (contact), 2 (orders), 3 (purchases) etc.
I have applied the following code to a button in a navigator form which resides on the form 'reqt_frm_main':
The code works correctly in the Smart client but won't navigate to tab 1 in the Web client - does anyone know why this would be? Does a tab_panel have to have a property to be able to navigate to.
I have tried redrawing the form and tab panel to ensure the tab panel order is correct. I have even tried placing the first panel as last and changing the order without success.
I am using Servoy 4.1.5 build 687 on Windows Vista but the problem originated in 4.1.4.
- Code: Select all
var tabnumber = forms.head_tbl_nav.tab_number
forms.reqt_frm_main.controller.show()
forms.reqt_frm_main.elements.mainpanel.tabIndex = tabnumber