Issue with selecting a specific item on a list that should open a specific screen.

Hi, so I am having issues and difficulty comprehending list, especially when you want to select a particular item from a list to open another specific screen.

So what I have currently is:

  1. A Database Collection called “Institution” with name and icon as properties.
  2. I have a simple list on a screen that is connected to the Institution Database.
  3. Example of the Institutions listed are: NGOs, Hospitals, Schools, Colleges, etc

What I want:

  1. First, I want to have the ability to select an item from the list. As it is now, you can only select the entire list component for settings.
  2. I want, for example, if NGOs is selected from the list, it should open a new screen that will display a list of the NGOs.
  3. If Schools is selected, I want another screen to display a list of Schools, etc.

(I know I have to create databases for NGOs, Schools, etc, to list the respective items. What I want help with is selecting an item from the main list, and then it opens a specific screen.

Thank you all.

Hi there,

To better assist you, I’ll need a bit more information regarding the issue you’re experiencing. Could you please submit the full details using Adalo’s official support form here:

:backhand_index_pointing_right: Submit a Support Ticket
Once I have this information, I’ll be happy to take a closer look and help resolve the issue.

Looking forward to your response!

Hi @OIMN,

There are 2 possible approaches to this.

Approach #1: when the set of properties of different kind of institution are the same or very similar, and you have many categories (say, >5).
First, you add 2 collections:

  • Institution Categories with records like Colleges, Schools, NGOs, …
  • Institutions, where you store the actual institution records, with a relationship to Institution Categories (so that each Institution belongs to a certain category).
    Then you create 2 screens:
  • First screen will have a list of Categories, with the action linking to
  • Second screen with the list of Institutions, filtered by Current Category.

Approach #2: when property set for each category is very different and you don’t have many categories.

  • You add a separate collection for each institution type (Schools, Colleges, NGOs, …)
  • On the first screen, you manually build the buttons/cards/icons/…, linking to different screens of a different institution type
  • And you add a separate screen for each institution type.

Other approaches are usually a mix of #1 and #2.

Best,
Victor.

1 Like

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