values between tabs

How can I pass values between tabs?
If I select the contract in the first tab, the 2nd tab should only show the articles that have this for this contract_id
How can I do this?

how can I adress the second tab in the tab menue?

store it in a global

[glo_contract_id]=contract_id;