We want to be able to refresh the table at any time, so we can show the user what happens when they create or update rows.

Here’s the line we’ve been using to fetch the inventory items from the database:

Python | Client
    self.repeating_panel_1.items = anvil.server.call('get_items')

Remove this line from __init__ and put it in a method of its own:

Python | Client
  def refresh(self, **event_args):
    self.repeating_panel_1.items = anvil.server.call('get_items')

Now call your new method from __init__:

Python | Client
  def __init__(self, **properties):
    # Set Form properties and Data Bindings.
    super().__init__(**properties)

    # Any code you write here will run before the form opens.
    self.refresh()

Re-run your app: you should still see your database rows displayed in the table.

The running app displaying inventory items returned from the external database

The app still displays the database rows after moving the load logic into a refresh method