Relation is not set on adding tab on tabpannel by code

Hi,

I am trying to remove the only tab from a tabless tab pannel and add a new one,with a relation. The method:
elements.tabs.addTab( forms[vTabDS.form_name],‘tab’, vTabDS.owner_tab_form,null,null,null,null,vTabDS.relation_name,0) (i checked and all the variables are set correctly)
returns true, but the relation is not added to the tab. I have a button that checks the relation on the added tab pannel tab,and it returns ‘’ (nothing).
Do you know what could be the problem? I am using Servoy 3.5.7.
Thanks in advance!
DB

Hi,

addTab( forms[vTabDS.form_name],‘tab’, vTabDS.owner_tab_form,null,null,null,null,vTabDS.relation_name,0)

What is your third variable : vTabDS.owner_tab_form

as you can see below that should be the text for the tab.

addTab( form, [name], [tabText], [tooltip], [iconURL], [fg], [bg], [relatedfoundset/relationname], [index])