Problem with nested tab panels

Hi,

I am developing a solution with Servoy 4.0.1 and I’m having problems with nested tab panels.

I have a postal address tab panel that sits in a contacts form. I also have two other tab panels that sit inside the postal address tab panel. The other two tab panels store telephone numbers and fax numbers that relate to the selected postal address.

I originally set these panels up so that the telephone and fax number panels were set with list view, and the postal address panel was set with record view. In that initial set up, I had previous and next buttons to move back and forth through the various addresses of a contact. When these buttons were used, the telephone and fax panels also changed to show the correct numbers for the displayed address. In that initial set up everything worked perfectly (after I got over a few initial problems).

However, I have now changed the postal address panel so that it’s also set with list view. The idea being that the user can now just scroll up and down through the records as they would in any other panel. This has caused some very strange problems that I can’t find any solution for. Basically, the tab panels for the telephone and fax numbers don’t appear when the form first loads. I need to click somewhere in one of the address fields to get the telephone and fax number panels to even appear.

I can get these number panels to appear correctly, if I set them up as portals instead of tab panels. However, I would much prefer to use tab panels. Therefore, please let me know if you have any ideas on how to set these panels up without these problems.

Craig

I have included a couple of screen shots below to show what I’m talking about. The first image shows what I see when the form first loads. The second shows what I see after clicking on one of the fields in the selected address. I have only set up a portal for telephone numbers. This is why you can’t see one for fax numbers.
[attachment=1]tab_panel_problem1.jpg[/attachment]
[attachment=0]tab_panel_problem2.jpg[/attachment]

Nice pics :) but what about your coding?

How do you handle the relation/foundset for the related tabpanels? It should just work…

What happens if you resize your Client window when you do not see the tab?

If it appears when you resize the Client window, it’s most likely an issue in servoy that needs fixing. In that case, please create a case in our support system, with the solution in which this can be reproduced.

Paul

IT2Be:
Nice pics :) but what about your coding?

How do you handle the relation/foundset for the related tabpanels? It should just work…

Hi Marcel,

There really isn’t much code to this. I have a simply one line call to create a new record when the new button is clicked. I have included a screen shot of the relation between ‘postal addresses’ and ‘faxes’ below to show how it’s set up. postal_address_id = postal_address_id is just the link between the two tables (postal address & communication_line). postal_address_id = fax_id is used to identify the type of communication line (telephone, fax or mobile). Finally, contact_id = contact_id is just used to identify the contact for the fax number. I have exactly the same kind of relation set up to the telephone number form, so I wont show that here.

As I said in my original explanation, this all worked fine when I had the postal address form set up with record view. I haven’t changed anything else since then. I’ve just changed the postal address form so that it uses list view. Therefore, I can’t see why this isn’t working correctly.

[attachment=0]relation_post_to_fax.jpg[/attachment]

pbakker:
What happens if you resize your Client window when you do not see the tab?

If it appears when you resize the Client window, it’s most likely an issue in servoy that needs fixing. In that case, please create a case in our support system, with the solution in which this can be reproduced.

Paul

Hi Paul,

Resizing the client window makes absolutely no difference to the visibility of the troublesome tab panels. The two tab panels (telephone & fax) remain invisible until I click in one of the fields in the postal address, or until I click where a field should be in either of the missing tab panels (telephone or fax).

Also, there’s another thing that I’ve noticed since yesterday. If I get the two panels to appear (by clicking in an address field), the same two panels can disappear again, if I click somewhere else in the form. This doesn’t happen if I click on a field in any of the 3 tab panels, but it does happen if I click anywhere else in the forms.

Craig

Please check if you find any unexplainable errors in the log and post them here.

If no errors can be found, please create a case in our support system with a solution that reproduces the problem attached.

Regards,

Paul

This is not related to nested tabs. Problem occurs when you have a listview and a tab panel inside listview. The tab ( form) cannot be displayed on every record of the list, as a tab can only show at one place at some time. So this actually not a bug.

lvostinar:
This is not related to nested tabs. Problem occurs when you have a listview and a tab panel inside listview. The tab ( form) cannot be displayed on every record of the list, as a tab can only show at one place at some time. So this actually not a bug.

Hi Laurian,

Thanks for that. I think I’ll just have to set the telephone and fax number panels up as portals. I think that looks like my best option.

Cheers

Craig

Had this same issue recently - it would add a lot of power if we could use tabpanels in list view instead of portals - maybe a case for a feature request?

Cheers,

Ben