more than one tabpanel with same form

I have one specific form which can be used by seven relations
Now I want to use this form in seven different tab-panels on one different form!
Each tab-panel has his own relation!
This isn’t possible/working! I can only use one!
Is this a bug? or not implemented?

If I use the same contruction with portals everything is working fine.

What doesn’t work exactly?

I tried it:

Made 2 forms and had 2 relations between them

Then i could add as many tabs as i wanted using those 2 relations.
(so 3 tabs with relation 1 and 3 tabs with relation 2)

No I don’t mean tab’s
I mean complete tabPANELS!

for example
between table1 and table2 I have 7 (different) relations.
on table2 I have 1 form

on table1(on a form of course) I want 7 tabPANELS, with each one TAB!
(I set the tab-orientation on HIDE)

that is’nt working!

Due to efficient memory use a form exists only once, so it is only possible to use a form at one place at the time.
In your case you need seven, duplicating forms is needed (select all elements, copy them and paste them on the new form)
We might make it an option to use te same form multiple times when many developers need this.

That would be nice!
I was making a calendar in Servoy with a 7 days-view, 14 days-view and a month-view.
THe reason that I want to use tabpanels is, that if I change one thing on that form, its automaticly changed, on every day in the calendar.
I am now trying to set it up with portals, but that is a hell of job, because you can’t copy/paste one portal (with all the fields) to another portal and change the relation.
So every portal must be made and set by hand. (I’m just thinking, i will wait with the month view!! :o :lol: )

In the past I have seen several calendar beans, so checkout:

http://forums.servoy.com/viewtopic.php? … alphabeans
which contains:
Calendar Bean Suite Version 2.0
Calendar Bean Suite Version 2.0 contains a basic class called Calendar and additional theme and plugin beans. The Calendar bean, when used on its own, provides date and year information. Additional beans are used to customize and increase the functionality of the calendar.

or try google (with beans it is not always required to build all things yourselfs :-)

Note:a monthview is provided as dialog :var selectedDate = application.showCalendar();

I have investigated this beans, but I think this beans is only suitable for a calendar, What I was really doing is building an agenda, with appointments from another database etc..

Jan Blok wrote:

We might make it an option to use te same form multiple times when many developers need this

I am now at a point , where I need 31 times the same form.
Is this issue on the wish-list? or has it a big impact on Servoy?

I think you need 32 times the same form before it gets put on the wish-list… Sorry, couldn’t resist :)

  • david

HJK:
I have one specific form which can be used by seven relations
Now I want to use this form in seven different tab-panels on one different form!
Each tab-panel has his own relation!
This isn’t possible/working! I can only use one!
Is this a bug? or not implemented?

Is it possible now?

no it will not be possible very soon.
You have to duplicate the form if you want to show a form at once multiply times.

I missed this issue (for me it is a feature request I think). But I would like to vote for this like HJK and Riccardino.

In my case I have 13 different forms that I all use 3 times (~3 tables). When developing such a thing it is not much of an issue.

The issue lies in copying the methods (13 forms, 5-10 methods per form ~ 100 methods).

But last week I was forced to adjust field sizes, tab/form sizes and methods. This is not only a very intense job but also a ‘a guaranteed way to introduce bugs’… I am working on this apparantly little thing for a working day now (in my case such a day = 12 hours)…

jcompagner:
no it will not be possible very soon.
You have to duplicate the form if you want to show a form at once multiply times.

It could be a solution: thanks :slight_smile:

IT2BE:
When developing such a thing it is not much of an issue.

To understand your problem better could you post a screen shot? how you place multiple tabs with same form being visible on same time? (it is hard for me to imagion why someone whould put 2 tabpanels showing same form at same time…)

Jan, have you seen my calendar-solution?
in the month-view I now use 46 portals! All the same, but only using a different relation!

If I could use tabpanels(with tab: HIDE) for that, I only have to build ONE form for this.
If I want to change something, I would only have to changen ONE form.

get the picture?

yes but a form is huge compared with portal in memory use, it whould be unwise to build such a UI based on forms in tabpanels (this is one of the reasons we don’t allow this)

ah oke! Now I get the picture! :wink:

HJK:
Jan, have you seen my calendar-solution?
in the month-view I now use 46 portals! All the same, but only using a different relation!

If I could use tabpanels(with tab: HIDE) for that, I only have to build ONE form for this.
If I want to change something, I would only have to changen ONE form.

get the picture?

Multiple form reuse is a great concept. It would be like the whole object model where a tab panel showing a form is like creating a New Form().

I don’t know how this impacts the screen drawing of how forms are handled now, but this would be an ideal solution when combined with the ability to create and show multiple controllers on any one of the four sides of a form. (but that one is already on the wish list) :D