I want to add multiple tabs in a TabPanel.
Bud just the first one is shown.
elements.tabPanel.addTab(forms,MyForm,'Spalte 2','Spalte 2'
,null,null,null,null,
'myRelation$two',1)
elements.tabPanel.addTab('forms,MyForm','Spalte 3','Spalte 3'
,null,null,null,null,
'myRelation$three',2)
Any Idea?
Why do you have single quotes around the forms, MyForm in the second addTab?
Edit: And should it be forms.MyForm or forms[MyForm]?
Sorry my mistake.
Code is like this:
elements.tabPanel.addTab(forms,MyForm,'Spalte 2','Spalte 2'
,null,null,null,null,
'myRelation$two',1)
elements.tabPanel.addTab(forms,MyForm,'Spalte 3','Spalte 3'
,null,null,null,null,
'myRelation$three',2)
We found a workaround.
When we add two tabs to the TapPanel in the form designer, remove them (elements.MyTapPanel.removeAllTabs()) in the code and add the other 5 more over the code, it works.
I guess this is a bug.
We have to remove them anyway on RecordSelection, so it doesn’t makes a big difference, but that I have to add some empty tabs to the TapPanel is in my opinion a Bug.