Two TabPanels on Form, One Table Panel leads

I have a tab panel for entering address information. Each tab represents different address criteria, i.e., Main Address, Home Address, Second Office Address, Second Home Address.

I have a second tabpanel above this that is hidden. Only the borders are shown so it looks like the fields adjacent to it, i.e., Name, Company, Title, Emaill. It lists only the Phone and Fax number. It is not modifiable.

When a user selects one of the tabs below, Main, Home etc. I would like the hidden tab panel to rotate / reflect the phone numbers accordingly. (The ones associated with the visable / editable tab panel below.

Any ideas?

Thanks!

I’m assuming you have one address table with a column defining addres type “home” “office” etc…?

The tabs main and home are probably showing info based on a relation
(company_to_adress_home, company_to_address__office)

set the form showing in the hidden tabPanel to >useSeparateFoundSet
and set an event script on the other tabpanels (main, home, etc..)
that searches in the hidden tabpanel form for the related record

another way(maybe easier)
Base the hidden tabpanel form on a gobal relation company_id+g_addresstype_to _addresses and set the g_addresstype through an eventscript in the other tabpanels(main.home..etc)