How do I pass information from one tab to another

I am using the tabs market place component.
in tab 1 I have a marketplace datagrid
when a row (of the datagrid) is selected I get the value in that row (only one column and only one row selectable so just pull the first item off the list and get the value this seems to be working as tested in print )

on tab2 I have an input field and value logic set to “conf_filter_trace_ename”

on tab1 when a row is selected I set conf_filter_trace_ename in pagedata to populate that field, but when I click on tab2 the input field is blank

What am I missing ?

thanks,
H

Hi. Can you please provide the appId, container, and page name where we could check the issue, or a minimal reproducible example if the current logic requires login or affect prod data?

sure, I should have added that in the first place.

appid 9359F741-6D5D-AEF2-FF22-4834A2050400
the default container
page name filter_test_page

tab 1 has the data table and thats set up in the data logic of the datatable

then there is and “on cell click” event where I am trying to put the selected row text into an input field on tab2

H

image

You are trying to bind value from Tabs Content Data Model

How about creating a handler that will get data of Page Data?

Ok that worked. so for my understanding I can’t update a block on a non selected tab correct? this means I need to store data and pull the data when the tab becomes selected. (which seems to be acting like “at page entry” )

I just want to understand how this works.

thanks for your help

H

If you do directly what I offer before - it works pretty same as data binding. We just change the shortcut to the handler.

so for my understanding I can’t update a block on a non selected tab correct?

When the tab is not selected - you can’t update the block because it’s not on the scene. You must update data, and when the block is shown he will get updated data at the render phase.

Regards, Dima.

so if I use databinding (value) to a property in pagedata and I set that value why doesn’t the tab read the value from the databinding when it renders the tab?

I may not be wording the question very well, but if I can add logic that says value = get property of blah from pagedata (which doe work) why does the databinding not work in this situation ?

H

The reason of it shown in the picture that I share before

image

When your block is located inside of another data container but not directly in the page scope, binding starts working with their data models. To prevent it, and work again with Page Data we use handlers.

Ok Thanks I missed what you were trying to say. Now I understand.

thanks,
H