related form: dynamically added to tab panel?

Hi

In the documentation I found that I can add an unrelated form to a tab panel with the method addTab(…). Is there a way to add a related form dynamically to a tab panel?

Thank you and kind regards.


Birgit Rieder

7r gmbh
lindenplatz 12b
8203 schaffhausen
switzerland

Hi Birgit, not as far as I know but you can work the other way. Add all tabs you might need in your design. And then remove the ones you don’t need dynamically.

Hello Marcel Trapman

Thank you for your idea. I gave it a thought but I think it does not exactly cover my needs: Assuming I have a list of items on the left part of my form, and I have a detail view related to the selected item (standard behavior of course). The user selects a main topic now (e.g. persons). According to this selction I set the person list on the left (the form is dynamically added to a tabless tab panel). And now I would like to set the related detail form on the right dynamically in a method according to the list on the left.

If I have to add all possible detail views previously to the tab panel that would be to much, probably. And it does not feel right to me either. And maybe my idea would only work if additionally I could define the table of the form at dynamically (which means at runtime).

Thank you and kind regards.


Birgit Rieder

7r gmbh
lindenplatz 12b
8203 schaffhausen
switzerland

Well, in that case it is quite simple.

use relationless tabs and set the form property to ‘useSeperateFoundset’.

Now when you select something on the left hand side load the current foundset on the left (or record) to the form on the right hand side…

But it is not (only) the data I want to load to the right. It is a form: Different lists on the left require diffferent detail views on the right.

Thanks and regards


Birgit Rieder

7r gmbh
lindenplatz 12b
8203 schaffhausen
switzerland

Different lists on the left require diffferent detail views on the right.

I understand what you are asking. So to be a little more exact, you can place a hidden tabpanel on your right hand side and your forms in there you need. By selecting the record left you can also select the correct tabindex.

Thank you, I’ll have to think about it and give it a try.

Kind regards


Birgit Rieder

7r gmbh
lindenplatz 12b
8203 schaffhausen
switzerland