Different Tab Panels With Same Forms

I’ve been trying to add to a form A two different tab panels containing the same form X but based in different relations. When I run the client it shows only one tab panel with its form. Can someone explain to me why this behavior and if it’s not a bug how should I do to solve my problem?

My problem is that I have phone numbers with different types, and I’d like to display them using the same form but with different relations, one relation has type == home and the other type == work, for example. Also, I wish to display each type number in different places of the screen, I don’t want to share the same tab panel and create two tabs.

Thanks in advance for the support. I’ve been looking at this for hours!

Cheers,

displaying the same form more then once at the same time isnt supported.
what you can do is create a new form instance:

application.createNewFormInstance(designFormName, newInstanceScriptName)

and show that form in your second tabpanel.

Showing the same form twice on screen does not work. There can be only one visible instance of a form. You will have to create two forms, use application.createNewFormInstance() or show only one of the tabs at a time.

arg, Johan. You clicked faster.

Is there any particular reason for that? It seems we’re loosing a lot from the benefit of reuse. Do you guys agree with this behavior? Should I submit a feature request?

Cheers,

“forms.formname” will always be just one instance. Because how can you control both forms that are in your 2 tab panels if both forms that are called the same (forms.xxx) are different instances?

we already have a feature request that tabs can be made instances.
but then you cant do “form.formname” to access anything from it (like the foundset, controller or one of is elements)
then you have to do:

forms.formwiththetabpanel.elements.thetabpanel.tabname.controller.setSelectedIndex(4)