How do viewport tab communicate with each other?

Marianne Emmane
Kilo Explorer

Hello, we are currently working on a form in UI Builder and using the Tab set component configured as viewport tabs (which means every tab is a different page) so we can use a button to select the current tab index. And the issue we are experiencing is that, we cannot access the data on each of the tabs. We are aware of the properties, however:

  • Is it possible to declare Global variables to the main page that can be accessed on each viewport tabs?
  • And why are the field values gets cleared when switching tabs? (Pill component included – gets unselected when switching to other tabs)

 

Thank you for any help in advance!

10 REPLIES 10

VG3
Tera Contributor

Hello, 

Good Day,

 

Could you please let me know , you are able to find the solution for that ?

If yes, please let me know I am also facing that kind of issue now.

 

Thanks in Advance!

 

 

Hi Kevin, 
have you found a solution for this?
Please help me

I've the same problem

Hi Brad

I'm trying to pass informations from a subpage in a viewport to the parent page. You mentioned the following:

"child pages can communicate with the parent via events."

Can you please explain how this can be done?

Thanks in advance!

Regards,

Roy

I have found the solution! For everyone who is interested:

  • Create "Handled event" on parent page with the desired payload fields
  • On subpage, add a new event mapping on the desired component
    • The created "Handled event" should appear under "Inherited event handlers"
      • If not, the "Parent Macroponent" from the Variant (sys_ux_screen) is not set correctly
    • Set the payload fields
  • On parent page, add a new event mapping on "Body" for the "Handled event"

Hi Roy,

how can i set the parameter i will pass to the child page?

 

Thanks,

Vincenzo