Linking a column to a sub page in multi page app

Hi All,

I am trying to create a multi page app in which:

  • Main page shows 2 summaries:
  • summary 1 has category and average price
  • when selected a category from summary 1, summary 2 shows a more detailed table - with all the products under each category.
  • The “sub” page has an option to select product and another table pops up with more information.

I am trying to link “product” column in Summary 2 (Page MultiSelect) to “sub” page. Wondering if there would be a way to preselect “product” in sub page when the link is clicked.

Here’s the link to the “test” app I created.
app : https://testinglink.streamlit.app/
github rep: https://github.com/srivallid/streamlit-test

Any help is greatly appreciated, Thank you so much!

Hi @ceeva

You could store the product selections made on the Main page to a Session state variable, which you can then use on the sub page as the input selection to be used in the sub page.

More info:

Thank you @dataprofessor, I will give this a try, is there a way to link the two pages so that when I click on the link, the product selections can be stored?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.