Linking to page from two different lists requires two different available data

I have two collections: messages and schools. Schools send messages, so it’s many to one.

What I am trying to do is create:

  1. A screen called Messages: a list of messages, each with the school that sent it. The user can click the message and read it on the Message screen, or they can click the name of the school and read about the school on the School screen
  2. A screen called Schools: a list of schools, the user can click on them and read about the school on the School screen
  3. The Message and School screens as described above.

This requires the College screen to expect and respond to two different available data: “Current Message” and “Current College”. I can explain why this is so challenging if it’s unclear, but I’m hoping an Adalo expert might just recognize this use case and offer a solution.

Thanks for any help!

Tagging @Victor as I know he will be able to offer some help.

If you can provide pictures or even screen recordings I can offer some assistance as well.

Hi there,

Given the information I see here and as far as I understand it, this seems to be the usual issue when there are 2 possible ways to get to 1 screen: (a) List of Schools → School details or (b) List of Messages → Message → School details.
In case of (b), school details on the last screen are accessible via a relationship, but of course there is no Current School there (because there is no current school / schools list on any of the screens before).

So the usual workarounds are:

  • a single item list of schools, filtered by school → ID, is equal to, current message → school → ID. A button/icon inside the list which links to School details screen. With this we have current school available from both paths.
  • 2 separate “current school” screens, first using current school (flow a), second using relationship (flow b).

Best,
Victor.

1 Like

@Victor you understood the problem perfectly. Based on your feedback I did a list in a list: List of Messeges then within that list a list of Colleges filtered where college name = Messege’s college name and then I linked from that college name and passed that college and it worked!

So I got what I needed: one College screen linked to from:
A. The Colleges screen’s list of Colleges
B. The Messages screen’s list of Messages (with a nested list of Colleges)

This was my first question to the Adalo community and I am impressed and thankful for your quick support. Thanks again!

2 Likes

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