Tab Panel Visibility

Hi All

A simple Tabpanel question

On form A i have Tabpanel A and Tabpanel B which are identical except for size(A being the larger). I also have Tabpanel C which is shown only periodically. When C is Visible, A is set to visible = false and B is visible = true. Everything works as expected except the form connected to the tab does not appear, only an empty tabpanel with the tabs showing. If I select a different tab, that form is displayed and everything is fine.

Any help with this is greatly appreciated.

Are you showing the same form on A and B? Because you can’t show a form twice.

In that case you really have to make sure that the one tab is invisible before you show the next.

Another option is to use application.createNewFormInstance().

Thanks for your reply.

Here is the method that change the tabpanels

globals.unit_category_code = unit_category_code
globals.calendar_date = arrival_date
var gbl = globals.calendar_date

forms.Calendar.set_Calendar_Parameters();

forms.Calendar.display_Calendar();

forms.Calendar.controller.find()
forms.Calendar.category_code = globals.unit_category_code
forms.Calendar.controller.search()
elements.tabsƒreserve_list_b.visible = false
elements.tabs_calendar.visible = true
elements.tabsƒreserve_list.visible = true

Here is what it looks like before

Thanks for your reply.

Here is the method that change the tabpanels

globals.unit_category_code = unit_category_code
globals.calendar_date = arrival_date
var gbl = globals.calendar_date

forms.Calendar.set_Calendar_Parameters();

forms.Calendar.display_Calendar();

forms.Calendar.controller.find()
forms.Calendar.category_code = globals.unit_category_code
forms.Calendar.controller.search()
elements.tabsƒreserve_list_b.visible = false
elements.tabs_calendar.visible = true
elements.tabsƒreserve_list.visible = true

This is before and after shots.