Switch layout child according to layout head tab

I have 2 relations.:

  • client_to_invoice_incoming
  • client_to_invoice_outgoing

which both points from the client to the invoice table, the only difference is the target matching field.

I have a layout with 3 panels. On panel 1 in 1 tab the client table, on panel 2 I have 2 tabs, for incoming invoices and outgoing invoices. In panel 3 I need the positions the incoming and outgoing invoices.

So, only 1 tab is need if possible. This tab should only show the positions for the in panel 2 selected record. If the tab in panel 2 is switched, so the positions needs to be updated.

How can I realize this? Is there something in the framework, that is for this use case?

On the onShow of the form of panel 2 you could select the tab in panel 3.
You can do this by using globals.svy_nav_switchTabProgram(event,‘Region’) where ‘Region’ would be the program that you want to select in panel3. You don’t have to give information on what panel the program is, the framework already knows that.

You can also disable tabs if you want: globals.svy_nav_enableTabProgram(event,‘Region’,false)

I hope this will help.