addTab issue

I’m having difficulties with showing the content of an added tab.
In debug mode the content is showing fine, but in realtime nothing is displayed. :?

This is how I add the tab and load the form:

var _button_nr = arguments[0]
var _form = globals.core_gCurrentFormName
var _tab_element_name = 'tabs'
var _relation = globals.core_gFormTabs[_button_nr].relationname
var _tab_form = globals.core_gFormTabs[_button_nr].form_name

forms[_form].elements[_tab_element_name].removeAllTabs()

if (_relation == null)
{

	forms[_form].elements[_tab_element_name].addTab(  forms[_tab_form],  '',  '',  '',  null,  null, null)

}
else
{
	forms[_form].elements[_tab_element_name].addTab(  forms[_tab_form],  '',  '',  '',  null,  null, null,   forms[_form].foundset[_relation])

}

application.updateUI()

Servoy Developer
Version 3.1.2-build 406
Java version 1.5.0_06-64 (Mac OS X)

Issue happens on Developer, Rich Client and Mac and Win.

we are unable to reproduce this, please provide sample solution at: http://crm.servoy.com/servoy-webclient/ … oy_support