How to link/syncing 2 pages?

I’m trying to make an app on Glide for customers of a “role-playing café.”
The app includes a Market, where players can buy items from the Market into their personal Inventory, and sell items back from their Inventory to the Market.

For example:
In user A’s Inventory there are 5 ore, 8 fiber, 9 wood, and 7 hide.
A has 20 Coins.
I’ve successfully set it up so that when A clicks “Sell 1 ore,” the Ore count decreases from 5 to 4, and the Coins increase from 20 to 21.

However, I don’t know how to link A’s buy/sell action to the shared Market page.
The Market table still shows the Ore quantity as 99 instead of increasing to 100.

I previously asked Glide’s AI to create only two pages: Inventory and Market to handle buying and selling as required, but the result was just two separate pages with no connection between them.

I don’t have any knowledge of Excel, so I’d really appreciate any guidance.

1 Like

How are you configuring the “Market” side? Does the ore count a sum of all users’ Ore?

1 Like

To make the Market update automatically, you must connect the two tables with a relation and use a custom action that updates both tables in one click. Once that’s done, your Market and Inventory will stay in sync whenever a player buys or sells an item.